Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mei: gsc: add transition to PXP mode in resume flow

Added transition to PXP mode in resume flow.

CC: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: Vitaly Lubart <vitaly.lubart@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220907215113.1596567-13-tomas.winkler@intel.com
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>

authored by

Vitaly Lubart and committed by
Joonas Lahtinen
bc9abe0e 342e4c7e

+11
+11
drivers/misc/mei/gsc-me.c
··· 182 182 static int __maybe_unused mei_gsc_pm_resume(struct device *device) 183 183 { 184 184 struct mei_device *dev = dev_get_drvdata(device); 185 + struct auxiliary_device *aux_dev; 186 + struct mei_aux_device *adev; 185 187 int err; 188 + struct mei_me_hw *hw; 186 189 187 190 if (!dev) 188 191 return -ENODEV; 192 + 193 + hw = to_me_hw(dev); 194 + aux_dev = to_auxiliary_dev(device); 195 + adev = auxiliary_dev_to_mei_aux_dev(aux_dev); 196 + if (adev->ext_op_mem.start) { 197 + mei_gsc_set_ext_op_mem(hw, &adev->ext_op_mem); 198 + dev->pxp_mode = MEI_DEV_PXP_INIT; 199 + } 189 200 190 201 err = mei_restart(dev); 191 202 if (err)