Re: [PATCH resend v3] reset: renesas: Fix Runtime PM usage

From: Philipp Zabel
Date: Wed Dec 15 2021 - 05:21:21 EST


On Wed, 2021-12-15 at 10:18 +0000, Biju Das wrote:
> Hi Heiner,
>
> Thanks for the patch.
>
> > Subject: [PATCH resend v3] reset: renesas: Fix Runtime PM usage
> >
> > If pm_runtime_resume_and_get() fails then it returns w/o the RPM usage
> > counter being incremented. In this case call pm_runtime_put() in
> > remove() will result in a usage counter imbalance. Therefore check the
> > return code of pm_runtime_resume_and_get() and bail out in case of error.
> >
> > Fixes: bee08559701f ("reset: renesas: Add RZ/G2L usbphy control driver")
> > Signed-off-by: Heiner Kallweit <hkallweit1@xxxxxxxxx>
>
> Reviewed-by: Biju Das <biju.das.jz@xxxxxxxxxxxxxx>

Thank you both, applied to reset/fixes.

regards
Philipp