Skip to content

Commit b4bf2fa

Browse files
sandy-huangrkhuangtao
authored andcommitted
drm/rockchip: lvds: set correct step to power off lvds
Change-Id: I6ce0fea548a0bc66c231ac184b45b74fd9acaf1f Signed-off-by: Huang Jiachai <hjc@rock-chips.com>
1 parent 56640e7 commit b4bf2fa

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

drivers/gpu/drm/rockchip/rockchip_lvds.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -342,15 +342,14 @@ static void rockchip_lvds_poweroff(struct rockchip_lvds *lvds)
342342
u32 val;
343343

344344
if (LVDS_CHIP(lvds) == RK3288_LVDS) {
345-
ret = regmap_write(lvds->grf,
346-
lvds->soc_data->grf_soc_con7, 0xffff8000);
347-
if (ret != 0)
348-
dev_err(lvds->dev, "Could not write to GRF: %d\n", ret);
349-
350345
writel(RK3288_LVDS_CFG_REG21_TX_DISABLE,
351346
lvds->regs + RK3288_LVDS_CFG_REG21);
352347
writel(RK3288_LVDS_CFG_REGC_PLL_DISABLE,
353348
lvds->regs + RK3288_LVDS_CFG_REGC);
349+
ret = regmap_write(lvds->grf,
350+
lvds->soc_data->grf_soc_con7, 0xffff8000);
351+
if (ret != 0)
352+
dev_err(lvds->dev, "Could not write to GRF: %d\n", ret);
354353

355354
pm_runtime_put(lvds->dev);
356355
if (lvds->pclk)

0 commit comments

Comments
 (0)