From: Rosen Penev <rosenp@gmail.com>
To: linux-gpio@vger.kernel.org
Cc: Linus Walleij <linusw@kernel.org>,
Bartosz Golaszewski <brgl@kernel.org>,
linux-kernel@vger.kernel.org (open list)
Subject: [PATCH] gpio: pc104: Add COMPILE_TEST coverage
Date: Mon, 18 May 2026 14:49:51 -0700 [thread overview]
Message-ID: <20260518214951.16526-1-rosenp@gmail.com> (raw)
The port-mapped GPIO drivers are hidden on non-x86 builds even when the
architecture provides I/O port access. Several PC/104 GPIO drivers only
depend on generic ISA, regmap, and gpiolib infrastructure, so they can be
built for compile-test coverage.
Allow the port-mapped GPIO menu and the PC/104 GPIO drivers to be selected
under COMPILE_TEST while retaining the existing HAS_IOPORT guard.
Assisted-by: Codex:GPT-5.5
Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
drivers/gpio/Kconfig | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index 25a6d7af3f5c..c33a10a31861 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -934,7 +934,8 @@ config GPIO_IDT3243X
endmenu
menu "Port-mapped I/O GPIO drivers"
- depends on X86 && HAS_IOPORT # I/O space access
+ depends on X86 || COMPILE_TEST
+ depends on HAS_IOPORT # I/O space access
config GPIO_VX855
tristate "VIA VX855/VX875 GPIO"
@@ -963,7 +964,7 @@ config GPIO_I8255
config GPIO_104_DIO_48E
tristate "ACCES 104-DIO-48E GPIO support"
- depends on PC104
+ depends on PC104 || COMPILE_TEST
select ISA_BUS_API
select REGMAP_MMIO
select REGMAP_IRQ
@@ -978,7 +979,7 @@ config GPIO_104_DIO_48E
config GPIO_104_IDIO_16
tristate "ACCES 104-IDIO-16 GPIO support"
- depends on PC104
+ depends on PC104 || COMPILE_TEST
select ISA_BUS_API
select REGMAP_MMIO
select GPIO_IDIO_16
@@ -991,7 +992,7 @@ config GPIO_104_IDIO_16
config GPIO_104_IDI_48
tristate "ACCES 104-IDI-48 GPIO support"
- depends on PC104
+ depends on PC104 || COMPILE_TEST
select ISA_BUS_API
select REGMAP_MMIO
select REGMAP_IRQ
@@ -1016,7 +1017,7 @@ config GPIO_F7188X
config GPIO_GPIO_MM
tristate "Diamond Systems GPIO-MM GPIO support"
- depends on PC104
+ depends on PC104 || COMPILE_TEST
select ISA_BUS_API
select REGMAP_MMIO
select GPIO_I8255
--
2.54.0
next reply other threads:[~2026-05-18 21:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-18 21:49 Rosen Penev [this message]
2026-05-20 13:20 ` Bartosz Golaszewski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260518214951.16526-1-rosenp@gmail.com \
--to=rosenp@gmail.com \
--cc=brgl@kernel.org \
--cc=linusw@kernel.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®