]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/bios: Add function to check if edp data override is needed
authorSuraj Kandpal <suraj.kandpal@intel.com>
Thu, 21 Aug 2025 04:26:52 +0000 (09:56 +0530)
committerSuraj Kandpal <suraj.kandpal@intel.com>
Mon, 25 Aug 2025 04:23:11 +0000 (09:53 +0530)
commit835a0d544defa05d2425496d16d006b147df5bde
treefda0217ed42a0c0c1db2c0dac6070a4f2b0cecc5
parent4d33c77cf2c3e8842c2f722e1efb6010b021dbc0
drm/i915/bios: Add function to check if edp data override is needed

Add a function that helps identify if the rate provided needs to
be overridden. For this we need a function that compares the rate
provided and bitmask of rates provided in VBT.

--v2
-Rename functions [Jani]
-Return the mask instead of parsing it in function [Jani]
-Move the declaration in header [Jani]

--v3
-Change function name to depict what the function does [Ankit]

--v4
-Lets not use hweight [Ankit]

Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Link: https://lore.kernel.org/r/20250821042653.269227-3-suraj.kandpal@intel.com
drivers/gpu/drm/i915/display/intel_bios.c
drivers/gpu/drm/i915/display/intel_bios.h