]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe/pxp: Remove incorrect handling of impossible state during suspend
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Tue, 24 Mar 2026 15:37:21 +0000 (08:37 -0700)
committerDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Fri, 27 Mar 2026 13:53:06 +0000 (06:53 -0700)
commitf1b5a77fc9b6a90cd9a5e3db9d4c73ae1edfcfac
treec9266f12e99caef2a967b17bf058b3de392c7adb
parent5d9e708d2a69ab1f64a17aec810cd7c70c5b9fab
drm/xe/pxp: Remove incorrect handling of impossible state during suspend

The default case of the PXP suspend switch is incorrectly exiting
without releasing the lock. However, this case is impossible to hit
because we're switching on an enum and all the valid enum values have
their own cases. Therefore, we can just get rid of the default case
and rely on the compiler to warn us if a new enum value is added and
we forget to add it to the switch.

Fixes: 51462211f4a9 ("drm/xe/pxp: add PXP PM support")
Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Alan Previn Teres Alexis <alan.previn.teres.alexis@intel.com>
Cc: Julia Filipchuk <julia.filipchuk@intel.com>
Reviewed-by: Julia Filipchuk <julia.filipchuk@intel.com>
Link: https://patch.msgid.link/20260324153718.3155504-8-daniele.ceraolospurio@intel.com
drivers/gpu/drm/xe/xe_pxp.c