mmc: sdhci-brcmstb: Add shutdown callback
Shutdown controller and disable it's clocks to insure max power savings in S5 on systems that leave power on. Signed-off-by: Al Cooper <alcooperx@gmail.com> Link: https://lore.kernel.org/r/20200113210706.11972-5-alcooperx@gmail.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
parent
6f2aa55b85
commit
e7b5d63a82
1 changed files with 10 additions and 0 deletions
|
@ -161,6 +161,15 @@ err_clk:
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void sdhci_brcmstb_shutdown(struct platform_device *pdev)
|
||||||
|
{
|
||||||
|
int ret;
|
||||||
|
|
||||||
|
ret = sdhci_pltfm_unregister(pdev);
|
||||||
|
if (ret)
|
||||||
|
dev_err(&pdev->dev, "failed to shutdown\n");
|
||||||
|
}
|
||||||
|
|
||||||
MODULE_DEVICE_TABLE(of, sdhci_brcm_of_match);
|
MODULE_DEVICE_TABLE(of, sdhci_brcm_of_match);
|
||||||
|
|
||||||
static struct platform_driver sdhci_brcmstb_driver = {
|
static struct platform_driver sdhci_brcmstb_driver = {
|
||||||
|
@ -171,6 +180,7 @@ static struct platform_driver sdhci_brcmstb_driver = {
|
||||||
},
|
},
|
||||||
.probe = sdhci_brcmstb_probe,
|
.probe = sdhci_brcmstb_probe,
|
||||||
.remove = sdhci_pltfm_unregister,
|
.remove = sdhci_pltfm_unregister,
|
||||||
|
.shutdown = sdhci_brcmstb_shutdown,
|
||||||
};
|
};
|
||||||
|
|
||||||
module_platform_driver(sdhci_brcmstb_driver);
|
module_platform_driver(sdhci_brcmstb_driver);
|
||||||
|
|
Loading…
Add table
Reference in a new issue