[MPC8349ITX] USB Init with PPC arch

Benjamin Zores benjamin.zores at alcatel-lucent.fr
Tue Jan 23 04:10:27 EST 2007


Hi,

This question is mainly intended to Freescale's MPC8349ITX board maintainer
but the issue/resolution is probably the same for other boards.

I'm trying to boot the MPC8349ITX card with Linux 2.6.19 using old PPC
architecture (and not the new PowerPC one).
I've ported patches from Freescale's BSP from 2.6.13 to 2.6.19 and
it works pretty well but USB doesn't init properly.

Switching to PowerPC arch of course works fine and USB is well inited
but due to other feature i use that only exist on PPC right now, I can't
make use of it.

So I've added the attached patched to my PPC kernel in order to initialize
the USB controller the same way it is done in DTS file for PowerPC arch.
The goal is of course to use the regular EHCI-FSL driver.

I've noticed that PowerPC arch starts by initing the DR controller than MPH one.
On PPC it's the opposite way. Although I have to not initialize the DR one, which
seems to completely hang the card at USB controller probe.

Initializing the MPH controller seems to work fine but then
USB stack has a lot of errors which seem to come from bad EHCI-FSL init.
(see below)

fsl-ehci fsl-ehci.1: No platform data for fsl-ehci.1.               
fsl-ehci fsl-ehci.2: Freescale On-Chip EHCI Host Controller               
fsl-ehci fsl-ehci.2: new USB bus registered, assigned bus number 1      
fsl-ehci fsl-ehci.2: irq 39, io base 0xe0022000                                
fsl-ehci fsl-ehci.2: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004     
usb usb1: Product: Freescale On-Chip EHCI Host Controller                
usb usb1: Manufacturer: Linux 2.6.19.2-fsl ehci_hcd                            
usb usb1: SerialNumber: fsl-ehci.2                                  
usb usb1: configuration #1 chosen from 1 choice                        
hub 1-0:1.0: USB hub found                                     
hub 1-0:1.0: 2 ports detected                                           
USB Universal Host Controller Interface driver v3.0           
Initializing USB Mass Storage driver...                                  
usb 1-1: new high speed USB device using fsl-ehci and address 2  
usb 1-1: device descriptor read/64, error -32                     
usb 1-1: device descriptor read/64, error -32            
usb 1-1: new high speed USB device using fsl-ehci and address 3  
usb 1-1: device descriptor read/64, error -32                 
usb 1-1: device descriptor read/64, error -32                  
usb 1-1: new high speed USB device using fsl-ehci and address 4     
usb 1-1: device not accepting address 4, error -32              
usb 1-1: new high speed USB device using fsl-ehci and address 5
usb 1-1: device not accepting address 5, error -32                   
usbcore: registered new interface driver usb-storage   
USB Mass Storage support registered.

Of course, the USB controller isn't working afterwards
and no USB device can be used.

Does anyone has an idea where the problem might come from and how to solve it
(once again, switching to PowerPC arch is ok but i don't want to).

Thx in advance,

Regards,

Ben

-------------- next part --------------
A non-text attachment was scrubbed...
Name: usb.patch
Type: application/octet-stream
Size: 2289 bytes
Desc: not available
Url : http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20070122/3d24e3d1/attachment.obj 


More information about the Linuxppc-embedded mailing list