Re: [PATCH] spi: nxp-fspi: Fix runtime PM leak in nxp_fspi_probe()

From: Mark Brown

Date: Thu Sep 17 2026 - 15:42:46 EST


On Thu, Sep 17, 2026 at 01:39:06PM -0500, Frank Li wrote:
> On Thu, Sep 17, 2026 at 03:37:13PM +0000, Wentao Liang wrote:
> > pm_runtime_get_sync() increments the runtime PM usage counter even when
> > it fails. If it returns an error, nxp_fspi_probe() returns without
> > dropping that reference, so the counter stays unbalanced.

> use pm_runtime_resume_and_get()

This also doesn't apply against current code, please check that when you
resend.

Please delete unneeded context from mails when replying. Doing this
makes it much easier to find your reply in the message, helping ensure
it won't be missed by people scrolling through the irrelevant quoted
material.

Attachment: signature.asc
Description: PGP signature