mirror of
https://github.com/torvalds/linux.git
synced 2026-03-14 02:06:15 +01:00
i3c: mipi-i3c-hci: use adapter timeout value for I2C transfers
I2C adapters have their own timeout value which can be changed by userspace if desired. Use it for I2C transfers. The default is 1Hz, so the default behaviour is unchanged. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Reviewed-by: Frank Li <Frank.Li@nxp.com> Link: https://lore.kernel.org/r/20250604101831.56585-4-wsa+renesas@sang-engineering.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
This commit is contained in:
parent
be27ed6728
commit
c0a90eb55a
1 changed files with 1 additions and 1 deletions
|
|
@ -395,7 +395,7 @@ static int i3c_hci_i2c_xfers(struct i2c_dev_desc *dev,
|
|||
ret = hci->io->queue_xfer(hci, xfer, nxfers);
|
||||
if (ret)
|
||||
goto out;
|
||||
if (!wait_for_completion_timeout(&done, HZ) &&
|
||||
if (!wait_for_completion_timeout(&done, m->i2c.timeout) &&
|
||||
hci->io->dequeue_xfer(hci, xfer, nxfers)) {
|
||||
ret = -ETIME;
|
||||
goto out;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue