Re: [PATCH] maengine: ste_dma40: Fix PM disable depth imbalance in d40_probe
From: Linus Walleij
Date: Fri Oct 06 2023 - 16:39:57 EST
On Thu, Oct 5, 2023 at 4:28 PM Zhang Shurong <zhang_shurong@xxxxxxxxxxx> wrote:
> The pm_runtime_enable will increase power disable depth. Thus
> a pairing decrement is needed on the error handling path to
> keep it balanced according to context.
> We fix it by calling pm_runtime_disable when error returns.
>
> Signed-off-by: Zhang Shurong <zhang_shurong@xxxxxxxxxxx>
Looks correct,
Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx>
Yours,
Linus Walleij