kernel_samsung_a53x/drivers/i2c
Jean Delvare 7a72e3b94f i2c: i801: Fix block process call transactions
[ Upstream commit c1c9d0f6f7f1dbf29db996bd8e166242843a5f21 ]

According to the Intel datasheets, software must reset the block
buffer index twice for block process call transactions: once before
writing the outgoing data to the buffer, and once again before
reading the incoming data from the buffer.

The driver is currently missing the second reset, causing the wrong
portion of the block buffer to be read.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Reported-by: Piotr Zakowski <piotr.zakowski@intel.com>
Closes: https://lore.kernel.org/linux-i2c/20240213120553.7b0ab120@endymion.delvare/
Fixes: 315cd67c9453 ("i2c: i801: Add Block Write-Block Read Process Call support")
Reviewed-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 12:13:29 +01:00
..
algos Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
busses i2c: i801: Fix block process call transactions 2024-11-18 12:13:29 +01:00
muxes i2c: muxes: i2c-demux-pinctrl: Use of_get_i2c_adapter_by_node() 2024-11-18 10:58:31 +01:00
i2c-boardinfo.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i2c-core-acpi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i2c-core-base.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i2c-core-of.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i2c-core-slave.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i2c-core-smbus.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i2c-core.h i2c: core: Fix atomic xfer check for non-preempt config 2024-11-18 12:12:08 +01:00
i2c-dev.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i2c-mux.c i2c: mux: Avoid potential false error message in i2c_mux_add_adapter 2024-11-08 11:26:15 +01:00
i2c-slave-eeprom.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i2c-slave-testunit.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i2c-smbus.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i2c-stub.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00