From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay3.clb.oleane.net (relay3.clb.oleane.net [213.56.31.23]) by ozlabs.org (Postfix) with ESMTP id E6DEB67B32 for ; Thu, 23 Jun 2005 17:40:31 +1000 (EST) Message-ID: <005001c577c4$9d394a40$ebd5a8c0@PCCT> From: "trichec" To: Date: Thu, 23 Jun 2005 09:24:38 +0200 Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=======AVGMAIL-42BA63B64BE0=======" Cc: DAVID Claudette Subject: USB on MPC885 FADS board List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --=======AVGMAIL-42BA63B64BE0======= Content-Type: multipart/alternative; boundary="----=_NextPart_000_004D_01C577D5.609712A0" ------=_NextPart_000_004D_01C577D5.609712A0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hello, I get m8xxhci.c last release form Brad Parker's page http://www.heeltoe.com/usb/ppc and I = have modificated to use on the MPC823 FADS board. This drivers has also Roman Weissgaerber changes. I have done the following modifications: 1.- At the begin of the file: #ifdef CONFIG_MYBOARD=20 #define USE_PA5_CLK3_USBCLK /* 48mhz clock via clk3 */ #define USE_TIMER1_FOR_SOF #endif 2.-I have loaded the microcode patch. 3.-I put TIMER 1 output (PA6) in the DRQ0 input and connect it to PC15 After booting Linux I have the following mesages: ........ m8xxhci: initializing controller m8xxhci_setup() usb.c: new USB bus registered, assigned bus number 1 m8xxhci_start_controller() m8xxhci: USING CLK2 for USB clock! m8xxhci: ring sizes: rx 60, tx 10 size 0x18 index 0xa00 size 0x1e0 index 0xa38 size 0x50 index 0xc20 PQUCODE: USB SOF patch installed m8xxhci: enable USB controller m8xxhci_timer_setup() m8xxhci: timer bytes/count 0.25 m8xxhci: USING TIMER1 FOR SOF! m8xxhci: timer1 started m8xxhci: usb bus is NOT idle Product: USB MPC8xx Root Hub SerialNumber: ff000a00 hub.c: USB hub found hub.c: 1 port detected rh_submit_urb() int pipe rh_port_power(1) m8xxhci: initializing done and when i connect a device ............ idle_bus() 1; d+ zero, d- one, connect lo-sp rh_port_reset(1) hub.c: new USB device m8xxhci-1, assigned address 2 usb_control/bulk_msg: timeout unlink_urb(urb=3Dc0552f50,qtype=3D2) status -115 unlink_urb(urb=3Dc0552f50) done usb.c: USB device not accepting new address=3D2 (error=3D-110) m8xxhci_free_dev(usb_dev=3Dc049d600) m8xxhci_free_dev(dev=3Dc049d600) done rh_port_reset(1) hub.c: new USB device m8xxhci-1, assigned address 3 usb_control/bulk_msg: timeout unlink_urb(urb=3Dc0552f50,qtype=3D2) status -115 unlink_urb(urb=3Dc0552f50) done usb.c: USB device not accepting new address=3D3 (error=3D-110) m8xxhci_free_dev(usb_dev=3Dc049d600) m8xxhci_free_dev(dev=3Dc049d600) done rh_port_enable(0) .............. may i ask you a few questions about m8xxhci.c driver : 1) what do the define POLL_FOR_HUB stands for and should i use it ? 2) is it correct to include hcd.o + hub.o + usb.o + usb-debug.o to make usbdrv.o in the kernel ?=20 3)Is the behavior of the driver correct according to the trace above if = no data goes out of MPC885 USB pins ? What can prevent data to go out ? 4) is it correct to include your driver in the kernel ? (and not run it = as an external module) ? 5) i try this driver with SOF generated by micro-patch : -> should this SOF automaticaly sent on the PPC usb tx data line as soon = as a device is connected ? -> when you plug a usb device (keyboard) what is the first thing the = driver must do ? send a setup command ? (I try to see when you write this = command in a BD but i can't find it ) 6) can this driver drive mass storage device (selected by = CONFIG_USB_STORAGE kernel parameter) ? 76) when we use USB_UPATCH how do behave the CPM ? does it generate SOF continuously ? how do we tell the CPM to start or stop the SOF = transmission ? Thank you very much for any reply Best regards ------=_NextPart_000_004D_01C577D5.609712A0 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
 

Hello,

I get m8xxhci.c last release form = Brad=20 Parker's page
http://www.heeltoe.com/usb/ppc <http://www.heeltoe.com/usb/ppc>  and I=20 have
modificated to use on the MPC823 FADS board. This drivers has = also=20 Roman
Weissgaerber changes.

I have done the following=20 modifications:

1.- At the begin of the file:

#ifdef = CONFIG_MYBOARD=20
#define=20 USE_PA5_CLK3_USBCLK         =      =20 /* 48mhz clock via clk3 */
#define=20 USE_TIMER1_FOR_SOF
#endif

2.-I have loaded the microcode patch.

3.-I = put=20 TIMER 1 output (PA6) in the DRQ0 input and connect it to=20 PC15

After booting Linux I have the following = mesages:

........
m8xxhci: initializing=20 controller
m8xxhci_setup()
usb.c: new USB bus registered, assigned = bus=20 number 1
m8xxhci_start_controller()
m8xxhci: USING CLK2 for USB=20 clock!
m8xxhci: ring sizes: rx 60, tx 10
size 0x18 index = 0xa00
size=20 0x1e0 index 0xa38
size 0x50 index 0xc20
PQUCODE: USB SOF patch=20 installed
m8xxhci: enable USB = controller
m8xxhci_timer_setup()
m8xxhci:=20 timer bytes/count 0.25
m8xxhci: USING TIMER1 FOR SOF!
m8xxhci: = timer1=20 started
m8xxhci: usb bus is NOT idle
Product: USB MPC8xx Root=20 Hub
SerialNumber: ff000a00
hub.c: USB hub found
hub.c: 1 port=20 detected
rh_submit_urb() int pipe
rh_port_power(1)
m8xxhci:=20 initializing done

and when i connect a device=20 ............

 idle_bus() 1; d+ zero, d- one, connect = lo-sp
rh_port_reset(1)
hub.c: new USB device m8xxhci-1, assigned = address=20 2
usb_control/bulk_msg: = timeout
unlink_urb(urb=3Dc0552f50,qtype=3D2) status=20 -115
unlink_urb(urb=3Dc0552f50) done
usb.c: USB device not = accepting new=20 address=3D2=20 (error=3D-110)
m8xxhci_free_dev(usb_dev=3Dc049d600)
m8xxhci_free_de= v(dev=3Dc049d600)=20 done
rh_port_reset(1)
hub.c: new USB device m8xxhci-1, assigned = address=20 3
usb_control/bulk_msg: = timeout
unlink_urb(urb=3Dc0552f50,qtype=3D2) status=20 -115
unlink_urb(urb=3Dc0552f50) done
usb.c: USB device not = accepting new=20 address=3D3=20 (error=3D-110)
m8xxhci_free_dev(usb_dev=3Dc049d600)
m8xxhci_free_de= v(dev=3Dc049d600)=20 done
rh_port_enable(0)
..............


may i = ask you a=20 few questions about m8xxhci.c driver :
1) what=20 do the define POLL_FOR_HUB   stands for and should i = use it=20 ?

2) is it correct to include hcd.o + hub.o +  usb.o + = usb-debug.o=20 to make
usbdrv.o in the kernel ?

3)Is the behavior of the driver correct according to the trace = above if=20 no
data goes out of MPC885 USB pins ? What can prevent data to go out = ?

4) is it correct to include your driver in the kernel ? (and = not run it=20 as
an external module) ?

5) i try this driver with SOF = generated by=20 micro-patch :
-> should this SOF automaticaly sent on the PPC usb = tx data=20 line as soon as
a device is connected ?
-> when you plug a usb = device=20 (keyboard) what is the first thing the driver
must do ? send a setup = command=20 ? (I try to see when you write this command
in a BD but i can't find = it=20 )

6) can this driver drive mass storage device (selected by=20 CONFIG_USB_STORAGE
kernel parameter) ?


76) when we use = USB_UPATCH=20 how do behave the CPM ? does it generate SOF
continuously ? how do we = tell=20 the CPM to start or stop the SOF transmission
?

Thank you very much for any reply
Best = regards




 

------=_NextPart_000_004D_01C577D5.609712A0-- --=======AVGMAIL-42BA63B64BE0======= Content-Type: text/plain; x-avg=cert; charset=us-ascii Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Content-Description: "AVG certification" No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.7.11/26 - Release Date: 22/06/2005 --=======AVGMAIL-42BA63B64BE0=======--