[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240216124043.1226713-1-rohit.visavalia@amd.com>
Date: Fri, 16 Feb 2024 04:40:43 -0800
From: Rohit Visavalia <rohit.visavalia@....com>
To: <gregkh@...uxfoundation.org>, <laurent.pinchart@...asonboard.com>,
<maarten.lankhorst@...ux.intel.com>, <mripard@...nel.org>,
<tzimmermann@...e.de>, <airlied@...il.com>, <daniel@...ll.ch>,
<michal.simek@....com>, <dri-devel@...ts.freedesktop.org>,
<linux-arm-kernel@...ts.infradead.org>
CC: <linux-kernel@...r.kernel.org>
Subject: [PATCH] drm: xlnx: dp: Reset DisplayPort IP
Assert DisplayPort reset signal before deasserting,
it is to clear out any registers programmed before booting kernel.
Signed-off-by: Rohit Visavalia <rohit.visavalia@....com>
---
drivers/gpu/drm/xlnx/zynqmp_dp.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/gpu/drm/xlnx/zynqmp_dp.c b/drivers/gpu/drm/xlnx/zynqmp_dp.c
index 1846c4971fd8..5a40aa1d4283 100644
--- a/drivers/gpu/drm/xlnx/zynqmp_dp.c
+++ b/drivers/gpu/drm/xlnx/zynqmp_dp.c
@@ -1714,6 +1714,10 @@ int zynqmp_dp_probe(struct zynqmp_dpsub *dpsub)
goto err_free;
}
+ ret = zynqmp_dp_reset(dp, true);
+ if (ret < 0)
+ return ret;
+
ret = zynqmp_dp_reset(dp, false);
if (ret < 0)
goto err_free;
--
2.25.1
Powered by blists - more mailing lists