]> git.baikalelectronics.ru Git - kernel.git/commit
mei: hbm: drop hbm responses on early shutdown
authorAlexander Usyskin <alexander.usyskin@intel.com>
Wed, 13 Oct 2021 07:45:52 +0000 (10:45 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Oct 2021 09:02:05 +0000 (11:02 +0200)
commit52b90f1d8a860a64c6c1d20aa4be97d4b80b7780
tree5368199598d33d15fee9f90a1522b3d09e47e1d6
parentc79a40a60fe866a1c972ee71f3cb287b0d45e847
mei: hbm: drop hbm responses on early shutdown

Drop HBM responses also in the early shutdown phase where
the usual traffic is allowed.
Extend the rule that drop HBM responses received during the shutdown phase
by also in MEI_DEV_POWERING_DOWN state.
This resolves the stall if the driver is stopping in the middle
of the link init or link reset.

Fixes: f07d68f30336 ("mei: hbm: drop hbm responses on shutdown")
Fixes: 09ecde3c469a ("mei: allow clients on bus to communicate in remove callback")
Cc: <stable@vger.kernel.org> # v5.12+
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Link: https://lore.kernel.org/r/20211013074552.2278419-1-tomas.winkler@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/hbm.c