Hi, On Tue, 8 Jan 2002, Greg KH wrote:
> On Tue, Jan 08, 2002 at 07:28:54PM +0200, Yoav Etsion wrote: > > Hi all, > > > > I am writing a driver for the keyspan digital media remote. This device is > > based on the EZ-USB chip (2132SC). I just finished writing a firmware for > > that device, and need to download it from the driver (until now I used the > > ezusb driver which does so from command line). > > There is some code that do that in the usb/serial keyspan driver (and > > might be on other drivers as well). > > It's actually in the usbserial.c core code. > > How is your driver going to interact with userspace? > The remote's keys can be mapped to either keyboard keys or mouse buttons/motion. I was thinking of identifying it to the kernel as a keyboard/mouse device through the input core interface, and use the procfs to let the user change the mappings. At a later stage a user level daemon can follow the X focus and change the mappings according to the application in the focus window. Any comment or suggestions on this scheme are quite welcome, though (the first problem was getting it to work). > > I hate to copy&paste this code, but the device does not belong in the > > usb/serial directory (more of a usb/input device). > > Is someone out there working on generic support for those chips, or will > > every driver for a device containing the EZ-USB will also reinvent the > > wheel? > > I was going to split this code up into some generic functions, but was > shot down by the maintainer at the time.Since things have changed > since then, I think I will move these functions back into the core usb > code :) > > But also remember, in the near future, all of the usb firmware loading > will move to userspace (see the archives for a description of this.) > Yes, I was following the beginning of this discussion at the time. Is there a driver that already uses the hotplug mechanism for the EZUSB? Thanks, Yoav > thanks, > > greg k-h > _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
