]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
drivers: tpm: atmel_twi: do not use an offset byte
authorMathew McBride <matt@traverse.com.au>
Thu, 11 Nov 2021 04:06:29 +0000 (04:06 +0000)
committerIlias Apalodimas <ilias.apalodimas@linaro.org>
Wed, 17 Nov 2021 11:47:31 +0000 (13:47 +0200)
This driver was broken due to an empty offset byte being prepended
at the start of every transmission.

The hardware does not mimic an EEPROM device with registers so
an offset byte is not required.

Signed-off-by: Mathew McBride <matt@traverse.com.au>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
drivers/tpm/tpm_atmel_twi.c

index 4ff4cf4cd423ed0d1c22e6e9df49e8352f2fd5f4..71b101406dac44566cd123efba48918107180894 100644 (file)
@@ -131,6 +131,7 @@ static int tpm_atmel_twi_xfer(struct udevice *dev,
 
 static int tpm_atmel_twi_probe(struct udevice *dev)
 {
+       i2c_set_chip_offset_len(dev, 0);
        return 0;
 }