mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
drm/bridge: ti-sn65dsi83: Fix enable error path
[ Upstream commit8a91b29f1f] If PLL locking failed, the regulator needs to be disabled again. Fixes:5664e3c907("drm/bridge: ti-sn65dsi83: Add vcc supply regulator support") Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Robert Foss <rfoss@kernel.org> Link: https://patchwork.freedesktop.org/patch/msgid/20230504065316.2640739-1-alexander.stein@ew.tq-group.com Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
df3b7e337d
commit
63f3bc83b1
@@ -478,6 +478,7 @@ static void sn65dsi83_atomic_enable(struct drm_bridge *bridge,
|
|||||||
dev_err(ctx->dev, "failed to lock PLL, ret=%i\n", ret);
|
dev_err(ctx->dev, "failed to lock PLL, ret=%i\n", ret);
|
||||||
/* On failure, disable PLL again and exit. */
|
/* On failure, disable PLL again and exit. */
|
||||||
regmap_write(ctx->regmap, REG_RC_PLL_EN, 0x00);
|
regmap_write(ctx->regmap, REG_RC_PLL_EN, 0x00);
|
||||||
|
regulator_disable(ctx->vcc);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user