drm/rockchip: dsi2: add connector polling connect/disconnect flags

When the bridge code does not abstract a connector, and the bridge
has connection status detection, the dsi abstract connector adds
"DRM_CONNECTOR_POLL_CONNECT" and "DRM_CONNECTOR_POLL_DISCONNECT"
flags for interface plugging and unplugging detection.

Type: Function
Redmine ID: N/A
Associated modifications: N/A
Test: N/A

Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: I58dcb9ade2846c73f489b0ebc9bf65947d7b6352
This commit is contained in:
Zhibin Huang
2024-05-06 20:08:03 +08:00
committed by Tao Huang
parent 4f35f8e5bc
commit bbf4f15cd9

View File

@@ -1479,6 +1479,10 @@ static int dw_mipi_dsi2_bind(struct device *dev, struct device *master,
if (ret)
goto encoder_cleanup;
if (dsi2->bridge && (dsi2->bridge->ops & DRM_BRIDGE_OP_DETECT))
dsi2->connector.polled = DRM_CONNECTOR_POLL_CONNECT |
DRM_CONNECTOR_POLL_DISCONNECT;
connector = &dsi2->connector;
}