diff options
| author | Andy Yan <[email protected]> | 2025-07-03 12:49:53 +0000 |
|---|---|---|
| committer | Dmitry Baryshkov <[email protected]> | 2025-07-14 15:23:18 +0000 |
| commit | 5d156a9c3d5ea3dbec192121259dee2c2f938fa1 (patch) | |
| tree | a0348dc575885a53937704054b6ca8923d14c170 /drivers/gpu/drm/rockchip/cdn-dp-core.c | |
| parent | drm/bridge: Make dp/hdmi_audio_* callback keep the same paramter order with g... (diff) | |
| download | kernel-5d156a9c3d5ea3dbec192121259dee2c2f938fa1.tar.gz kernel-5d156a9c3d5ea3dbec192121259dee2c2f938fa1.zip | |
drm/bridge: Pass down connector to drm bridge detect hook
In some application scenarios, we hope to get the corresponding
connector when the bridge's detect hook is invoked.
In most cases, we can get the connector by drm_atomic_get_connector_for_encoder
if the encoder attached to the bridge is enabled, however there will
still be some scenarios where the detect hook of the bridge is called
but the corresponding encoder has not been enabled yet. For instance,
this occurs when the device is hot plug in for the first time.
Since the call to bridge's detect is initiated by the connector, passing
down the corresponding connector directly will make things simpler.
Signed-off-by: Andy Yan <[email protected]>
Reviewed-by: Dmitry Baryshkov <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[DB: added the chunk to the cdn-dp driver]
Signed-off-by: Dmitry Baryshkov <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/rockchip/cdn-dp-core.c')
| -rw-r--r-- | drivers/gpu/drm/rockchip/cdn-dp-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/rockchip/cdn-dp-core.c b/drivers/gpu/drm/rockchip/cdn-dp-core.c index c7e199ba123e..b7e3f5dcf8d5 100644 --- a/drivers/gpu/drm/rockchip/cdn-dp-core.c +++ b/drivers/gpu/drm/rockchip/cdn-dp-core.c @@ -233,7 +233,7 @@ static bool cdn_dp_check_sink_connection(struct cdn_dp_device *dp) } static enum drm_connector_status -cdn_dp_bridge_detect(struct drm_bridge *bridge) +cdn_dp_bridge_detect(struct drm_bridge *bridge, struct drm_connector *connector) { struct cdn_dp_device *dp = bridge_to_dp(bridge); enum drm_connector_status status = connector_status_disconnected; |
