mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
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: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
parent
48c54df130
commit
761a8c2765
1 changed files with 5 additions and 1 deletions
|
@ -186,6 +186,10 @@ static int st_ahci_suspend(struct device *dev)
|
||||||
struct ahci_host_priv *hpriv = drv_data->hpriv;
|
struct ahci_host_priv *hpriv = drv_data->hpriv;
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
|
ret = ahci_platform_suspend_host(dev);
|
||||||
|
if (ret)
|
||||||
|
return ret;
|
||||||
|
|
||||||
if (drv_data->pwr) {
|
if (drv_data->pwr) {
|
||||||
err = reset_control_assert(drv_data->pwr);
|
err = reset_control_assert(drv_data->pwr);
|
||||||
if (err) {
|
if (err) {
|
||||||
|
@ -215,7 +219,7 @@ static int st_ahci_resume(struct device *dev)
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return ahci_platform_resume_host(dev);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue