mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 01:13:11 +00:00
If OD is not enabled then restoring cached clock settings doesn't make sense and actually leads to errors in resume. Check if enabled before restoring settings. Fixes:4e9526924d("drm/amd: Restore cached manual clock settings during resume") Reported-by: Jérôme Lécuyer <[email protected]> Closes: https://lore.kernel.org/amd-gfx/[email protected]/T/#me6db8ddb192626360c462b7570ed7eba0c6c9733 Suggested-by: Jérôme Lécuyer <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Mario Limonciello <[email protected]> Signed-off-by: Alex Deucher <[email protected]> (cherry picked from commit1a4dd33cc6) Cc: [email protected]