Skip to contentSkip to conversation

m82xxhci USB driver problems

DISCUSSION Alex Zeffertt 2 participants 3 messages Oct 24, 2005 – Oct 25, 2005

lore
Share & tools
lore
#0 lore raw

Hi list,

I'm trying to get the m82xxhci USB host controller driver working on my MPC8272ADS board, and linux-2.4.25.

I can compile and modprobe the module. When I insert a USB pen drive I get the following message:

# hub.c: new USB device m8xxhci-1, assigned address 4 Manufacturer:
Product: USB Disk Pro
SerialNumber: 07531E630012
scsi0 : SCSI emulation for USB Mass Storage devices

Which looks okay. But after a long delay I get:

# usb_control/bulk_msg: timeout

Then after another delay:

	# usb-storage: host_reset() requested but not implemented
	#

Then after another delay:

# scsi: device set offline - command error recover failed: host 0 channel 0 id 0 lun 0

After this final message, but not before, the pen drive device appears in /proc/bus/usb/devices:

	# cat /proc/bus/usb/devices
	T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 1
	B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
	D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
	P:  Vendor=0000 ProdID=0000 Rev= 0.00
	S:  Product=USB MPC8xx Root Hub
	S:  SerialNumber=f0011b60	
	C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
	I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
	E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms
	T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
	D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
	P:  Vendor=0d7d ProdID=0120 Rev= 1.00
	S:  Manufacturer=
	S:  Product=USB Disk Pro
	S:  SerialNumber=07531E630012
	C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
	I:  If#= 0 Alt= 0 #EPs= 3 Cls=08(stor.) Sub=04 Prot=00
	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
	E:  Ad=83(I) Atr=03(Int.) MxPS=   2 Ivl=1ms

Does anybody have any idea what could be causing this problem? The HCI is clearly able to communicate with the device because it identifies it. But I don't know why the timeout should occur!

Alex

PS A possibly related problem: I have built sd_mod.o as a module, and I can modprobe sd_mod okay. However, after I have run modprobe I still do not see an "sd" block device in /proc/devices. I have no idea why though....

#1 lore raw

Maybe there's something with SOF generation - check if RCCR[EIE] is set. Just a pure guess...

Quoted 74 lines · Alex Zeffertt

Hi list,

I'm trying to get the m82xxhci USB host controller driver working on my MPC8272ADS board, and linux-2.4.25.

I can compile and modprobe the module. When I insert a USB pen drive I get the following message:

# hub.c: new USB device m8xxhci-1, assigned address 4 Manufacturer:
Product: USB Disk Pro
SerialNumber: 07531E630012
scsi0 : SCSI emulation for USB Mass Storage devices

Which looks okay. But after a long delay I get:

# usb_control/bulk_msg: timeout

Then after another delay:

	# usb-storage: host_reset() requested but not implemented
	#

Then after another delay:

# scsi: device set offline - command error recover failed: host 0 channel 0 id 0 lun 0

After this final message, but not before, the pen drive device appears in /proc/bus/usb/devices:

	# cat /proc/bus/usb/devices
	T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 1
	B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
	D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
	P:  Vendor=0000 ProdID=0000 Rev= 0.00
	S:  Product=USB MPC8xx Root Hub
	S:  SerialNumber=f0011b60	
	C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
	I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
	E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms
	T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
	D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
	P:  Vendor=0d7d ProdID=0120 Rev= 1.00
	S:  Manufacturer=
	S:  Product=USB Disk Pro
	S:  SerialNumber=07531E630012
	C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
	I:  If#= 0 Alt= 0 #EPs= 3 Cls=08(stor.) Sub=04 Prot=00
	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
	E:  Ad=83(I) Atr=03(Int.) MxPS=   2 Ivl=1ms

Does anybody have any idea what could be causing this problem? The HCI is clearly able to communicate with the device because it identifies it. But I don't know why the timeout should occur!

Alex

PS A possibly related problem: I have built sd_mod.o as a module, and I can modprobe sd_mod okay. However, after I have run modprobe I still do not see an "sd" block device in /proc/devices. I have no idea why though....
_______________________________________________
Linuxppc-embedded mailing list [email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

Signature · 2 lines
Sincerely,
Vitaly
#2 lore raw
Quoted 2 lines · On Mon, 24 Oct 2005 20:15:08 +0400 Vitaly Bordug <[email protected]> wrote:

Maybe there's something with SOF generation - check if RCCR[EIE] is set. Just a pure guess...

No, it is set.