Thomas Zimmermann
2025-Dec-01 07:36 UTC
[PATCH] drm/nouveau: Resolve the issue of VGA not detecting disconnection
Hi Am 01.12.25 um 02:41 schrieb 2564278112 at qq.com:> From: Wang Jiang <jiangwang at kylinos.cn> > > When using the GT730, I found that the VGA could recognize when it was plugged in, > but could not detect when it was disconnected. > The reason is that the polled flag for the connector is missing DRM_CONNECTOR_POLL_DISCONNECT. > > Signed-off-by: Wang Jiang <jiangwang at kylinos.cn> > Reviewed-by: Thomas Zimmermann <tzimmermann at suse.de>I'm surprised that there is a new patch and I already reviewed it. Has this change been posted elsewhere already? Best regards Thomas> --- > drivers/gpu/drm/nouveau/nouveau_connector.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/nouveau/nouveau_connector.c b/drivers/gpu/drm/nouveau/nouveau_connector.c > index 63621b1510f6..dfff01edf65a 100644 > --- a/drivers/gpu/drm/nouveau/nouveau_connector.c > +++ b/drivers/gpu/drm/nouveau/nouveau_connector.c > @@ -1421,7 +1421,7 @@ nouveau_connector_create(struct drm_device *dev, int index) > connector->doublescan_allowed = false; > > drm_connector_helper_add(connector, &nouveau_connector_helper_funcs); > - connector->polled = DRM_CONNECTOR_POLL_CONNECT; > + connector->polled = DRM_CONNECTOR_POLL_CONNECT | DRM_CONNECTOR_POLL_DISCONNECT; > > if (nvif_object_constructed(&nv_connector->conn.object)) { > ret = nvif_conn_event_ctor(&nv_connector->conn, "kmsHotplug",-- -- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Frankenstr. 146, 90461 N?rnberg, Germany, www.suse.com GF: Jochen Jaser, Andrew McDonald, Werner Knoblich, (HRB 36809, AG N?rnberg)