Tegra TPM driver with HW flow control
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v10 Latest3 patches 18 repliesIn review
- v93 patches 6 repliesSuperseded
- v83 patches 6 repliesSuperseded
Earlier versions · 7
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v7 | 3 patches | 0 replies | Superseded | |
| v6 | 3 patches | 6 replies | Superseded | |
| v5 | 3 patches | 12 replies | Superseded | |
| v4 | 3 patches | 2 replies | Superseded | |
| v3 | 3 patches | 9 replies | Superseded | |
| v2 | 4 patches | 6 replies | Superseded | |
| v1 | 4 patches | 4 replies | Superseded |
V8 from the cover letter
- fix compile warning.
Patches in v10 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | spi: Add TPM HW flow flaginclude/ | +13 | 0 replies | |
| 2/3 | tpm_tis-spi: Add hardware wait pollingdrivers/ | +89 | 15 replies | |
| 3/3 | spi: tegra210-quad: Enable TPM wait pollingdrivers/ | +14 | 1 reply |
Reviews trailers per patch
2 of 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Jon Hunter | Jerry Snitselaar | Jarkko Sakkinen |
|---|---|---|---|
| Series | R-b | ||
| 1/3 | |||
| 2/3 | R-b | ||
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [Patch V10 0/3] Tegra TPM driver with HW flow control
TPM devices may insert wait state on last clock cycle of ADDR phase. For SPI controllers that support full-duplex transfers, this can be detected using software by reading the MISO line. For SPI controllers that only support half-duplex transfers, such as the Tegra QSPI, it is not possible to detect the wait signal from software. The QSPI controller in Tegra234 and Tegra241 implement hardware detection of the wait signal which can be enabled in the controller for TPM devices.
Add HW flow control in TIS driver and a flag in SPI data to indicate wait detection is required in HW. SPI controller driver determines if this is supported. Add HW detection in Tegra QSPI controller.
Updates in this patch set
- Tegra QSPI identifies itself as half duplex.
- TPM TIS SPI driver skips flow control for half duplex and send transfers in single message for controller to handle it.
- TPM device identifies as TPM device for controller to detect and enable HW TPM wait poll feature.
Verified with a TPM device on Tegra241 ref board using TPM2 tools.
V10
- use spi_sync in place of spi_sync_locked
V9
- renamed tpm spi transfer functions
V8:
- fix compile warning.
V7:
- updated patch description.
- TPM flag set in probe.
- minor comments.
V6:
- Fix typo in chip name Tegra234.
- Debug logs change skipped to be sent later.
- Consistent usage of soc flag.
V5:
- No SPI bus locking.
V4:
- Split api change to different patch.
- Describe TPM HW flow control.
V3:
- Use SPI device mode flag and SPI controller flags.
- Drop usage of device tree flags.
- Generic TPM half duplex controller handling.
- HW & SW flow control for TPM. Drop additional driver.
V2:
- Fix dt schema errors.
Krishna Yarlagadda (3):
spi: Add TPM HW flow flag
tpm_tis-spi: Add hardware wait polling
spi: tegra210-quad: Enable TPM wait polling
drivers/char/tpm/tpm_tis_spi_main.c | 91 ++++++++++++++++++++++++++++- drivers/spi/spi-tegra210-quad.c | 14 +++++ include/linux/spi/spi.h | 16 ++++- 3 files changed, 116 insertions(+), 5 deletions(-)
Signature · 1 line
2.17.1