All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] drm/exynos: Init the DSIM PHY in samsung_dsim_enable()
@ 2020-10-05 13:42 ` Marek Vasut
  0 siblings, 0 replies; 21+ messages in thread
From: Marek Vasut @ 2020-10-05 13:42 UTC (permalink / raw)
  To: dri-devel
  Cc: Marek Vasut, Fabio Estevam, Guido Günther, Jaehoon Chung,
	Lucas Stach, Marek Szyprowski, Michael Tretter, NXP Linux Team,
	Shawn Guo, linux-arm-kernel, linux-samsung-soc

In case the PHY is not initialized, do it in samsung_dsim_enable(),
otherwise the link configuration registers are not programmed at all.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: Guido Günther <agx@sigxcpu.org>
Cc: Jaehoon Chung <jh80.chung@samsung.com>
Cc: Lucas Stach <l.stach@pengutronix.de>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: Michael Tretter <m.tretter@pengutronix.de>
Cc: NXP Linux Team <linux-imx@nxp.com>
Cc: Shawn Guo <shawnguo@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-samsung-soc@vger.kernel.org
To: dri-devel@lists.freedesktop.org
--
NOTE: This depends on https://patchwork.kernel.org/project/dri-devel/list/?series=347439
---
 drivers/gpu/drm/bridge/samsung-dsim.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/gpu/drm/bridge/samsung-dsim.c b/drivers/gpu/drm/bridge/samsung-dsim.c
index 6d2d8dc027de..fbd87a74eb9f 100644
--- a/drivers/gpu/drm/bridge/samsung-dsim.c
+++ b/drivers/gpu/drm/bridge/samsung-dsim.c
@@ -1244,6 +1244,13 @@ static void samsung_dsim_enable(struct samsung_dsim *dsi)
 	pm_runtime_get_sync(dsi->dev);
 	dsi->state |= DSIM_STATE_ENABLED;
 
+	if (!(dsi->state & DSIM_STATE_INITIALIZED)) {
+		ret = samsung_dsim_init(dsi);
+		if (ret)
+			return;
+		dsi->state |= DSIM_STATE_INITIALIZED;
+	}
+
 	if (dsi->panel) {
 		ret = drm_panel_prepare(dsi->panel);
 		if (ret < 0)
-- 
2.28.0


^ permalink raw reply related	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2021-05-10 16:22 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-05 13:42 [PATCH 1/3] drm/exynos: Init the DSIM PHY in samsung_dsim_enable() Marek Vasut
2020-10-05 13:42 ` Marek Vasut
2020-10-05 13:42 ` Marek Vasut
2020-10-05 13:42 ` [PATCH 2/3] drm/exynos: Scale the DSIM PHY HFP/HBP/HSA to lanes and bpp Marek Vasut
2020-10-05 13:42   ` Marek Vasut
2020-10-05 13:42   ` Marek Vasut
2020-12-10 15:01   ` Frieder Schrempf
2020-12-10 15:01     ` Frieder Schrempf
2020-12-10 15:01     ` Frieder Schrempf
2020-10-05 13:42 ` [PATCH 3/3] [RFC] drm/exynos: Add basic i.MX8MM support code Marek Vasut
2020-10-05 13:42   ` Marek Vasut
2020-10-05 13:42   ` Marek Vasut
2021-02-03 19:53   ` Michael Tretter
2021-02-03 19:53     ` Michael Tretter
2021-02-03 19:53     ` Michael Tretter
2021-05-10 14:12   ` Adam Ford
2021-05-10 14:12     ` Adam Ford
2021-05-10 14:12     ` Adam Ford
2021-05-10 16:20     ` Tim Harvey
2021-05-10 16:20       ` Tim Harvey
2021-05-10 16:20       ` Tim Harvey

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.