]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
i2c: s3c24xx: fix read transfers in polling mode
authorMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 8 Nov 2023 16:43:52 +0000 (17:43 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jan 2024 23:27:52 +0000 (15:27 -0800)
commit63892860b01987dccdeb38da2c51b145b89953df
tree4804f7a101e75dd2481fad531c094afc0e6c8302
parent380540bb06bb1d1b12bdc947d1b8f56cda6b5663
i2c: s3c24xx: fix read transfers in polling mode

[ Upstream commit 0d9cf23ed55d7ba3ab26d617a3ae507863674c8f ]

To properly handle read transfers in polling mode, no waiting for the ACK
state is needed as it will never come. Just wait a bit to ensure start
state is on the bus and continue processing next bytes.

Fixes: 117053f77a5a ("i2c: s3c2410: Add polling mode support")
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Chanho Park <chanho61.park@samsung.com>
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/i2c/busses/i2c-s3c2410.c