mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user