[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aR5cdOOKl1Anji1h@xhacker>
Date: Thu, 20 Nov 2025 08:10:28 +0800
From: Jisheng Zhang <jszhang@...nel.org>
To: Andy Shevchenko <andriy.shevchenko@...el.com>
Cc: Doug Berger <opendmb@...il.com>,
Florian Fainelli <florian.fainelli@...adcom.com>,
bcm-kernel-feedback-list@...adcom.com,
Linus Walleij <linus.walleij@...aro.org>,
Bartosz Golaszewski <brgl@...ev.pl>,
Hoan Tran <hoan@...amperecomputing.com>,
Andy Shevchenko <andy@...nel.org>, Daniel Palmer <daniel@...ngy.jp>,
Romain Perier <romain.perier@...il.com>,
Grygorii Strashko <grygorii.strashko@...com>,
Santosh Shilimkar <ssantosh@...nel.org>,
Kevin Hilman <khilman@...nel.org>,
Robert Jarzmik <robert.jarzmik@...e.fr>,
Kunihiko Hayashi <hayashi.kunihiko@...ionext.com>,
Masami Hiramatsu <mhiramat@...nel.org>,
Shubhrajyoti Datta <shubhrajyoti.datta@....com>,
Srinivas Neeli <srinivas.neeli@....com>,
Michal Simek <michal.simek@....com>, linux-gpio@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
linux-omap@...r.kernel.org
Subject: Re: [PATCH v4 11/15] gpio: tqmx86: Use modern PM macros
On Wed, Nov 19, 2025 at 07:19:58PM +0200, Andy Shevchenko wrote:
> On Thu, Nov 20, 2025 at 12:33:23AM +0800, Jisheng Zhang wrote:
> > Use the modern PM macros for the suspend and resume functions to be
> > automatically dropped by the compiler when CONFIG_PM or
> > CONFIG_PM_SLEEP are disabled, without having to use __maybe_unused
>
> ...
>
> > static const struct dev_pm_ops tqmx86_gpio_dev_pm_ops = {
> > - SET_RUNTIME_PM_OPS(tqmx86_gpio_runtime_suspend,
> > - tqmx86_gpio_runtime_resume, NULL)
> > + RUNTIME_PM_OPS(tqmx86_gpio_runtime_suspend, tqmx86_gpio_runtime_resume, NULL)
> > };
>
> ...
>
> > static struct platform_driver tqmx86_gpio_driver = {
> > .driver = {
> > .name = "tqmx86-gpio",
> > - .pm = &tqmx86_gpio_dev_pm_ops,
> > + .pm = pm_sleep_ptr(&tqmx86_gpio_dev_pm_ops),
>
> For RPM this should be pm_ptr(), no?
Indeed, pm_ptr() is better. Thanks. Let me do it in next version, I will
wait for one or two days as Bart kindly reminded ;)
>
> > },
>
> --
> With Best Regards,
> Andy Shevchenko
>
>
Powered by blists - more mailing lists