char: tpm: Adjust cr50_i2c locking mechanism
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest3 patches 14 repliesIn review
- v13 patches 7 repliesSuperseded
Changes in v2 from the cover letter
* Get back with tpm_cr50_check_locality to return 0 instead of locality
* Return from functions which get (locality < 0)
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | char: tpm: Protect tpm_pm_suspend with locksdrivers/ | +3 | 8 replies | |
| 2/3 | char: tpm: cr50: Use generic request/relinquish locality opsdrivers/ | +70 | 3 replies | |
| 3/3 | char: tpm: cr50: Move i2c locking to request/relinquish locality opsdrivers/ | +13 | 3 replies |
Reviews trailers per patch
None of the 3 patches has a Reviewed-by or Acked-by.
| Patch | Jason A. Donenfeld | Vlastimil Babka |
|---|---|---|
| 1/3 | T-b | Reported-and-tested-by |
| 2/3 | ||
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/3] char: tpm: Adjust cr50_i2c locking mechanism
This patchset aims to add support for a platforms with cr50(tpm) i2c chip shared across two CPUs. We need to provide a mechanism, which will allow to synchronize accesses on a TPM-transaction boundaries.
First commit in a patchset is a generic fix for an issue encountered during suspend stress test.
Next two patches are modifying cr50 to use generic callbacks for locality management and then leverage this solution to apply i2c bus locking on a TPM-operation level.
v1->v2:
* Get back with tpm_cr50_check_locality to return 0 instead of locality
* Return from functions which get (locality < 0)
Jan Dabros (3):
char: tpm: Protect tpm_pm_suspend with locks
char: tpm: cr50: Use generic request/relinquish locality ops
char: tpm: cr50: Move i2c locking to request/relinquish locality ops
drivers/char/tpm/tpm-interface.c | 5 +- drivers/char/tpm/tpm_tis_i2c_cr50.c | 126 ++++++++++++++++++---------- 2 files changed, 85 insertions(+), 46 deletions(-)
Signature · 1 line
2.38.1.273.g43a17bfeac-goog