Skip to content

Commit 003ec4c

Browse files
committed
drm/i915: Simplify cdclk_disable_noatomic()
Instead of hand rolling the cdclk state disabling for a pipe in noatomic() let's just recompute the whole thing from scratch. Less code we have to remember to keep in sync. Reviewed-by: Vinod Govindapillai <vinod.govindapillai@intel.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250306163420.3961-15-ville.syrjala@linux.intel.com
1 parent e45b819 commit 003ec4c

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

drivers/gpu/drm/i915/display/intel_cdclk.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3364,13 +3364,8 @@ void intel_cdclk_update_hw_state(struct intel_display *display)
33643364
void intel_cdclk_crtc_disable_noatomic(struct intel_crtc *crtc)
33653365
{
33663366
struct intel_display *display = to_intel_display(crtc);
3367-
struct intel_cdclk_state *cdclk_state =
3368-
to_intel_cdclk_state(display->cdclk.obj.state);
3369-
enum pipe pipe = crtc->pipe;
33703367

3371-
cdclk_state->min_cdclk[pipe] = 0;
3372-
cdclk_state->min_voltage_level[pipe] = 0;
3373-
cdclk_state->active_pipes &= ~BIT(pipe);
3368+
intel_cdclk_update_hw_state(display);
33743369
}
33753370

33763371
static int intel_compute_max_dotclk(struct intel_display *display)

0 commit comments

Comments
 (0)