Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mei: fix hbm MEI_HBM_STARTED ambiguity

We have MEI_HBM_STARTED in two contexts one
after start message was received and second
after enumeration was completed.
Because after start message reception we move
immediately to the enumeration state, we need
only the later meaning.

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Tomas Winkler and committed by
Greg Kroah-Hartman
5ebdc364 a176c24d

+2 -4
-2
drivers/misc/mei/hbm.c
··· 806 806 return -EPROTO; 807 807 } 808 808 809 - dev->hbm_state = MEI_HBM_STARTED; 810 - 811 809 if (mei_hbm_enum_clients_req(dev)) { 812 810 dev_err(dev->dev, "hbm: start: failed to send enumeration request\n"); 813 811 return -EIO;
+2 -2
drivers/misc/mei/hbm.h
··· 26 26 * 27 27 * @MEI_HBM_IDLE : protocol not started 28 28 * @MEI_HBM_STARTING : start request message was sent 29 - * @MEI_HBM_STARTED : start reply message was received 30 29 * @MEI_HBM_ENUM_CLIENTS : enumeration request was sent 31 30 * @MEI_HBM_CLIENT_PROPERTIES : acquiring clients properties 31 + * @MEI_HBM_STARTED : enumeration was completed 32 32 * @MEI_HBM_STOPPED : stopping exchange 33 33 */ 34 34 enum mei_hbm_state { 35 35 MEI_HBM_IDLE = 0, 36 36 MEI_HBM_STARTING, 37 - MEI_HBM_STARTED, 38 37 MEI_HBM_ENUM_CLIENTS, 39 38 MEI_HBM_CLIENT_PROPERTIES, 39 + MEI_HBM_STARTED, 40 40 MEI_HBM_STOPPED, 41 41 }; 42 42