[PATCH] i2c: imx-lpi2c: Fix clock count when probe defers

Carlos Song carlos.song at nxp.com
Tue Apr 29 01:25:47 PDT 2025



> -----Original Message-----
> From: Andi Shyti <andi.shyti at kernel.org>
> Sent: Tuesday, April 29, 2025 4:21 PM
> To: Carlos Song <carlos.song at nxp.com>
> Cc: Aisheng Dong <aisheng.dong at nxp.com>; Frank Li <frank.li at nxp.com>;
> shawnguo at kernel.org; s.hauer at pengutronix.de; kernel at pengutronix.de;
> festevam at gmail.com; linux-i2c at vger.kernel.org; imx at lists.linux.dev;
> linux-arm-kernel at lists.infradead.org; linux-kernel at vger.kernel.org
> Subject: [EXT] Re: [PATCH] i2c: imx-lpi2c: Fix clock count when probe defers
> 
> Caution: This is an external email. Please take care when clicking links or
> opening attachments. When in doubt, report the message using the 'Report this
> email' button
> 
> 
> Hi Carlos,
> 
> On Mon, Apr 21, 2025 at 02:23:41PM +0800, carlos.song at nxp.com wrote:
> > From: Clark Wang <xiaoning.wang at 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 at nxp.com>
> > Signed-off-by: Clark Wang <xiaoning.wang at nxp.com>
> > Signed-off-by: Jun Li <jun.li at nxp.com>
> > Signed-off-by: Haibo Chen <haibo.chen at nxp.com>
> 
> merged to i2c/i2c-host-fixes with all the changes I suggested.
> 

That's good! Thank you very much!

> Thanks,
> Andi



More information about the linux-arm-kernel mailing list