From e50c2faa00855fc4f4e2a51d76db4ae03ef7f676 Mon Sep 17 00:00:00 2001 From: Oliver Brown <oliver.brown@nxp.com> Date: Wed, 13 Mar 2019 14:15:49 -0500 Subject: [PATCH] MLK-21142-2: phy: mixel-mipi: Assert PHY reset in phy_init The reset needs to be set in phy_init to handle the warm reset case. Signed-off-by: Oliver Brown <oliver.brown@nxp.com> --- drivers/phy/phy-mixel-mipi-dsi.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/phy/phy-mixel-mipi-dsi.c b/drivers/phy/phy-mixel-mipi-dsi.c index 2966d4bf03e0a4..493612649e3d82 100644 --- a/drivers/phy/phy-mixel-mipi-dsi.c +++ b/drivers/phy/phy-mixel-mipi-dsi.c @@ -333,6 +333,13 @@ static int mixel_mipi_phy_init(struct phy *phy) phy_write(phy, PWR_OFF, DPHY_PD_PLL); phy_write(phy, PWR_OFF, DPHY_PD_DPHY); + if (priv->plat_data->have_sc) { + int ret; + ret = mixel_mipi_phy_enable(phy, 0); + if (ret) + return ret; + } + mixel_phy_set_prg_regs(phy); phy_write(phy, 0x00, DPHY_LOCK_BYP); -- GitLab