diff options
author | Jani Nikula <jani.nikula@intel.com> | 2022-01-04 21:48:57 +0300 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2022-01-11 18:28:54 +0300 |
commit | f199f71f20916ddaf2bfc4dceea33c776d414428 (patch) | |
tree | 4c5a72ab4af9d755c1a08f5573bc9c930eb83444 /drivers | |
parent | 55a9c00021e2393393a26e0833fd66e73d630117 (diff) | |
download | linux-f199f71f20916ddaf2bfc4dceea33c776d414428.tar.xz |
drm/mst: use DP_GET_SINK_COUNT() for sink count in ESI
Take bit 7 into account when reading sink count from
DP_DEVICE_SERVICE_IRQ_VECTOR_ESI0.
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220104184857.784563-2-jani.nikula@intel.com
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/drm_dp_mst_topology.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_dp_mst_topology.c b/drivers/gpu/drm/drm_dp_mst_topology.c index f3d79eda94bb..ab4372e9fe43 100644 --- a/drivers/gpu/drm/drm_dp_mst_topology.c +++ b/drivers/gpu/drm/drm_dp_mst_topology.c @@ -4196,7 +4196,7 @@ int drm_dp_mst_hpd_irq(struct drm_dp_mst_topology_mgr *mgr, u8 *esi, bool *handl int ret = 0; int sc; *handled = false; - sc = esi[0] & 0x3f; + sc = DP_GET_SINK_COUNT(esi[0]); if (sc != mgr->sink_count) { mgr->sink_count = sc; |