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:
Joshua Cha
2025-02-06 18:26:59 +09:00
committed by Jon Hunter
parent 14c6de030c
commit a674701be0

View File

@@ -933,12 +933,34 @@ static int nvsciipc_remove_wrapper(struct platform_device *pdev)
} }
#endif #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 = { static struct platform_driver nvsciipc_driver = {
.probe = nvsciipc_probe, .probe = nvsciipc_probe,
.remove = nvsciipc_remove_wrapper, .remove = nvsciipc_remove_wrapper,
.driver = { .driver = {
.name = MODULE_NAME, .name = MODULE_NAME,
}, },
#ifdef CONFIG_PM
.suspend = nvsciipc_suspend,
.resume = nvsciipc_resume,
#endif /* CONFIG_PM */
}; };
static int __init nvsciipc_module_init(void) static int __init nvsciipc_module_init(void)