]> 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)
commit91c3996bbce405d7b6cb63daff05107c4bea38da
tree5368199598d33d15fee9f90a1522b3d09e47e1d6
parenta09f5c44d6d808c5141830464aa3c7f4d0b869fe
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: a96d48aa1494 ("mei: hbm: drop hbm responses on shutdown")
Fixes: f6d54384f17e ("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