mei: me: emit error only if reset was unexpected
authorVitaly Lubart <vitaly.lubart@intel.com>
Sun, 15 Oct 2023 08:05:40 +0000 (11:05 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Oct 2023 08:01:34 +0000 (10:01 +0200)
commit34a674e99acd6ec4b541cd4c630e126ba1a4c22f
tree86d7ec0388c8a72c4ddd76ef3a834f155c8c2a3e
parent3b54a111bb7e558e4a40e483ded7c123fe94382c
mei: me: emit error only if reset was unexpected

GSC devices perform legal firmware initiated resets due to state transition
that may appear as unexpected to the driver. Lower the log level for those
devices to debug level and save the firmware status registers.
When the device comes out of the reset it is possible to check whether the
resets was due to a firmware error or an exception
and only than produce a warning.

Signed-off-by: Vitaly Lubart <vitaly.lubart@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Link: https://lore.kernel.org/r/20231015080540.95922-1-tomas.winkler@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/hw-me-regs.h
drivers/misc/mei/hw-me.c
drivers/misc/mei/init.c
drivers/misc/mei/mei_dev.h