Re: [PATCH] usb: cp210x: Added support for GPIO (CP2103/4/5)

From: Alan Cox
Date: Sat Apr 28 2012 - 15:31:09 EST


On Sat, 28 Apr 2012 20:17:07 +0200
Uwe Bonnes <bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

> >>>>> "Alan" == Alan Cox <alan@xxxxxxxxxxxxxxxxxxx> writes:
>
> ...
> Alan> The other question is whether having some custom gpio poking
> Alan> interface is actually a good idea. I suspect probably not. The
> Alan> kernel gpio layer can help a bit but doesn't really solve the
> Alan> problem as there is no way to tie a gpio to a port. Given how many
> Alan> devices seem to have gpios these days I wonder if we need a gpio
> Alan> setting interface via termiox.
>
> Is this really kernel stuff or better handled in libusb(x)

Tricky to do it that way when the kernel driver owns the interface. Also
it's looking increasingly like we'll need to support a variety of "serial
and a couple of extra magic lines" type interfaces for things like SIM
readers.

Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/