Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Haji
Level 1
Level 1
First question asked Welcome!

Hi ,

I am using slb9670, which is connected to SPI interface in IMX8 processor.
I am using Linux kernel version - 5.4 .

Observed from tpm_tis_spi.c driver, by default driver supports polling the data.
Instead I wanted to use interrupt based. 

Please let me know, what are the changes need to be done in tpm_tis_spi.c / tpm_tis_core.c driver and device tree to make interrupt based data.

Thanks & Regards,
Haji

0 Likes
1 Solution
Sneha_P
Moderator
Moderator
Moderator
50 likes received 250 replies posted 250 sign-ins

Hi @Haji,

Please let me know the FW version of your TPM. Also, please refer to this interrupt setup implementation below:
https://github.com/torvalds/linux/blob/20cf903a0c407cef19300e5c85a03c82593bde36/drivers/char/tpm/tpm...
It checks if your TPM supports interrupt, if not, uses polling.

View solution in original post

2 Replies
Sneha_P
Moderator
Moderator
Moderator
50 likes received 250 replies posted 250 sign-ins

Hi @Haji,

Please let me know the FW version of your TPM. Also, please refer to this interrupt setup implementation below:
https://github.com/torvalds/linux/blob/20cf903a0c407cef19300e5c85a03c82593bde36/drivers/char/tpm/tpm...
It checks if your TPM supports interrupt, if not, uses polling.

Sneha_P
Moderator
Moderator
Moderator
50 likes received 250 replies posted 250 sign-ins

Please let us know if your query was resolved. We will lock the thread in 3 days. In case your problem is not resolved, please create a new thread and we will be happy to help. 

0 Likes