[PATCH 2/2] i2c: imx: Retry failed transfers 3 times
Frank Li
Frank.li at nxp.com
Wed Mar 11 08:43:59 PDT 2026
On Wed, Mar 11, 2026 at 11:47:44AM +0000, Daniel Scally wrote:
> Set the retries member of the i2c_adapter to 3, which will cause the
> i2c-core code to retry transfers that lose arbitration 3 times before
> giving up.
>
> Signed-off-by: Daniel Scally <dan.scally at ideasonboard.com>
> ---
Reviewed-by: Frank Li <Frank.Li at nxp.com>
> drivers/i2c/busses/i2c-imx.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c
> index ed2316ab1ba8b6261dabe8af4377136a002e2f0b..fc807b4c19137b9451796d009094b26da59e8799 100644
> --- a/drivers/i2c/busses/i2c-imx.c
> +++ b/drivers/i2c/busses/i2c-imx.c
> @@ -1736,6 +1736,7 @@ static int i2c_imx_probe(struct platform_device *pdev)
> i2c_imx->adapter.dev.parent = &pdev->dev;
> i2c_imx->adapter.nr = pdev->id;
> i2c_imx->adapter.dev.of_node = pdev->dev.of_node;
> + i2c_imx->adapter.retries = 3;
> i2c_imx->base = base;
> ACPI_COMPANION_SET(&i2c_imx->adapter.dev, ACPI_COMPANION(&pdev->dev));
>
>
> --
> 2.43.0
>
More information about the linux-arm-kernel
mailing list