[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1493938528-32366-1-git-send-email-john.stultz@linaro.org>
Date: Thu, 4 May 2017 15:55:28 -0700
From: John Stultz <john.stultz@...aro.org>
To: lkml <linux-kernel@...r.kernel.org>
Cc: John Stultz <john.stultz@...aro.org>,
Rob Herring <robh@...nel.org>,
Archit Taneja <architt@...eaurora.org>,
Philipp Zabel <p.zabel@...gutronix.de>,
Maxime Ripard <maxime.ripard@...e-electrons.com>,
Sean Paul <seanpaul@...omium.org>,
Dave Airlie <airlied@...il.com>,
Xinliang Liu <xinliang.liu@...aro.org>
Subject: [PATCH] drm: kirin: Fix drm_of_find_panel_or_bridge conversion
This fixes a regression introduced by ebc944613567 ("drm:
convert drivers to use drm_of_find_panel_or_bridge") that was
recently merged.
For the kirin driver, the port value should be 1 instead of 0,
so this oneline patch fixes it and gets graphics working again.
Cc: Rob Herring <robh@...nel.org>
Cc: Archit Taneja <architt@...eaurora.org>
Cc: Philipp Zabel <p.zabel@...gutronix.de>
Cc: Maxime Ripard <maxime.ripard@...e-electrons.com>
Cc: Sean Paul <seanpaul@...omium.org>
Cc: Dave Airlie <airlied@...il.com>
Cc: Xinliang Liu <xinliang.liu@...aro.org>
Fix-Suggested-by: Rob Herring <robh@...nel.org>
Signed-off-by: John Stultz <john.stultz@...aro.org>
---
drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c b/drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c
index 5abc69c..f77dcfa 100644
--- a/drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c
+++ b/drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c
@@ -760,7 +760,7 @@ static int dsi_parse_dt(struct platform_device *pdev, struct dw_dsi *dsi)
* Get the endpoint node. In our case, dsi has one output port1
* to which the external HDMI bridge is connected.
*/
- ret = drm_of_find_panel_or_bridge(np, 0, 0, NULL, &dsi->bridge);
+ ret = drm_of_find_panel_or_bridge(np, 1, 0, NULL, &dsi->bridge);
if (ret)
return ret;
--
2.7.4
Powered by blists - more mailing lists