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:
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)