diff options
| author | Simon Glass <sjg@chromium.org> | 2020-12-31 09:52:12 -0700 |
|---|---|---|
| committer | Simon Glass <sjg@chromium.org> | 2021-01-30 14:25:41 -0700 |
| commit | 6208975e237c9549cab50756c6291d3ecde953b7 (patch) | |
| tree | ddf7f0c146cb7db26451e4ec01c58835a900093b /include/linux/kernel.h | |
| parent | 472a716b8fdfd88a27cb675e4ea8e12cb4f79fc3 (diff) | |
| download | u-boot-6208975e237c9549cab50756c6291d3ecde953b7.tar.gz u-boot-6208975e237c9549cab50756c6291d3ecde953b7.tar.xz u-boot-6208975e237c9549cab50756c6291d3ecde953b7.zip | |
tpm: cr50: Check for valid locality
When the Cr50 starts up it doesn't have a valid locality. The driver sets
it to -1 to indicate that. Tracking this allows cr50_i2c_cleanup() to
avoid releasing a locality that was not claimed.
However the helper functions that generate the flags use a u8 type which
cannot support -1, so they return a locality of 0xff.
Fix this by updating the type. With this, 'tpm startup TPM2_SU_CLEAR'
works as expected.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/linux/kernel.h')
0 files changed, 0 insertions, 0 deletions
