mei: fix hbm MEI_HBM_STARTED ambiguity
authorTomas Winkler <tomas.winkler@intel.com>
Wed, 5 Nov 2014 09:44:48 +0000 (11:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Nov 2014 17:59:08 +0000 (09:59 -0800)
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>
drivers/misc/mei/hbm.c
drivers/misc/mei/hbm.h

index 256fc4673782b9877cf6c0933906cf77cbbb785d..239d7f5d6a92a851b48e381e5db05c9e94eb1c0f 100644 (file)
@@ -806,8 +806,6 @@ int mei_hbm_dispatch(struct mei_device *dev, struct mei_msg_hdr *hdr)
                        return -EPROTO;
                }
 
-               dev->hbm_state = MEI_HBM_STARTED;
-
                if (mei_hbm_enum_clients_req(dev)) {
                        dev_err(dev->dev, "hbm: start: failed to send enumeration request\n");
                        return -EIO;
index b7cd3d857fd59d691f6b95a7fd2fac61924b2a97..2544db7d1649b75b4a313e0c498e1727c416c494 100644 (file)
@@ -26,17 +26,17 @@ struct mei_cl;
  *
  * @MEI_HBM_IDLE : protocol not started
  * @MEI_HBM_STARTING : start request message was sent
- * @MEI_HBM_STARTED : start reply message was received
  * @MEI_HBM_ENUM_CLIENTS : enumeration request was sent
  * @MEI_HBM_CLIENT_PROPERTIES : acquiring clients properties
+ * @MEI_HBM_STARTED : enumeration was completed
  * @MEI_HBM_STOPPED : stopping exchange
  */
 enum mei_hbm_state {
        MEI_HBM_IDLE = 0,
        MEI_HBM_STARTING,
-       MEI_HBM_STARTED,
        MEI_HBM_ENUM_CLIENTS,
        MEI_HBM_CLIENT_PROPERTIES,
+       MEI_HBM_STARTED,
        MEI_HBM_STOPPED,
 };
 
This page took 0.025829 seconds and 5 git commands to generate.