Posts: 2
Joined: Fri Mar 09, 2018 1:34 am

SPI Driver Probe Time

Sat Mar 17, 2018 6:19 pm


I have a customized SPI driver of TPM chip wanna load during boot-up for Linux IMA feature.
However, driver probe() loaded at time 6.59 which way slower than IMA detect TPM chip(at time 0.98).
My question is IMA is using late_init() and my SPI driver is module_init(), how come driver loaded so late in Raspberry Pi3?
Is there anyway that I could force my driver probe before IMA getting loaded?
Thanks for the help.

[ 0.985193] ima: No TPM chip found, activating TPM-bypass!
[ 6.591240] SPI DRIVER PROBE!!
[ 6.591253] SPI Send!!
[ 6.592297] SPI RECV!!

Posts: 2
Joined: Fri Mar 09, 2018 1:34 am

Re: SPI Driver Probe Time

Tue Mar 20, 2018 12:57 am

I have solved the SPI probe issue.

1. Need to bring [BCM2835 SPI Controller] as a built-in driver.

2.Modify drivers/clk/bcm/clk-bcm2835.c to do device_initcall (Clock init too early will failed, thus cause SPI clk init also failed)

Return to “Interfacing (DSI, CSI, I2C, etc.)”

Who is online

Users browsing this forum: No registered users and 5 guests