summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xlnx
diff options
context:
space:
mode:
authorRohit Visavalia <rohit.visavalia@amd.com>2024-02-16 04:40:43 -0800
committerTomi Valkeinen <tomi.valkeinen@ideasonboard.com>2024-02-29 11:46:19 +0200
commitbe318d01a90366029e181068e8857c6252e1fadc (patch)
treeec1367e38d693e2c2ab9423ec10f270087bd178e /drivers/gpu/drm/xlnx
parentbf0390e2c95bf630b22dddc7cde5f83762b658e5 (diff)
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@amd.com> Reviewed-by: Vishal Sagar <vishal.sagar@amd.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240216124043.1226713-1-rohit.visavalia@amd.com
Diffstat (limited to 'drivers/gpu/drm/xlnx')
-rw-r--r--drivers/gpu/drm/xlnx/zynqmp_dp.c4
1 files changed, 4 insertions, 0 deletions
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;