]> git.dujemihanovic.xyz Git - u-boot.git/commit
i2c: microchip: fix ack sending logic
authorConor Dooley <conor.dooley@microchip.com>
Wed, 26 Oct 2022 07:49:18 +0000 (08:49 +0100)
committerHeiko Schocher <hs@denx.de>
Mon, 14 Nov 2022 06:20:10 +0000 (07:20 +0100)
commit95b22bd6dcf198340b0c40a906a463064c215b0c
tree069dc353e0ca1878499e1333101cb09bdc3237d7
parent0cbeed4f6648e0e4966475e3544280a69ecb59d3
i2c: microchip: fix ack sending logic

"Master receive mode" was not correctly sending ACKs/NACKs in the
interrupt handler. Bring the handling of M_SLAR_ACK, M_RX_DATA_ACKED &
M_RX_DATA_NACKED in line with the Linux driver.

Fixes: 0dc0d1e094 ("i2c: Add Microchip PolarFire SoC I2C driver")
Reported-by: Shravan Chippa <shravan.chippa@microchip.com>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Padmarao Begari <padmarao.begari@microchip.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
drivers/i2c/i2c-microchip.c