VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   57 Tags
author: andy.hu <andy.hu@starfivetech.com> 2023-09-21 09:10:27 +0000 committer: andy.hu <andy.hu@starfivetech.com> 2023-09-21 09:10:27 +0000 commit: 9c18126b50ecf05df1a11a0aa217a0fc0b3f005c parent: 19c1eeb7ed5521b04206f3b383d62fd3b01213b5
Commit Summary:
Merge branch 'CR_6347_linux_hdmi_hotplug_keith.zhao' into 'jh7110-5.15.y-devel'
Diffstat:
1 file changed, 7 insertions, 1 deletion
diff --git a/drivers/gpu/drm/verisilicon/inno_hdmi.c b/drivers/gpu/drm/verisilicon/inno_hdmi.c
old mode 100755
new mode 100644
index 854c923bbb2c..051e751cfb9f
--- a/drivers/gpu/drm/verisilicon/inno_hdmi.c
+++ b/drivers/gpu/drm/verisilicon/inno_hdmi.c
@@ -722,7 +722,16 @@ static int
 inno_hdmi_probe_single_connector_modes(struct drm_connector *connector,
 				       uint32_t maxX, uint32_t maxY)
 {
-	return drm_helper_probe_single_connector_modes(connector, 3840, 2160);
+	struct inno_hdmi *hdmi = to_inno_hdmi(connector);
+
+	int ret = pm_runtime_get_sync(hdmi->dev);
+	if (ret < 0)
+	   return ret;
+
+	ret = drm_helper_probe_single_connector_modes(connector, 3840, 2160);
+
+	pm_runtime_put(hdmi->dev);
+	return ret;
 }
 
 static void inno_hdmi_connector_destroy(struct drm_connector *connector)