Skip to content

Delay for IRQ testing is not correct. #7053

@fredjsq

Description

@fredjsq

Code : https://github.com/raspberrypi/linux/blob/7335f3c839417ab9fc40fb205249d415e8ed5aa3/drivers/char/tpm/tpm_tis_core.c#L600C2-L600C17

When IRQ has not been tested, the driver is waiting for 1ms only instead of the ordinal maximum duration of the command (usually the GetCapability). For a GetCapability command, we should wait the IRQ for 750ms.

As a result if a TPM is too slow but still meets the specification requirements, the IRQ is wrongly seen at not working.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions