mei: bus-fixup: change pxp mode only if message was sent
authorAlexander Usyskin <alexander.usyskin@intel.com>
Wed, 16 Nov 2022 12:47:35 +0000 (14:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Nov 2022 18:43:33 +0000 (19:43 +0100)
commit0ef77698b85603d21453daf32ae70f76ae62ccae
tree8e4a5242353f2d6bdde0b73234c81f2b89526b72
parent83f47eea742c1152c237398fc040ceba04fc5d76
mei: bus-fixup: change pxp mode only if message was sent

Move PXP mode state machine to SETUP mode only if
memory ready message sent successfully to the firmware.
Leave it in INIT mode otherwise to allow try to send message later.

Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Link: https://lore.kernel.org/r/20221116124735.2493847-3-alexander.usyskin@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/bus-fixup.c