[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250820154037.22228-1-jszhang@kernel.org>
Date: Wed, 20 Aug 2025 23:40:21 +0800
From: Jisheng Zhang <jszhang@...nel.org>
To: Doug Berger <opendmb@...il.com>,
Florian Fainelli <florian.fainelli@...adcom.com>,
Linus Walleij <linus.walleij@...aro.org>,
Bartosz Golaszewski <brgl@...ev.pl>,
Michael Buesch <m@...s.ch>,
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>
Cc: Broadcom internal kernel review list <bcm-kernel-feedback-list@...adcom.com>,
linux-gpio@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org,
linux-omap@...r.kernel.org,
linux@...tq-group.com
Subject: [PATCH 00/16] gpio: Use modern PM macros
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 #ifdef guards or
__maybe_unused.
This has the advantage of always compiling these functions in,
independently of any Kconfig option. Thanks to that, bugs and other
regressions are subsequently easier to catch.
Almost all drivers are converted, only gpio-tegra and gpio-mlxbf are
left as is, because the memory for saving HW context is not trivial,
if we convert them, then the two drivers' users may complain for
!CONFIG_PM && !CONFIG_PM_SLEEP case. So I didn't touch them.
patch to gpio-dwapb.c is tested on real HW, others are compile-tested only.
Jisheng Zhang (16):
gpio: dwapb: Use modern PM macros
gpio: brcmstb: Use modern PM macros
gpio: bt8xx: Use modern PM macros
gpio: htc-egpio: Use modern PM macros
gpio: pl061: Use modern PM macros
gpio: pxa: Use modern PM macros
gpio: ml-ioh: Use modern PM macros
gpio: mlxbf2: Use modern PM macros
gpio: msc313: Use modern PM macros
gpio: omap: Use modern PM macros
gpio: pch: Use modern PM macros
gpio: tqmx86: Use modern PM macros
gpio: uniphier: Use modern PM macros
gpio: xgene: Use modern PM macros
gpio: xilinx: Use modern PM macros
gpio: zynq: Use modern PM macros
drivers/gpio/gpio-brcmstb.c | 12 +++---------
drivers/gpio/gpio-bt8xx.c | 11 ++---------
drivers/gpio/gpio-dwapb.c | 31 +++++++------------------------
drivers/gpio/gpio-htc-egpio.c | 21 ++++++++-------------
drivers/gpio/gpio-ml-ioh.c | 12 ++++++------
drivers/gpio/gpio-mlxbf2.c | 8 ++++----
drivers/gpio/gpio-msc313.c | 8 ++++----
drivers/gpio/gpio-omap.c | 15 +++++++--------
drivers/gpio/gpio-pch.c | 12 ++++++------
drivers/gpio/gpio-pl061.c | 17 ++---------------
drivers/gpio/gpio-pxa.c | 12 ++----------
drivers/gpio/gpio-tqmx86.c | 9 ++++-----
drivers/gpio/gpio-uniphier.c | 9 ++++-----
drivers/gpio/gpio-xgene.c | 8 ++++----
drivers/gpio/gpio-xilinx.c | 15 +++++++--------
drivers/gpio/gpio-zynq.c | 15 +++++++--------
16 files changed, 77 insertions(+), 138 deletions(-)
--
2.50.1
Powered by blists - more mailing lists