diff options
author | Peter Rosin <peda@axentia.se> | 2018-06-20 08:17:54 +0300 |
---|---|---|
committer | Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> | 2018-07-28 17:03:11 +0300 |
commit | 79e2472f99ab457417aaad98bf83ab565fa32bd0 (patch) | |
tree | dea26930f05e65b5a53ce5ddf252537853a55ad4 /drivers/char/hw_random | |
parent | 1a339b658d9dbe1471f67b78237cf8fa08bbbeb5 (diff) | |
download | linux-79e2472f99ab457417aaad98bf83ab565fa32bd0.tar.xz |
tpm/tpm_i2c_infineon: switch to i2c_lock_bus(..., I2C_LOCK_SEGMENT)
Locking the root adapter for __i2c_transfer will deadlock if the
device sits behind a mux-locked I2C mux. Switch to the finer-grained
i2c_lock_bus with the I2C_LOCK_SEGMENT flag. If the device does not
sit behind a mux-locked mux, the two locking variants are equivalent.
Signed-off-by: Peter Rosin <peda@axentia.se>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tested-by: Alexander Steffen <Alexander.Steffen@infineon.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Diffstat (limited to 'drivers/char/hw_random')
0 files changed, 0 insertions, 0 deletions