Files
u-boot/drivers
Simon Glass 6208975e23 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>
2021-01-30 14:25:41 -07:00
..
2021-01-25 21:52:00 +00:00
2021-01-27 17:03:16 -05:00
2021-01-18 15:23:06 -05:00
2021-01-05 16:20:26 -05:00
2021-01-25 21:52:01 +00:00
2021-01-18 15:23:06 -05:00
2021-01-30 14:25:41 -07:00
2020-12-18 20:32:21 -07:00
2021-01-23 11:30:31 +01:00
2020-11-06 10:18:20 +08:00