Re: [PATCH v2] panfrost: Properly undo pm_runtime_enable when deferring a probe

From: Chen-Yu Tsai
Date: Wed Oct 23 2019 - 23:51:26 EST


On Wed, Oct 23, 2019 at 8:22 PM Tomeu Vizoso <tomeu.vizoso@xxxxxxxxxxxxx> wrote:
>
> When deferring the probe because of a missing regulator, we were calling
> pm_runtime_disable even if pm_runtime_enable wasn't called.
>
> Move the call to pm_runtime_disable to the right place.
>
> Signed-off-by: Tomeu Vizoso <tomeu.vizoso@xxxxxxxxxxxxx>
> Reported-by: Chen-Yu Tsai <wens@xxxxxxxx>
> Cc: Robin Murphy <robin.murphy@xxxxxxx>
> Fixes: f4a3c6a44b35 ("drm/panfrost: Disable PM on probe failure")

Tested-by: Chen-Yu Tsai <wens@xxxxxxxx>