On Tuesday 18 May 2010 08:55:39 am Greg KH wrote: > On Tue, May 18, 2010 at 08:44:59AM -0600, Steve McKown wrote: > > > Wait, this isn't the standard Linux GPIO layer. What happened to using > > > that instead of a custom ioctl? > > > > It's already on my todo list; I just haven't got to it yet. > > Ok, that's the big change that I would like to see happen. I'll have it before I next post code for review. > I don't want > to add new ioctls to the kernel if at all possible, especially one-off > ones like this that only work for one specific driver/device. A few ioctls remain in the patch even after porting to kernel gpio: - Get and set port configuration. Defines the configuration of the internal port pins on the cp210x. This includes things like pull-ups, pin function, reset state, etc. - Set VID, PID and descriptors: product, serial, and device version. We use these ioctls to properly configure the cp210x embedded in several of our USB device designs. Currently, the patch includes cp210x.h which can be included from userspace too, so that the ioctl commands, starting at SIOCDEVPRIVATE, can be known without defining new ioctls globally. Is this enough isolation to consider their inclusion? If no, what other methods could be considered? Thanks, Steve -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html