diff options
author | Alexander Usyskin <alexander.usyskin@intel.com> | 2014-08-21 14:29:19 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-23 22:57:48 -0700 |
commit | cb02efc3a6e96a0dc4aba8ebf0c1136b72fbe8ba (patch) | |
tree | dd60c108aece5a5ba0e6af58c8a8217d45c2835c /drivers/misc/mei/init.c | |
parent | 12f45ed414c8d2eac1a98bf2deaf4117e8c0324f (diff) | |
download | op-kernel-dev-cb02efc3a6e96a0dc4aba8ebf0c1136b72fbe8ba.zip op-kernel-dev-cb02efc3a6e96a0dc4aba8ebf0c1136b72fbe8ba.tar.gz |
mei: wait for hbm start non-interruptible
We cannot handle user interrupt in context of hbm start
so we only wait for time out which is reasonably short.
1. Add kdoc
2. Rename state to better reflect its function
3. Simplify wait condition and rename
wait_recvd_msg to wait_hbm_start
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/init.c')
-rw-r--r-- | drivers/misc/mei/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/mei/init.c b/drivers/misc/mei/init.c index 73ccbb6..9f635be 100644 --- a/drivers/misc/mei/init.c +++ b/drivers/misc/mei/init.c @@ -360,7 +360,7 @@ void mei_device_init(struct mei_device *dev, const struct mei_cfg *cfg) mutex_init(&dev->device_lock); init_waitqueue_head(&dev->wait_hw_ready); init_waitqueue_head(&dev->wait_pg); - init_waitqueue_head(&dev->wait_recvd_msg); + init_waitqueue_head(&dev->wait_hbm_start); init_waitqueue_head(&dev->wait_stop_wd); dev->dev_state = MEI_DEV_INITIALIZING; dev->reset_count = 0; |