On Mon, 19 Feb 2007, Raphael Assenat wrote: > > Wow, that's really buggy! Not only is there no interrupt request, the > > port status shows that the chip doesn't even know you plugged in the > > device. > > > > Clearly the chip's wakeup function is completely broken. The only way you > > can get it to work is to prevent the controller from ever being suspended. > > You can do that putting these lines in a system startup file: > > > > echo disabled >/sys/bus/usb/devices/usb2/power/wakeup > > echo -n 0 >/sys/bus/usb/devices/usb2/power/state > > > > Note that you will need to keep the CONFIG_PM_SYSFS_DEPRECATED option for > > that second line to work properly. > That would certainly work, but I dont like much the idea of relying > on a deprecated option. Wont it disappear in the future?
Yes, it will. No doubt it will be replaced by something else. > How about adding an OHCI_QUIRK_NO_RH_SUSPEND flag in struct ohci_hcd > and using it to disable suspend for this chip? The flag can be set > automatically in ohci-pci.c. The only thing I'm not sure about is > the appropriate place to handle this flag in ohci-hub.c.... > > A patch that does this is attached to this email. Please comment. The basic idea is okay but the implementation is wrong. You need to get hold of the the latest USB development sources; the OHCI quirk handling has been completely changed. Also you don't really need a new quirk flag. All you have to do is call device_init_wakeup(&hcd->self.root_hub->dev, 0); See for example the amd756 quirk handling. Alan Stern ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel