Bug 4974

Summary: GL811E chip fault with OHCI+EHCI based controllers
Product: Drivers Reporter: Oleksij Rempel (fishor) (bug-track)
Component: USBAssignee: Greg Kroah-Hartman (greg)
Status: REJECTED WILL_NOT_FIX    
Severity: high CC: dbrownell
Priority: P2    
Hardware: i386   
OS: Linux   
Kernel Version: 2.6.13-rc4-mm1 Subsystem:
Regression: --- Bisected commit-id:
Bug Depends on:    
Bug Blocks: 5089    
Attachments: usb_devices
lspci
usb_devices
usb_devices
usb_devices

Description Oleksij Rempel (fishor) 2005-07-31 09:00:21 UTC
Distribution:kubuntu 5.04  
Hardware Environment: ide2usb adapter baisad on gl811e chip and usb 2.0 cardbus  
Software Environment: kerne 2.6.13-rc4  
Problem Description:  
ide2usb adapter do not working with usb 2.0 cardbus. And fault with : 
  
hub 2-0:1.0: state 5 ports 5 chg 0000 evt 0002 
ehci_hcd 0000:02:00.2: GetStatus port 1 status 001c03 POWER sig=? CSC CONNECT 
hub 2-0:1.0: port 1, status 0501, change 0001, 480 Mb/s 
hub 2-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x501 
ehci_hcd 0000:02:00.2: port 1 full speed --> companion 
ehci_hcd 0000:02:00.2: GetStatus port 1 status 003801 POWER OWNER sig=j CONNECT 
hub 2-0:1.0: port_wait_reset: err = -107 
 
With internal usb 1.1 it's working.
Comment 1 Oleksij Rempel (fishor) 2005-07-31 09:05:32 UTC
Created attachment 5434 [details]
usb_devices

ide to usb adapter attached to usb 1.1
Comment 2 Oleksij Rempel (fishor) 2005-07-31 09:06:19 UTC
Created attachment 5435 [details]
lspci
Comment 3 Andrew Morton 2005-07-31 10:44:39 UTC
Did any earlier kernel version work OK?  If so, whcih one?

Thanks.

Comment 4 Oleksij Rempel (fishor) 2005-08-01 06:32:05 UTC
I tested with 2.6.8.1, 2.6.10, 2.6.12.3, 2.6.13-rc4* and didn't gat positive  
result. On the begining i made wrong kernel configuration without OHCI module,  
but it worked with other usb devices (scaner, printer). However, with OHCI 
module it dusn't working too.And fault with message:  
  
------------------dmesg-begin---------------------------------------------------  
hub 2-0:1.0: port 1 not reset yet, waiting 200ms  
ohci_hcd 0000:02:00.0: GetStatus roothub.portstatus [0] = 0x00120101 PRSC PESC  
PPS CCS  
hub 2-0:1.0: port 1 not reset yet, waiting 200ms  
ohci_hcd 0000:02:00.0: GetStatus roothub.portstatus [0] = 0x00120101 PRSC PESC  
PPS CCS  
hub 2-0:1.0: port 1 not reset yet, waiting 200ms  
hub 2-0:1.0: port_wait_reset: err = -16  
hub 2-0:1.0: port 1 not enabled, trying reset again...  
ohci_hcd 0000:02:00.0: GetStatus roothub.portstatus [0] = 0x00120101 PRSC PESC  
PPS CCS  
hub 2-0:1.0: port 1 not reset yet, waiting 200ms  
ohci_hcd 0000:02:00.0: GetStatus roothub.portstatus [0] = 0x00120101 PRSC PESC  
PPS CCS  
hub 2-0:1.0: port 1 not reset yet, waiting 200ms  
ohci_hcd 0000:02:00.0: GetStatus roothub.portstatus [0] = 0x00120101 PRSC PESC  
PPS CCS  
hub 2-0:1.0: port 1 not reset yet, waiting 200ms  
hub 2-0:1.0: port_wait_reset: err = -16  
hub 2-0:1.0: port 1 not enabled, trying reset again...  
hub 2-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?  
hub 2-0:1.0: state 5 ports 3 chg 0000 evt 0002  
ohci_hcd 0000:02:00.0: GetStatus roothub.portstatus [0] = 0x00120101 PRSC PESC  
PPS CCS  
hub 2-0:1.0: port 1 enable change, status 00000101  
hub 2-0:1.0: reset change on port 1  
-----------------------------dmesg-end------------------------------------  
  
after ide2usb adapter plugout 
-----------------------------dmesg-begin------------------------------- 
hub 2-0:1.0: state 5 ports 3 chg 0000 evt 0002 
ohci_hcd 0000:02:00.0: GetStatus roothub.portstatus [0] = 0x00010100 CSC PPS 
hub 2-0:1.0: port 1, status 0100, change 0001, 12 Mb/s 
hub 2-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x100 
hub 4-0:1.0: state 5 ports 5 chg 0000 evt 0002 
ehci_hcd 0000:02:00.2: GetStatus port 1 status 001002 POWER sig=se0 CSC 
hub 4-0:1.0: port 1, status 0100, change 0001, 12 Mb/s 
hub 4-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x100 
 
Comment 5 Greg Kroah-Hartman 2005-08-04 13:11:03 UTC
David, any ideas?
Comment 6 David Brownell 2005-08-04 18:07:03 UTC
GeneSys adapters have never worked well with Linux, reasons unknown. 
But I thought they were working much better lately ... and these 
problems are well before usb-storage would trigger those faults. 
 
Or:  when I was working with CardBus EHCI, I found that it was rather 
essential to use the external power supply with the card.  It seems 
not all laptops are happy providing 0.5 Amps per USB port.  :) 
 
 
Comment 7 Oleksij Rempel (fishor) 2005-08-05 05:47:43 UTC
It's working well with intel-uhci port, i use it with cd-borner and 3,5" HDD 
I tested other device with CardBus EHCI - it's working well with out eny extra  
power, only with EHCI port power.  For example: 
T:  Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  3 Spd=12  MxCh= 0  
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1  
P:  Vendor=07b4 ProdID=0211 Rev= 1.00  
S:  Manufacturer=OLYMPUS CORPORATION  
S:  Product=DIGITAL VOICE RECORDER  
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA  
I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage  
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms  
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms  
  
  
Comment 8 Oleksij Rempel (fishor) 2005-08-05 05:53:35 UTC
I don't see eny reeson why this device can't working with  CardBus EHCI. But 
maybe you have rite, it's jast broken device. 
 
T:  Bus=01 Lev=02 Prnt=06 Port=00 Cnt=01 Dev#=  7 Spd=1.5 MxCh= 0  
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1  
P:  Vendor=046d ProdID=c00e Rev=11.10  
S:  Manufacturer=Logitech  
S:  Product=USB-PS/2 Optical Mouse  
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr= 98mA  
I:  If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=02 Driver=usbhid  
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=10ms  
  
Comment 9 David Brownell 2005-08-05 07:04:29 UTC
Another thing to try:  "modprobe ohci-hcd".  Your /proc/bus/usb/devices 
doesn't list the two OHCI controllers it should list... I've no idea why 
Ubuntu didn't hotplug that for you. 
Comment 10 Oleksij Rempel (fishor) 2005-08-06 01:26:33 UTC
Created attachment 5523 [details]
usb_devices
Comment 11 Oleksij Rempel (fishor) 2005-08-06 01:33:30 UTC
Created attachment 5524 [details]
usb_devices
Comment 12 Oleksij Rempel (fishor) 2005-08-06 01:35:13 UTC
I'm sorry. After comment #4 i forgot to post new usb-device liste. Ubuntu    
hotplug working perfecly.  
Comment 13 Oleksij Rempel (fishor) 2005-08-08 05:23:15 UTC
I tested usb2ide adapter on some more computers and found that it's not workin 
on OHCI base controllers. Not exacly laptops, desktops too. 
Comment 14 Oleksij Rempel (fishor) 2005-08-08 05:25:43 UTC
Created attachment 5547 [details]
usb_devices

Here is working example with EHCI+UHCI Controller
Comment 15 Oleksij Rempel (fishor) 2005-08-08 05:29:46 UTC
I didn't found OHCI only controller to test it. 
Comment 16 Greg Kroah-Hartman 2005-08-18 13:54:18 UTC
So, 2.6.13-rc6 or later now works properly for you?
Comment 17 Oleksij Rempel (fishor) 2005-08-18 15:51:59 UTC
Not. with kernel 2.6.13-rc6 it didn't worked and i didn't so any changes in a
git tree bis now wich mus to fix it.
Thank you!
Comment 18 Greg Kroah-Hartman 2005-08-18 21:50:47 UTC
I'm sorry, I don't understand your last response.

Does 2.6.13-rc6 work properly or does it cause the same error as before?
Comment 19 Oleksij Rempel (fishor) 2005-08-19 00:54:40 UTC
Sorry :-) 
Kernel 2.6.13-rc6 cause the same error as before with all OHCI controllers.  
It work properly with UHCI controllers. 
Comment 20 Greg Kroah-Hartman 2005-08-19 09:32:22 UTC
Ok, I'm going to attribute this to just bad hardware, as David stated.

If you have any other information that might help fix this, please feel free
to reopen this bug, thanks.