Skip to content

Commit c0a90eb

Browse files
Wolfram Sangalexandrebelloni
authored andcommitted
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>
1 parent be27ed6 commit c0a90eb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • drivers/i3c/master/mipi-i3c-hci

drivers/i3c/master/mipi-i3c-hci/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ static int i3c_hci_i2c_xfers(struct i2c_dev_desc *dev,
395395
ret = hci->io->queue_xfer(hci, xfer, nxfers);
396396
if (ret)
397397
goto out;
398-
if (!wait_for_completion_timeout(&done, HZ) &&
398+
if (!wait_for_completion_timeout(&done, m->i2c.timeout) &&
399399
hci->io->dequeue_xfer(hci, xfer, nxfers)) {
400400
ret = -ETIME;
401401
goto out;

0 commit comments

Comments
 (0)