mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
drm/rockchip: analogix_dp: Find possible connector from encoder
Fixes: 48fb554efc ("drm/rockchip: analogix_dp: Protect kernel logo with loader_protect callback")
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: Id2f5817445e86a4e902f9cd4009815687cd5ebe0
This commit is contained in:
@@ -272,6 +272,16 @@ static int rockchip_dp_bridge_attach(struct analogix_dp_plat_data *plat_data,
|
||||
}
|
||||
}
|
||||
|
||||
if (!connector) {
|
||||
struct list_head *connector_list =
|
||||
&bridge->dev->mode_config.connector_list;
|
||||
|
||||
list_for_each_entry(connector, connector_list, head)
|
||||
if (drm_connector_has_possible_encoder(connector,
|
||||
bridge->encoder))
|
||||
break;
|
||||
}
|
||||
|
||||
if (connector) {
|
||||
sdev->connector = connector;
|
||||
sdev->of_node = dp->dev->of_node;
|
||||
|
||||
Reference in New Issue
Block a user