drivers/i2c/busses/i2c-imx-lpi2c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
From: Clark Wang <xiaoning.wang@nxp.com>
Deferred probe with pm_runtime_put() may delay clock disable, causing
incorrect clock usage count. Use pm_runtime_put_sync() to ensure the
clock is disabled immediately.
Signed-off-by: Carlos Song <carlos.song@nxp.com>
Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
Signed-off-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
---
drivers/i2c/busses/i2c-imx-lpi2c.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/i2c/busses/i2c-imx-lpi2c.c b/drivers/i2c/busses/i2c-imx-lpi2c.c
index 0d4b3935e687..342d47e67586 100644
--- a/drivers/i2c/busses/i2c-imx-lpi2c.c
+++ b/drivers/i2c/busses/i2c-imx-lpi2c.c
@@ -1380,9 +1380,9 @@ static int lpi2c_imx_probe(struct platform_device *pdev)
return 0;
rpm_disable:
- pm_runtime_put(&pdev->dev);
- pm_runtime_disable(&pdev->dev);
pm_runtime_dont_use_autosuspend(&pdev->dev);
+ pm_runtime_put_sync(&pdev->dev);
+ pm_runtime_disable(&pdev->dev);
return ret;
}
--
2.34.1
Hi Carlos, On Mon, Apr 21, 2025 at 02:23:41PM +0800, carlos.song@nxp.com wrote: > From: Clark Wang <xiaoning.wang@nxp.com> > > Deferred probe with pm_runtime_put() may delay clock disable, causing > incorrect clock usage count. Use pm_runtime_put_sync() to ensure the > clock is disabled immediately. > > Signed-off-by: Carlos Song <carlos.song@nxp.com> > Signed-off-by: Clark Wang <xiaoning.wang@nxp.com> > Signed-off-by: Jun Li <jun.li@nxp.com> > Signed-off-by: Haibo Chen <haibo.chen@nxp.com> merged to i2c/i2c-host-fixes with all the changes I suggested. Thanks, Andi
On Mon, Apr 21, 2025 at 02:23:41PM +0800, carlos.song@nxp.com wrote: > From: Clark Wang <xiaoning.wang@nxp.com> > > Deferred probe with pm_runtime_put() may delay clock disable, causing > incorrect clock usage count. Use pm_runtime_put_sync() to ensure the > clock is disabled immediately. What is the outcome of the incorrect clock usage count? Do you have any logs? > Signed-off-by: Carlos Song <carlos.song@nxp.com> > Signed-off-by: Clark Wang <xiaoning.wang@nxp.com> > Signed-off-by: Jun Li <jun.li@nxp.com> > Signed-off-by: Haibo Chen <haibo.chen@nxp.com> Carlo's SoB should be at the end of the chain. Should be nice to know what these are, though, are they co-developed-by? tested-by? Why so many SoB's? (no need to resend for this) Andi
© 2016 - 2025 Red Hat, Inc.