LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   I have some problems with usb driver porting of mpc834x.. (https://www.linuxquestions.org/questions/linux-kernel-70/i-have-some-problems-with-usb-driver-porting-of-mpc834x-695524/)

uathebest 01-07-2009 03:19 AM

I have some problems with usb driver porting of mpc834x..
 
# Environments
kernel-2.4.23
MPC8347(MPH module) <--> USB3300(ULPI) <--> USB disk module
USB2.0, EHCI

question1) 'usb_control/bulk_msg: timeout'... what is it ? what is happened?
question2) 'usb.c: USB device not accepting new address=3 (error=-110)'
Do you know that error code list of standard? (ex. error=-110)
question3) What is MPH/DR module? These are Host mode?

check point 1) Currently D+/D- pattern is directly connected between USB3300 phy and the usb device.

# Booting log
...
...
SCSI subsystem driver Revision: 1.00
usb.c: [2369]usb_major_init, register character device (usb:180)
usb.c: registered new driver usbdevfs
hub.c: [965]usb_hub_init,register hub driver
usb.c: registered new driver hub
usb.c: new USB bus registered, assigned bus number 1
fsl-usb2-mph In file -host/ehci-dbg.c: In line -88ehci_start hcs_params 0x1210012 dbg=2 ind cc=0 pcc=0 ordered ports=2
fsl-usb2-mph In file -host/ehci-dbg.c: In line -137ehci_start hcc_params 0006 thresh 0 uframes 256/512/1024 park
fsl-usb2-mph In file -host/ehci-hcd.c: In line -223reset command 080b02 park=3 ithresh=8 period=1024 Reset HALT
fsl-usb2-mph In file -host/ehci-hcd.c: In line -515init command 010b09 park=3 ithresh=1 period=256 RUN
fsl-usb2-mph In file -host/ehci-hcd.c: In line -552USB 0.0 enabled, EHCI 1.00, driver $Revision: 1.1.2.1 $
Manufacturer: Linux 2.4.23 <NULL>
SerialNumber: ehci_hcd
hub.c: USB hub found
hub.c: 2 ports detected
hub.c: [187]usb_hub_configure,standalone hub
hub.c: [194]usb_hub_configure,individual port power switching
hub.c: [207]usb_hub_configure,individual port over-current protection
hub.c: [219]usb_hub_configure,Single TT
hub.c: [236]usb_hub_configure,TT requires at most 8 FS bit times
hub.c: [250]usb_hub_configure,Port indicators are supported
hub.c: [252]usb_hub_configure,power on to power good time: 20ms
hub.c: [253]usb_hub_configure,hub controller current requirement: 0mA
hub.c: [259]usb_hub_configure,port removable status: RR
hub.c: [278]usb_hub_configure,local power source is good
hub.c: [281]usb_hub_configure,no over-current condition exists
hub.c: [147]usb_hub_power_on,enabling power on all ports
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
...
...

# Log messages when inserted of the usb disk module.
hub.c: [796]usb_hub_events,
hub.c: [835]usb_hub_events,hub->descriptor->bNbrPorts = 2
hub.c: [529]usb_hub_port_status,port 1, portstatus 100, change 0, 12 Mb/s
fsl-usb2-mph In file -host/ehci-hub.c: In line -288GetStatus port 2 status 80001803 POWER sig=j CSC CONNECT
hub.c: [529]usb_hub_port_status,port 2, portstatus 501, change 1, 480 Mb/s
hub.c: [684]usb_hub_port_connect_change,port 2, portstatus 501, change 1, 480 Mb/s
hub.c: [529]usb_hub_port_status,port 2, portstatus 501, change 0, 480 Mb/s
hub.c: [529]usb_hub_port_status,port 2, portstatus 501, change 0, 480 Mb/s
hub.c: [529]usb_hub_port_status,port 2, portstatus 501, change 0, 480 Mb/s
hub.c: [529]usb_hub_port_status,port 2, portstatus 501, change 0, 480 Mb/s
hub.c: [708]usb_hub_port_connect_change,
hub.c: [598]usb_hub_port_reset,
hub.c: [529]usb_hub_port_status,port 2, portstatus 511, change 0, 480 Mb/s
hub.c: [586]usb_hub_port_wait_reset,port 2 of hub 1 not reset yet, waiting 10ms
hub.c: [529]usb_hub_port_status,port 2, portstatus 511, change 0, 480 Mb/s
hub.c: [586]usb_hub_port_wait_reset,port 2 of hub 1 not reset yet, waiting 10ms
hub.c: [529]usb_hub_port_status,port 2, portstatus 503, change 0, 480 Mb/s
hub.c: new USB device ehci_hcd-2, assigned address 2
usb.c: [2240]usb_new_device,
usb_control/bulk_msg: timeout
hcd.c: [1550]usb_hcd_giveback_urb,giveback urb db118de0 status -2 len 0
usb.c: USB device not accepting new address=2 (error=-110)
fsl-usb2-mph In file -host/ehci-hcd.c: In line -975free_config 2 devnum -1
hub.c: [598]usb_hub_port_reset,
usb.c: [1205]usb_control_msg,
usb.c: [1162]usb_internal_control_msg,
usb.c: [1205]usb_control_msg,
usb.c: [1162]usb_internal_control_msg,
hub.c: [529]usb_hub_port_status,port 2, portstatus 503, change 0, 480 Mb/s
usb.c: [1205]usb_control_msg,
usb.c: [1162]usb_internal_control_msg,
usb.c: [1799]usb_connect,
hub.c: new USB device ehci_hcd-2, assigned address 3
usb_control/bulk_msg: timeout
hcd.c: [1550]usb_hcd_giveback_urb,giveback urb db118ce0 status -2 len 0
usb.c: USB device not accepting new address=3 (error=-110)
fsl-usb2-mph In file -host/ehci-hcd.c: In line -975free_config 2 devnum -1

# additional log messages:
# ./sh_usb
~~ ls -l /proc/bus/usb ~~
dr-xr-xr-x 1 admin admin 0 Jan 1 00:32 001
-r--r--r-- 1 admin admin 0 Jan 1 00:32 devices
-r--r--r-- 1 admin admin 0 Jan 1 00:32 drivers
~~ cat /proc/bus/usb/devices ~~
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 2
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.04
S: Manufacturer=Linux 2.4.23 <NULL>
S: SerialNumber=ehci_hcd
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=256ms
~~ cat /proc/bus/usb/drivers ~~
usbdevfs
hub
usb-storage

# cat /proc/devices
Character devices:
1 mem
2 pty
3 ttyp
4 ttyS
5 cua
10 misc
90 mtd
128 ptm
136 pts
162 raw
180 usb

Block devices:
1 ramdisk
7 loop
31 mtdblock

:confused: Please.. reply this thread..


All times are GMT -5. The time now is 04:01 PM.