drm/i915/xe3lpd: Update HDCP rekeying bit
authorSuraj Kandpal <suraj.kandpal@intel.com>
Mon, 4 Nov 2024 18:50:55 +0000 (00:20 +0530)
committerSuraj Kandpal <suraj.kandpal@intel.com>
Tue, 5 Nov 2024 02:51:35 +0000 (08:21 +0530)
commita18e301a9cb66254b5d88857b9e097af1421f4de
tree2df72399717dcd2f60c3797fdda66d2f145527de
parent82ab75c4520cfa77c0409e70a2623561233cd109
drm/i915/xe3lpd: Update HDCP rekeying bit

The TRANS_DDI_FUNC_CTL bit used to enable/disable HDCP rekeying
has moved from bit 12 (Xe2) to bit 15 (Xe3); update the RMW
toggle accordingly.
Also drop the misleading workaround comment tag on this function
since disabling of HDCP rekeying is something that happens on
all platforms, not just those impacted by that workaround.
While we're here, also re-order the if/else ladder to use
standard "newest platform first" order.

v2: add additional definition instead of function, commit message typo
fix and update.
v3: restore lost conditional from v2.
v4: subject line and subject message updated, fix the if ladder order,
fix the bit definition order.
v5: Add the bspec link and remove the Wa comment tag
v6: Rebase over new changes
v7: Fix commit subject and message, reladder the if/else blocks

Bspec: 69964
Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241104185055.739605-1-suraj.kandpal@intel.com
drivers/gpu/drm/i915/display/intel_hdcp.c
drivers/gpu/drm/i915/i915_reg.h