Re: [PATCH 1/2] drm/vc4: hdmi: Fix error path of hpd-gpios

From: Linus Walleij
Date: Fri Jun 04 2021 - 17:44:56 EST


On Mon, May 24, 2021 at 3:19 PM Maxime Ripard <maxime@xxxxxxxxxx> wrote:

> If the of_get_named_gpio_flags call fails in vc4_hdmi_bind, we jump to
> the err_unprepare_hsm label. That label will then call
> pm_runtime_disable and put_device on the DDC device.
>
> We just retrieved the DDC device, so the latter is definitely justified.
> However at that point we still haven't called pm_runtime_enable, so the
> call to pm_runtime_disable is not supposed to be there.
>
> Fixes: 10ee275cb12f ("drm/vc4: prepare for CEC support")
> Signed-off-by: Maxime Ripard <maxime@xxxxxxxxxx>

Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx>

Yours,
Linus Walleij