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!!