OSDN Git Service

spi: Add TPM HW flow flag
authorKrishna Yarlagadda <kyarlagadda@nvidia.com>
Fri, 21 Apr 2023 09:13:07 +0000 (14:43 +0530)
committerMark Brown <broonie@kernel.org>
Fri, 21 Apr 2023 13:37:03 +0000 (14:37 +0100)
commit67a142dc9eb96a5cc018e5db62390665eb5f038c
tree2b33952e2d63155ac650b24b273f13ae0399b398
parentbe3206e8906e7a93df673ab2e96d69304a008edc
spi: Add TPM HW flow flag

TPM specification [1] defines flow control over SPI. Client device can
insert a wait state on MISO when address is transmitted by controller
on MOSI. Detecting the wait state in software is only possible for
full duplex controllers. For controllers that support only half-
duplex, the wait state detection needs to be implemented in hardware.

Add a flag SPI_TPM_HW_FLOW for TPM device to set when software flow
control is not possible and hardware flow control is expected from
SPI controller.

Reference:
[1] https://trustedcomputinggroup.org/resource/pc-client-platform-tpm
-profile-ptp-specification/

Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Link: https://lore.kernel.org/r/20230421091309.2672-2-kyarlagadda@nvidia.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/linux/spi/spi.h