It would probably make sense to do it that way however, there are apps which already use the ioctl interface on this device and this code came directly from the the manufacturer's linux driver.

I'm not sure how to add general GPIO support for a specific USB device? Things 
to research...

(I think I may have to re-submit this without the gratuitous word-wrapping too)

/ted

-----Original Message----- From: Felix Fietkau
Sent: Monday, August 03, 2015 2:08 PM
To: Ted Hess ; OpenWrt developers
Subject: Re: [OpenWrt-Devel] [PATCH] [kernel] cp201x: Add GPIO ioctl commands 
(from Silicon Labs)

On 2015-08-03 19:55, Ted Hess wrote:
Silicon Labs driver has ioctl support on devices which have GPIO pins. The
driver
in the kernel repo does not have this feature.

Ref:
http://www.silabs.com/Support%20Documents/Software/Linux_CP210x_VCP_3.x.x_Release_Notes.txt

Signed-off-by: Ted Hess <th...@kitschensync.net>
Wouldn't it make more sense to expose this as a GPIO controller instead
of a driver specific ioctl interface?

- Felix _______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to