]> www.infradead.org Git - users/dwmw2/linux.git/commit
i2c: npcm: Modify timeout evaluation mechanism
authorTyrone Ting <kfting@nuvoton.com>
Thu, 19 Dec 2024 09:08:56 +0000 (17:08 +0800)
committerAndi Shyti <andi.shyti@kernel.org>
Tue, 7 Jan 2025 22:46:09 +0000 (23:46 +0100)
commit4a34b9bf5f6f3f3ed910863fd1b4741a62864d4b
tree75463774f75a589c9bf649b0e1f16c6fc1361855
parent576eba03c99435380d155e5f71d5d7603b9178f6
i2c: npcm: Modify timeout evaluation mechanism

The users want to connect a lot of masters on the same bus.
This timeout is used to determine the time it takes to take bus ownership.
The transactions are very long, so waiting 35ms is not enough.

Increase the timeout and treat it as the total timeout, including retries.
The total timeout is 2 seconds now.

The i2c core layer will have chances to retry to call the i2c driver
transfer function if the i2c driver reports that the bus is busy and
returns -EAGAIN.

Signed-off-by: Tyrone Ting <kfting@nuvoton.com>
Reviewed-by: Tali Perry <tali.perry1@gmail.com>
Link: https://lore.kernel.org/r/20241219090859.18722-2-kfting@nuvoton.com
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
drivers/i2c/busses/i2c-npcm7xx.c