drm/i915/hdcp: Do not use inline intel_de_read
authorSuraj Kandpal <suraj.kandpal@intel.com>
Thu, 19 Jun 2025 11:33:39 +0000 (17:03 +0530)
committerSuraj Kandpal <suraj.kandpal@intel.com>
Tue, 24 Jun 2025 04:53:21 +0000 (10:23 +0530)
commitb8c01389b80fafd8ef50287e0820f4c761ffdeb8
tree4ef1c7940a10e04a43b6a750a3df49381213f981
parent54fd8f38d804fa1353cf3c12113f0a98a4d41adf
drm/i915/hdcp: Do not use inline intel_de_read

Do not use intel_de_read() inline in the WARN_ON functions.
While we are at it make the comparision for stream_type u8 to u8.

--v2
-Use REG_GENMASK() [Jani]
-USe REG_FIELD_GET() [Jani]
-Fix the WARN_ON() condition [Jani]

Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: https://lore.kernel.org/r/20250619113340.3379200-2-suraj.kandpal@intel.com
drivers/gpu/drm/i915/display/intel_dp_hdcp.c
drivers/gpu/drm/i915/display/intel_hdcp_regs.h