]> git.baikalelectronics.ru Git - kernel.git/commit
mei: hbm: drop capability response on early shutdown
authorAlexander Usyskin <alexander.usyskin@intel.com>
Mon, 6 Jun 2022 14:42:24 +0000 (17:42 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Jun 2022 12:22:03 +0000 (14:22 +0200)
commit7606bba48a6b9c133fa7016004f3620ff836afbf
treecd25104d543bf6b789b64761a795493c8b6b0024
parenta3cabcd4b17ca98bb101bb22067006d31b80b60e
mei: hbm: drop capability response on early shutdown

commit 8b633016305211857f9015e88677315662ed8c2d upstream.

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 initialization or link reset.

Drop the capabilities response on early shutdown.

Fixes: 91c3996bbce4 ("mei: hbm: drop hbm responses on early shutdown")
Cc: <stable@vger.kernel.org>
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Link: https://lore.kernel.org/r/20220606144225.282375-2-tomas.winkler@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/hbm.c