Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/bridge: anx7625: fix drm_bridge ops flags to support hot-plugging

The anx7625_link_bridge() checks if a device is not a panel
bridge and add DRM_BRIDGE_OP_HPD and DRM_BRIDGE_OP_DETECT
flags to the drm_bridge->ops. However, on port 1 of the anx7625
bridge, any device added is always treated as a panel bridge,
preventing connector_detect() from being called. To resolve
this, instead of just checking if it is a panel bridge, verify
the type of device based on aux whether it is a DisplayPort or
eDP panel. If the device is not of the eDP type, add
DRM_BRIDGE_OP_HPD and DRM_BRIDGE_OP_DETECT flags to the to
the drm_bridge->ops.

Signed-off-by: Ayushi Makhija <quic_amakhija@quicinc.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250505094245.2660750-5-quic_amakhija@quicinc.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>

authored by

Ayushi Makhija and committed by
Dmitry Baryshkov
71867e8d ca8a78cd

+2 -3
+2 -3
drivers/gpu/drm/bridge/analogix/anx7625.c
··· 2603 2603 platform->bridge.of_node = dev->of_node; 2604 2604 if (!anx7625_of_panel_on_aux_bus(dev)) 2605 2605 platform->bridge.ops |= DRM_BRIDGE_OP_EDID; 2606 - if (!platform->pdata.panel_bridge) 2607 - platform->bridge.ops |= DRM_BRIDGE_OP_HPD | 2608 - DRM_BRIDGE_OP_DETECT; 2606 + if (!platform->pdata.panel_bridge || !anx7625_of_panel_on_aux_bus(dev)) 2607 + platform->bridge.ops |= DRM_BRIDGE_OP_HPD | DRM_BRIDGE_OP_DETECT; 2609 2608 platform->bridge.type = platform->pdata.panel_bridge ? 2610 2609 DRM_MODE_CONNECTOR_eDP : 2611 2610 DRM_MODE_CONNECTOR_DisplayPort;