|
@@ -347,6 +347,10 @@ static int mei_txe_pm_runtime_suspend(struct device *device)
|
|
dev_dbg(&pdev->dev, "rpm: txe: runtime suspend ret=%d\n", ret);
|
|
dev_dbg(&pdev->dev, "rpm: txe: runtime suspend ret=%d\n", ret);
|
|
|
|
|
|
mutex_unlock(&dev->device_lock);
|
|
mutex_unlock(&dev->device_lock);
|
|
|
|
+
|
|
|
|
+ if (ret && ret != -EAGAIN)
|
|
|
|
+ schedule_work(&dev->reset_work);
|
|
|
|
+
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -372,6 +376,9 @@ static int mei_txe_pm_runtime_resume(struct device *device)
|
|
|
|
|
|
dev_dbg(&pdev->dev, "rpm: txe: runtime resume ret = %d\n", ret);
|
|
dev_dbg(&pdev->dev, "rpm: txe: runtime resume ret = %d\n", ret);
|
|
|
|
|
|
|
|
+ if (ret)
|
|
|
|
+ schedule_work(&dev->reset_work);
|
|
|
|
+
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|