linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* GPIO drivers under drivers/char/
@ 2024-05-10 17:33 Andy Shevchenko
  2024-05-10 18:20 ` Andy Shevchenko
  0 siblings, 1 reply; 3+ messages in thread
From: Andy Shevchenko @ 2024-05-10 17:33 UTC (permalink / raw)
  To: linux-gpio; +Cc: Linus Walleij, Bartosz Golaszewski, William Breathitt Gray

Hi!

Due to patch bomb from Jens, I noticed that we have two interesting drivers
(and a common library) under drivers/char/. Shouldn't we move them to
drivers/gpio/ to keep an eye on that (with the respective update of MAINTAINERS
if needed)? Also William might say something about this since those are old ISA
(?) related ones and (perhaps?) might utilise PC-104 code.

-- 
With Best Regards,
Andy Shevchenko



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: GPIO drivers under drivers/char/
  2024-05-10 17:33 GPIO drivers under drivers/char/ Andy Shevchenko
@ 2024-05-10 18:20 ` Andy Shevchenko
  2024-05-11 12:41   ` William Breathitt Gray
  0 siblings, 1 reply; 3+ messages in thread
From: Andy Shevchenko @ 2024-05-10 18:20 UTC (permalink / raw)
  To: linux-gpio; +Cc: Linus Walleij, Bartosz Golaszewski, William Breathitt Gray

(Update William's email; btw, William, it seems MAINTAINERS need an update, or .mailcap)

On Fri, May 10, 2024 at 08:33:53PM +0300, Andy Shevchenko wrote:
> Hi!
> 
> Due to patch bomb from Jens, I noticed that we have two interesting drivers
> (and a common library) under drivers/char/. Shouldn't we move them to
> drivers/gpio/ to keep an eye on that (with the respective update of MAINTAINERS
> if needed)? Also William might say something about this since those are old ISA
> (?) related ones and (perhaps?) might utilise PC-104 code.

-- 
With Best Regards,
Andy Shevchenko



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: GPIO drivers under drivers/char/
  2024-05-10 18:20 ` Andy Shevchenko
@ 2024-05-11 12:41   ` William Breathitt Gray
  0 siblings, 0 replies; 3+ messages in thread
From: William Breathitt Gray @ 2024-05-11 12:41 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: linux-gpio, Linus Walleij, Bartosz Golaszewski

[-- Attachment #1: Type: text/plain, Size: 1523 bytes --]

On Fri, May 10, 2024 at 09:20:33PM +0300, Andy Shevchenko wrote:
> (Update William's email; btw, William, it seems MAINTAINERS need an update, or .mailcap)
> 
> On Fri, May 10, 2024 at 08:33:53PM +0300, Andy Shevchenko wrote:
> > Hi!
> > 
> > Due to patch bomb from Jens, I noticed that we have two interesting drivers
> > (and a common library) under drivers/char/. Shouldn't we move them to
> > drivers/gpio/ to keep an eye on that (with the respective update of MAINTAINERS
> > if needed)? Also William might say something about this since those are old ISA
> > (?) related ones and (perhaps?) might utilise PC-104 code.
> 
> -- 
> With Best Regards,
> Andy Shevchenko

Thank you for the forward; I'm updating MAINTAINERS to match my
kernel.org address from now on so that we don't have this problem again
in the future. :-)

Regarding the gpio char drivers, I take it you are referring to the
nsc_gpio used by scx200_gpio and pc8736x_gpio. I agree, these should be
moved to the GPIO subsystem so they're with the old GPIO drivers (and
ported to the standard GPIO interface we have there if they're not
already).

Taking a quick look, neither of these are PC-104 devices, but rather
appear to be part of the Super I/O chip. Regardless, the driver
interface can be the same since they're both performing ioport
operations over an ISA bus essentially. You can utilize
include/linux/isa.h and leverage the module_isa_driver() like what we do
in the gpio-mm driver.

William Breathitt Gray

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-05-11 12:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-10 17:33 GPIO drivers under drivers/char/ Andy Shevchenko
2024-05-10 18:20 ` Andy Shevchenko
2024-05-11 12:41   ` William Breathitt Gray

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).