Alan Stern wrote: > On Wed, 14 Feb 2007, Raphael Assenat wrote: > > >>>Is that true even if there was also a device attached at boot time, or >>>does it happen only when you connect a new device and all the ports are >>>unoccupied? >> >>I had not thought of trying that... I did some tests and found that >>if a device was present at boot time, new devices _are_ detected >>correctly. And as long as the number of connected devices does not >>fall down to 0, all ports work normally. > > > Okay. This says that RHSC works correctly while the controller is > running, but it doesn't work when the controller is suspended. hmm. So that's a bug in the chip? Would preventing this specific controller from being suspended be an acceptable solution? What are the implication of not suspending the controller when all the ports are free?
lspci entry for this controller: 0000:00:01.4 0c03: 1283:8152 (rev 07) > Post a copy of the contents of /sys/class/usb_host/usb_host2/registers > while no devices are plugged in, and then again after you plug in a device > and nothing happens. Here. Apparently nothing changes... ** no devices plugged in: bus pci, device 0000:00:01.4 OHCI Host Controller ohci_hcd version 2006 August 04 OHCI 1.0, NO legacy support registers control 0x0c3 HCFS=suspend CBSR=3 cmdstatus 0x00000 SOC=0 intrstatus 0x00000024 FNO SF intrenable 0x8000004a MIE RHSC RD WDH ed_controlhead a3df30c0 ed_bulkhead a3df3080 hcca frame 0x9b0b fmintvl 0xa7782edf FIT FSMPS=0xa778 FI=0x2edf fmremaining 0x80001ea0 FRT FR=0x1ea0 periodicstart 0x2a2f lsthresh 0x0628 hub poll timer off roothub.a 01000202 POTPGT=1 NPS NDP=2(2) roothub.b 00000000 PPCM=0000 DR=0000 roothub.status 00008000 DRWE roothub.portstatus [0] 0x00000100 PPS roothub.portstatus [1] 0x00000100 PPS ** with 1 device plugged in: bus pci, device 0000:00:01.4 OHCI Host Controller ohci_hcd version 2006 August 04 OHCI 1.0, NO legacy support registers control 0x0c3 HCFS=suspend CBSR=3 cmdstatus 0x00000 SOC=0 intrstatus 0x00000024 FNO SF intrenable 0x8000004a MIE RHSC RD WDH ed_controlhead a3df30c0 ed_bulkhead a3df3080 hcca frame 0x9b0b fmintvl 0xa7782edf FIT FSMPS=0xa778 FI=0x2edf fmremaining 0x80001ea0 FRT FR=0x1ea0 periodicstart 0x2a2f lsthresh 0x0628 hub poll timer off roothub.a 01000202 POTPGT=1 NPS NDP=2(2) roothub.b 00000000 PPCM=0000 DR=0000 roothub.status 00008000 DRWE roothub.portstatus [0] 0x00000100 PPS roothub.portstatus [1] 0x00000100 PPS > Here's something else you can try. Turn on CONFIG_PM_SYSFS_DEPRECATED and > keep your "any_connected" change. Then do > > echo -n 2 >/sys/bus/usb/devices/usb2/power/state > > and see what happens when you plug in or remove a device. After doing that, new devices were not detected. And I saw this in dmesg: hub 2-0:1.0: hub_suspend ohci_hcd 0000:00:01.4: suspend root hub I tried writing a 0 to sys/bus/usb/devices/usb2/power/state and saw a resume message. Then I tried plugging a device and it was detected normally. Next I removed my "any_connected" change, but kept CONFIG_PM_SYSFS_DEPRECATED. Then I connected a device, wrote a 2 (nothing happened) and wrote a 0. After writing the 0, the device was immediately detected. Best regards, -- Raphael Assenat 8D Technologies Inc. ------------------------------------------------------------------------- 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