提交 761a8c27 编写于 作者: L Lee Jones 提交者: Tejun Heo

ahci: st: Invoke AHCI Platform Suspend/Resume

This is where we disable IRQs on suspend and update the internal
power state during suspend/resume.
Suggested-by: NBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: NLee Jones <lee.jones@linaro.org>
Signed-off-by: NTejun Heo <tj@kernel.org>
上级 48c54df1
......@@ -186,6 +186,10 @@ static int st_ahci_suspend(struct device *dev)
struct ahci_host_priv *hpriv = drv_data->hpriv;
int err;
ret = ahci_platform_suspend_host(dev);
if (ret)
return ret;
if (drv_data->pwr) {
err = reset_control_assert(drv_data->pwr);
if (err) {
......@@ -215,7 +219,7 @@ static int st_ahci_resume(struct device *dev)
return err;
}
return 0;
return ahci_platform_resume_host(dev);
}
#endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册