Home
last modified time | relevance | path

Searched hist:"4 a34b9bf5f6f3f3ed910863fd1b4741a62864d4b" (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/i2c/busses/
H A Di2c-npcm7xx.c4a34b9bf5f6f3f3ed910863fd1b4741a62864d4b Thu Dec 19 09:08:56 UTC 2024 Tyrone Ting <kfting@nuvoton.com> 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>