Skip to content

Commit 4c962bc

Browse files
mark1188-uilumag
authored andcommitted
drm/hisilicon/hibmc: Add vga connector detect functions
Because the connected VGA connector would make driver can't get the userspace call, adding detect_ctx in vga connector to make HPD active userspace. Signed-off-by: Baihan Li <libaihan@huawei.com> Signed-off-by: Yongbang Shi <shiyongbang@huawei.com> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Link: https://lore.kernel.org/r/20250331074212.3370287-10-shiyongbang@huawei.com Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
1 parent b11bc1a commit 4c962bc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ static void hibmc_connector_destroy(struct drm_connector *connector)
6060
static const struct drm_connector_helper_funcs
6161
hibmc_connector_helper_funcs = {
6262
.get_modes = hibmc_connector_get_modes,
63+
.detect_ctx = drm_connector_helper_detect_from_ddc,
6364
};
6465

6566
static const struct drm_connector_funcs hibmc_connector_funcs = {
@@ -127,5 +128,7 @@ int hibmc_vdac_init(struct hibmc_drm_private *priv)
127128

128129
drm_connector_attach_encoder(connector, encoder);
129130

131+
connector->polled = DRM_CONNECTOR_POLL_CONNECT | DRM_CONNECTOR_POLL_DISCONNECT;
132+
130133
return 0;
131134
}

0 commit comments

Comments
 (0)