mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 12:03:54 +02:00
drm/i915/alpm: Check for alpm support before accessing alpm register
Currently, only EDP supports alpm. So, check for alpm support and prevent
the DP connector from accessing the alpm register if doing so is unsupported.
Fixes: acff6d6bde ("drm/i915/lobf: Add mutex for alpm update")
Signed-off-by: Animesh Manna <animesh.manna@intel.com>
Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Link: https://lore.kernel.org/r/20250425132107.2926759-1-animesh.manna@intel.com
This commit is contained in:
parent
fcd95af591
commit
8ff377ae31
|
|
@ -556,7 +556,7 @@ void intel_alpm_disable(struct intel_dp *intel_dp)
|
|||
struct intel_display *display = to_intel_display(intel_dp);
|
||||
enum transcoder cpu_transcoder = intel_dp->alpm_parameters.transcoder;
|
||||
|
||||
if (DISPLAY_VER(display) < 20)
|
||||
if (DISPLAY_VER(display) < 20 || !intel_dp->alpm_dpcd)
|
||||
return;
|
||||
|
||||
mutex_lock(&intel_dp->alpm_parameters.lock);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user