Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 254125
b: refs/heads/master
c: a534bb6
h: refs/heads/master
i:
  254123: d0b220e
v: v3
  • Loading branch information
Tomas Winkler authored and Greg Kroah-Hartman committed Jun 27, 2011
1 parent b92f3ae commit 2818e11
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fdf2df0e8ce634c9ee5f740a9303e8518ca78932
refs/heads/master: a534bb6eea72c0d082dd2faab85450e5554ba1c8
2 changes: 1 addition & 1 deletion trunk/drivers/staging/mei/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ int mei_hw_init(struct mei_device *dev)
mutex_lock(&dev->device_lock);
}

if (!err && !dev->recvd_msg) {
if (err <= 0 && !dev->recvd_msg) {
dev->mei_state = MEI_DISABLED;
dev_dbg(&dev->pdev->dev,
"wait_event_interruptible_timeout failed"
Expand Down
13 changes: 9 additions & 4 deletions trunk/drivers/staging/mei/wd.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,15 @@ int mei_wd_stop(struct mei_device *dev, bool preserve)
ret = wait_event_interruptible_timeout(dev->wait_stop_wd,
dev->wd_stopped, 10 * HZ);
mutex_lock(&dev->device_lock);
if (!dev->wd_stopped)
dev_dbg(&dev->pdev->dev, "stop wd failed to complete.\n");
else
dev_dbg(&dev->pdev->dev, "stop wd complete.\n");
if (dev->wd_stopped) {
dev_dbg(&dev->pdev->dev, "stop wd complete ret=%d.\n", ret);
ret = 0;
} else {
if (!ret)
ret = -ETIMEDOUT;
dev_warn(&dev->pdev->dev,
"stop wd failed to complete ret=%d.\n", ret);
}

if (preserve)
dev->wd_timeout = wd_timeout;
Expand Down

0 comments on commit 2818e11

Please sign in to comment.