On Fri, Jun 10, 2022 at 8:08 AM Aswath Govindraju <a-govindraju@xxxxxx> wrote: > > From: Devarsh Thakkar <devarsht@xxxxxx> > > Add support for system suspend/resume PM hooks, save the > register context of all the required gpio registers on suspend > and restore the context on resume. the resume ... > + writel_relaxed(0xFFFFFFFF, &g->intstat); GENMASK(31, 0) ? ... > +static int __maybe_unused davinci_gpio_suspend(struct device *dev) > +static int __maybe_unused davinci_gpio_resume(struct device *dev) > +static const struct dev_pm_ops davinci_gpio_dev_pm_ops = { > + SET_SYSTEM_SLEEP_PM_OPS(davinci_gpio_suspend, davinci_gpio_resume) > +}; > + .pm = &davinci_gpio_dev_pm_ops, Can you utilize pm_sleep_ptr() and corresponding macros instead of __maybe_unused? -- With Best Regards, Andy Shevchenko