Commit 54fdf372 authored by Douglas Anderson's avatar Douglas Anderson

drm/bridge: ti-sn65dsi86: Move drm_panel_unprepare() to post_disable()

We prepared the panel in pre_enable() so we should unprepare it in
post_disable() to match.
Signed-off-by: default avatarDouglas Anderson <dianders@chromium.org>
Reviewed-by: default avatarAndrzej Hajda <a.hajda@samsung.com>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210416153909.v4.5.Ia75c9ffe2a2582393a8532d244da86f18b4c9b21@changeid
parent 4e532867
...@@ -452,8 +452,6 @@ static void ti_sn_bridge_disable(struct drm_bridge *bridge) ...@@ -452,8 +452,6 @@ static void ti_sn_bridge_disable(struct drm_bridge *bridge)
regmap_write(pdata->regmap, SN_ML_TX_MODE_REG, 0); regmap_write(pdata->regmap, SN_ML_TX_MODE_REG, 0);
/* disable DP PLL */ /* disable DP PLL */
regmap_write(pdata->regmap, SN_PLL_ENABLE_REG, 0); regmap_write(pdata->regmap, SN_PLL_ENABLE_REG, 0);
drm_panel_unprepare(pdata->panel);
} }
static u32 ti_sn_bridge_get_dsi_freq(struct ti_sn_bridge *pdata) static u32 ti_sn_bridge_get_dsi_freq(struct ti_sn_bridge *pdata)
...@@ -869,6 +867,8 @@ static void ti_sn_bridge_post_disable(struct drm_bridge *bridge) ...@@ -869,6 +867,8 @@ static void ti_sn_bridge_post_disable(struct drm_bridge *bridge)
{ {
struct ti_sn_bridge *pdata = bridge_to_ti_sn_bridge(bridge); struct ti_sn_bridge *pdata = bridge_to_ti_sn_bridge(bridge);
drm_panel_unprepare(pdata->panel);
clk_disable_unprepare(pdata->refclk); clk_disable_unprepare(pdata->refclk);
pm_runtime_put_sync(pdata->dev); pm_runtime_put_sync(pdata->dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment