]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/cdclk: Extract dg2_power_well_count()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 26 Sep 2025 08:39:50 +0000 (11:39 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 10 Oct 2025 23:49:31 +0000 (02:49 +0300)
commit9112ce99c1d7ef9ba51c930913e791fcac824f62
tree6219f32a2ba5f1c348c0a587372f23afa2e185dc
parent24c78dda6d737924cd89da02e33bdcf8992a1146
drm/i915/cdclk: Extract dg2_power_well_count()

Extract the code to determine the DG2 pipe power well count
into a small helper. I'll have other uses for this later.

TODO: need to move this power well stuff out from the cdclk code...

v2: Don't lose the early return from intel_cdclk_pcode_pre_notify()
    (kernel test robot)
v3: Compare old vs. new, not old vs. old (Jani)

Cc: Jani Nikula <jani.nikula@linux.intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250926083950.24486-1-ville.syrjala@linux.intel.com
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
drivers/gpu/drm/i915/display/intel_cdclk.c