summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/msm/edp/edp_bridge.c
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2020-02-12 14:08:59 +0100
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2020-02-12 14:08:59 +0100
commit74c12ee02af109adcde36ec184fa59c0afb0edaa (patch)
treedfe4615e0a5e3f8583e685aacdd9a0908e9ffbe3 /drivers/gpu/drm/msm/edp/edp_bridge.c
parentdrm/bridge: ti-tfp410: Update drm_connector_init_with_ddc() error message (diff)
parentLinux 5.6-rc1 (diff)
downloadlinux-74c12ee02af109adcde36ec184fa59c0afb0edaa.tar.xz
linux-74c12ee02af109adcde36ec184fa59c0afb0edaa.zip
Merge v5.6-rc1 into drm-misc-fixes
We're based on v5.6, need v5.6-rc1 at least. :) Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Diffstat (limited to 'drivers/gpu/drm/msm/edp/edp_bridge.c')
-rw-r--r--drivers/gpu/drm/msm/edp/edp_bridge.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/gpu/drm/msm/edp/edp_bridge.c b/drivers/gpu/drm/msm/edp/edp_bridge.c
index 2950bba4aca9..b65b5cc2dba2 100644
--- a/drivers/gpu/drm/msm/edp/edp_bridge.c
+++ b/drivers/gpu/drm/msm/edp/edp_bridge.c
@@ -55,8 +55,14 @@ static void edp_bridge_mode_set(struct drm_bridge *bridge,
DBG("set mode: " DRM_MODE_FMT, DRM_MODE_ARG(mode));
list_for_each_entry(connector, &dev->mode_config.connector_list, head) {
- if ((connector->encoder != NULL) &&
- (connector->encoder->bridge == bridge)) {
+ struct drm_encoder *encoder = connector->encoder;
+ struct drm_bridge *first_bridge;
+
+ if (!connector->encoder)
+ continue;
+
+ first_bridge = drm_bridge_chain_get_first_bridge(encoder);
+ if (bridge == first_bridge) {
msm_edp_ctrl_timing_cfg(edp->ctrl,
adjusted_mode, &connector->display_info);
break;