]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/dp_mst: Fix getting display pointer in intel_dp_mst_compute_min_hblank()
authorImre Deak <imre.deak@intel.com>
Thu, 6 Feb 2025 00:17:26 +0000 (02:17 +0200)
committerImre Deak <imre.deak@intel.com>
Thu, 6 Feb 2025 16:20:12 +0000 (18:20 +0200)
commit93ecd4fbad16c90a9aded8e599a4ef75dada9f82
treeaca163857d808ff28581f4c2b67530a36e040415
parentbadff5fed9ce968b22ae2d4c4239e2f3223987b2
drm/i915/dp_mst: Fix getting display pointer in intel_dp_mst_compute_min_hblank()

The MST intel_connector::encoder pointer is NULL if the connector hasn't
been enabled before, so it can't be used to retrieve the display
pointer. Use instead the crtc_state and drop the unused connector
parameter.

v2: Use the crtc_state and drop the unused connector parameter.

Fixes: a5ebe00c2ace ("drm/i915/dp: Guarantee a minimum HBlank time")
Reported-and-tested-by: Khaled Almahallawy <khaled.almahallawy@intel.com>
Closes: https://lore.kernel.org/all/16754ee4cd21d99c1e81c5953134b496dd07630f.camel@intel.com
Reviewed-by: Khaled Almahallawy <khaled.almahallawy@intel.com> #v1
Cc: Arun R Murthy <arun.r.murthy@intel.com>
Cc: Suraj Kandpal <suraj.kandpal@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250206001726.3021787-1-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_dp_mst.c