diff options
author | Oleg Vasilev <oleg.vasilev@intel.com> | 2019-08-29 14:48:49 +0300 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2020-01-10 16:33:24 +0300 |
commit | b4c32073b8cfb7ad264bf65d40cc7419ff489ea0 (patch) | |
tree | 6585cd13f014e7eb6209171116e801144268cd1d /drivers/gpu/drm/drm_dp_helper.c | |
parent | e5124751892a5ca66d07aead1e74bc6c55638d74 (diff) | |
download | linux-b4c32073b8cfb7ad264bf65d40cc7419ff489ea0.tar.xz |
drm: always determine branch device with drm_dp_is_branch()
The helper should always be used.
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Oleg Vasilev <oleg.vasilev@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: intel-gfx@lists.freedesktop.org
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190829114854.1539-2-oleg.vasilev@intel.com
Diffstat (limited to 'drivers/gpu/drm/drm_dp_helper.c')
-rw-r--r-- | drivers/gpu/drm/drm_dp_helper.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_dp_helper.c b/drivers/gpu/drm/drm_dp_helper.c index 2c7870aef469..f629fc5494a4 100644 --- a/drivers/gpu/drm/drm_dp_helper.c +++ b/drivers/gpu/drm/drm_dp_helper.c @@ -460,8 +460,7 @@ void drm_dp_downstream_debug(struct seq_file *m, int len; uint8_t rev[2]; int type = port_cap[0] & DP_DS_PORT_TYPE_MASK; - bool branch_device = dpcd[DP_DOWNSTREAMPORT_PRESENT] & - DP_DWN_STRM_PORT_PRESENT; + bool branch_device = drm_dp_is_branch(dpcd); seq_printf(m, "\tDP branch device present: %s\n", branch_device ? "yes" : "no"); |