aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/tpm/tpm-interface.c
diff options
context:
space:
mode:
authorPeter Rosin <peda@axentia.se>2018-06-20 07:17:54 +0200
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>2018-07-28 17:03:11 +0300
commit79e2472f99ab457417aaad98bf83ab565fa32bd0 (patch)
treedea26930f05e65b5a53ce5ddf252537853a55ad4 /drivers/char/tpm/tpm-interface.c
parenttpm_tis_spi: Pass the SPI IRQ down to the driver (diff)
downloadlinux-dev-79e2472f99ab457417aaad98bf83ab565fa32bd0.tar.xz
linux-dev-79e2472f99ab457417aaad98bf83ab565fa32bd0.zip
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/tpm/tpm-interface.c')
0 files changed, 0 insertions, 0 deletions