mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
nvsciipc: add suspend/resume callback
print suspend/resume status JIRA NVIPC-3318 Change-Id: I43585ba82ccb75dda92f7276e5d5bab416087818 Signed-off-by: Joshua Cha <joshuac@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3297783 Reviewed-by: Jeungwoo Yoo <jeungwooy@nvidia.com> Reviewed-by: Simon Je <sje@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com>
This commit is contained in:
@@ -933,12 +933,34 @@ static int nvsciipc_remove_wrapper(struct platform_device *pdev)
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
static int nvsciipc_suspend(struct platform_device *pdev, pm_message_t state)
|
||||
{
|
||||
dev_notice(&pdev->dev, "nvipc: Suspended\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int nvsciipc_resume(struct platform_device *pdev)
|
||||
{
|
||||
dev_notice(&pdev->dev, "nvipc: Resuming\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif /* CONFIG_PM */
|
||||
|
||||
static struct platform_driver nvsciipc_driver = {
|
||||
.probe = nvsciipc_probe,
|
||||
.remove = nvsciipc_remove_wrapper,
|
||||
.driver = {
|
||||
.name = MODULE_NAME,
|
||||
},
|
||||
#ifdef CONFIG_PM
|
||||
.suspend = nvsciipc_suspend,
|
||||
.resume = nvsciipc_resume,
|
||||
#endif /* CONFIG_PM */
|
||||
|
||||
};
|
||||
|
||||
static int __init nvsciipc_module_init(void)
|
||||
|
||||
Reference in New Issue
Block a user