Re: Unsupported device message, Compliance C.2, part 4
Alan Stern <[email protected]>
| Newsgroups | gmane.linux.usb.devel |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 9 Oct 2007, Aras Vaichas wrote: > Our system doesn't have a display at all, it is just a black box with a network > connection. We would envisage providing some notification via our > applications's API. Our application, running with privileges, is able to access > the log file. > > I would tell the certification lab to look at the log files and see that a > message is being generated when the unknown device is inserted. I think that > would be sufficient to pass the Compliance test as it demonstrates that there > is a mechanism in place. Okay. > I think the delay would be acceptable as this would be a minority case and > plugging in a USB device is done relatively slowly anyway. Good. > > popular. It could be made conditional on CONFIG_EMBEDDED > > or some similar option. > > Yes, CONFIG_EMBEDDED makes sense, and also CONFIG_USB_HOST_NO_SILENT_FAILURE. I'd prefer not to add new Kconfig options. If CONFIG_EMBEDDED is okay with you, it would be best to stick with that one. > If it should be done by the kernel, then I would suggest adding > CONFIG_USB_HOST_NO_SILENT_FAILURE and create the delays necessary to report an > unclaimed device. > > I've been poking around in drivers/base/dd.c and drivers/usb/core/driver.c but > I'm not entirely sure where I would put such messages. If you could give me a > hint, I might be able to do this work. The right place to put it would be in drivers/usb/core/hub.c. Write a new routine that would include the delay and then check each interface in the active configuration. Call the new routine just before the "return" statement that precedes loop_disable: in hub_port_connect_change(). Userspace should work equally well. Alan Stern ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel