]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/gmbus: Add Wa_16025573575 for PTL/WCL for bit-bashing
authorAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Tue, 15 Jul 2025 14:22:11 +0000 (19:52 +0530)
committerAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Thu, 17 Jul 2025 09:40:25 +0000 (15:10 +0530)
commit7565fd5dcb0bd6ad843b8d0acbaa9efea5b481a9
tree91cb0ed61de994065a359f1c87543de7fd5df8ca
parent5c30a6e12ce87a1e6ff1d179f1afb9f97e0a1346
drm/i915/gmbus: Add Wa_16025573575 for PTL/WCL for bit-bashing

As per Wa_16025573575 for PTL/WCL, set the GPIO masks bit before starting
bit-bashing and maintain value through the bit-bashing sequence. After the
bit-bashing sequence is done, clear the GPIO masks bits.

v2:
-Use new helper for display workarounds. (Jani)
-Use a separate if-block for the workaround. (Gustavo)

v3:
-Document the workaround details in intel_display_wa.c
-Extend the workaround to WCL too. (Gustavo)

v4:
-Fix the platform check. (Gustavo)
-Avoid read when preserve bits are 0. (Gustavo)

Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com>
Link: https://lore.kernel.org/r/20250715142211.3145299-1-ankit.k.nautiyal@intel.com
drivers/gpu/drm/i915/display/intel_display_wa.c
drivers/gpu/drm/i915/display/intel_display_wa.h
drivers/gpu/drm/i915/display/intel_gmbus.c