mei: vsc: Unregister interrupt handler for system suspend
authorSakari Ailus <sakari.ailus@linux.intel.com>
Wed, 3 Apr 2024 05:13:41 +0000 (13:13 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 Apr 2024 13:15:53 +0000 (15:15 +0200)
commitf6085a96c97387154be7eaebd1a5420eb3cd55dc
tree78be675616c45a19f4e7c2b65673cf7759193aec
parente3dc66d998d2b0c2734db9ca1d6c94c97349529a
mei: vsc: Unregister interrupt handler for system suspend

Unregister the MEI VSC interrupt handler before system suspend and
re-register it at system resume time. This mirrors implementation of other
MEI devices.

This patch fixes the bug that causes continuous stream of MEI VSC errors
after system resume.

Fixes: 386a766c4169 ("mei: Add MEI hardware support for IVSC device")
Cc: stable@vger.kernel.org # for 6.8
Reported-by: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Wentong Wu <wentong.wu@intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: Tomas Winkler <tomas.winkler@intel.com>
Link: https://lore.kernel.org/r/20240403051341.3534650-2-wentong.wu@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/platform-vsc.c
drivers/misc/mei/vsc-tp.c
drivers/misc/mei/vsc-tp.h