Skip to content

Commit 1b84691

Browse files
Wolfram Sangalexandrebelloni
authored andcommitted
i3c: dw: 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-2-wsa+renesas@sang-engineering.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
1 parent 19272b3 commit 1b84691

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/i3c/master/dw-i3c-master.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1142,7 +1142,7 @@ static int dw_i3c_master_i2c_xfers(struct i2c_dev_desc *dev,
11421142
}
11431143

11441144
dw_i3c_master_enqueue_xfer(master, xfer);
1145-
if (!wait_for_completion_timeout(&xfer->comp, XFER_TIMEOUT))
1145+
if (!wait_for_completion_timeout(&xfer->comp, m->i2c.timeout))
11461146
dw_i3c_master_dequeue_xfer(master, xfer);
11471147

11481148
ret = xfer->ret;

0 commit comments

Comments
 (0)