Re: [PATCH v2 1/1] gpio: nct6116d: add new driver for several Nuvoton super io chips

From: Linus Walleij
Date: Mon Jul 11 2022 - 04:42:58 EST


On Mon, Jul 4, 2022 at 3:06 PM Henning Schild
<henning.schild@xxxxxxxxxxx> wrote:

> This patch adds gpio support for several Nuvoton NCTXXX chips. These
> Super-I/O chips offer multiple functions of which several already have
> drivers in the kernel, i.e. hwmon and watchdog.
>
> Signed-off-by: Henning Schild <henning.schild@xxxxxxxxxxx>

(...)
> drivers/gpio/Kconfig | 9 +
(...)
> --- a/drivers/gpio/Kconfig
> +++ b/drivers/gpio/Kconfig
> @@ -457,6 +457,15 @@ config GPIO_MXS
> select GPIO_GENERIC
> select GENERIC_IRQ_CHIP
>
> +config GPIO_NCT6116D
> + tristate "Nuvoton Super-I/O GPIO support"
> + help
> + This option enables support for GPIOs found on Nuvoton Super-I/O
> + chips NCT5104D, NCT6106D, NCT6116D, NCT6122D.
> +
> + To compile this driver as a module, choose M here: the module will
> + be called gpio-nct6116d.
> +
> config GPIO_OCTEON

This driver is put among the memory-mapped GPIO drivers
in Kconfig despite it is using port-mapped IO.

Move it to the right section with the other port-mapped IO
GPIO drivers that begins like this:

menu "Port-mapped I/O GPIO drivers"
depends on X86 # Unconditional I/O space access


Yours,
Linus Walleij