diff options
-rw-r--r-- | drivers/misc/mei/init.c | 7 | ||||
-rw-r--r-- | drivers/misc/mei/mei_dev.h | 4 |
2 files changed, 8 insertions, 3 deletions
diff --git a/drivers/misc/mei/init.c b/drivers/misc/mei/init.c index 15253886f37e..6fc573cef178 100644 --- a/drivers/misc/mei/init.c +++ b/drivers/misc/mei/init.c | |||
@@ -181,7 +181,12 @@ void mei_reset(struct mei_device *dev, int interrupts_enabled) | |||
181 | return; | 181 | return; |
182 | } | 182 | } |
183 | 183 | ||
184 | mei_hw_start(dev); | 184 | ret = mei_hw_start(dev); |
185 | if (ret) { | ||
186 | dev_err(&dev->pdev->dev, "hw_start failed disabling the device\n"); | ||
187 | dev->dev_state = MEI_DEV_DISABLED; | ||
188 | return; | ||
189 | } | ||
185 | 190 | ||
186 | dev_dbg(&dev->pdev->dev, "link is established start sending messages.\n"); | 191 | dev_dbg(&dev->pdev->dev, "link is established start sending messages.\n"); |
187 | /* link is established * start sending messages. */ | 192 | /* link is established * start sending messages. */ |
diff --git a/drivers/misc/mei/mei_dev.h b/drivers/misc/mei/mei_dev.h index 1aa499782abe..7b918b2fb894 100644 --- a/drivers/misc/mei/mei_dev.h +++ b/drivers/misc/mei/mei_dev.h | |||
@@ -544,9 +544,9 @@ static inline int mei_hw_reset(struct mei_device *dev, bool enable) | |||
544 | return dev->ops->hw_reset(dev, enable); | 544 | return dev->ops->hw_reset(dev, enable); |
545 | } | 545 | } |
546 | 546 | ||
547 | static inline void mei_hw_start(struct mei_device *dev) | 547 | static inline int mei_hw_start(struct mei_device *dev) |
548 | { | 548 | { |
549 | dev->ops->hw_start(dev); | 549 | return dev->ops->hw_start(dev); |
550 | } | 550 | } |
551 | 551 | ||
552 | static inline void mei_clear_interrupts(struct mei_device *dev) | 552 | static inline void mei_clear_interrupts(struct mei_device *dev) |