Messages in this thread | | | Date | Thu, 27 Nov 2008 10:58:23 +0000 | From | Alan Cox <> | Subject | Re: [PATCH] usb/serial/cp2101: Add support for cp2103 GPIO pins |
| |
On Thu, 27 Nov 2008 00:29:36 -0800 Keith Packard <keithp@keithp.com> wrote:
> The cp2103 is programmed the same as the cp2101/cp2102 except for the > addition of a set of four GPIO pins which can be directly controlled by the > host. Access to this is done through a custom ioctl.
Only concern I have is that a custom ioctl means every time a new serial chip grows GPIO pins we end up with more ioctls.
We have an LED class driver which might perhaps do the job but isn't really oriented that way but would keep the tty and gpio pins separate and available to different applications at the same time.
Failing that a rename to make it a generic tty gpio ioctl might be more futurerpoof ?
Alan
| |