<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1458" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>
<P><FONT face=Arial>Hello,<BR><BR>I get m8xxhci.c last release form Brad 
Parker's page<BR><A href="http://www.heeltoe.com/usb/ppc" 
target=_top>http://www.heeltoe.com/usb/ppc</A> &lt;<A 
href="http://www.heeltoe.com/usb/ppc" 
target=_top>http://www.heeltoe.com/usb/ppc</A>&gt;&nbsp; and I 
have<BR>modificated to use on the MPC823 FADS board. This drivers has also 
Roman<BR>Weissgaerber changes.<BR><BR>I have done the following 
modifications:<BR><BR>1.- At the begin of the file:<BR><BR>#ifdef CONFIG_MYBOARD 
<BR>#define 
USE_PA5_CLK3_USBCLK&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
/* 48mhz clock via clk3 */<BR>#define 
USE_TIMER1_FOR_SOF<BR>#endif<BR></FONT></P>
<P><FONT face=Arial>2.-I have loaded the microcode patch.<BR><BR>3.-I put 
TIMER&nbsp;1 output (PA6) in the DRQ0 input and connect it&nbsp;to 
PC15<BR><BR>After booting Linux I have the following mesages:</FONT></P><FONT 
face=Arial></FONT></FONT></DIV>
<DIV><FONT size=2><FONT face=Arial><FONT face="Times New Roman" 
size=3><STRONG>........<BR>m8xxhci: initializing 
controller<BR>m8xxhci_setup()<BR>usb.c: new USB bus registered, assigned bus 
number 1<BR>m8xxhci_start_controller()<BR>m8xxhci: USING CLK2 for USB 
clock!<BR>m8xxhci: ring sizes: rx 60, tx 10<BR>size 0x18 index 0xa00<BR>size 
0x1e0 index 0xa38<BR>size 0x50 index 0xc20<BR>PQUCODE: USB SOF patch 
installed<BR>m8xxhci: enable USB controller<BR>m8xxhci_timer_setup()<BR>m8xxhci: 
timer bytes/count 0.25<BR>m8xxhci: USING TIMER1 FOR SOF!<BR>m8xxhci: timer1 
started<BR>m8xxhci: usb bus is NOT idle<BR>Product: USB MPC8xx Root 
Hub<BR>SerialNumber: ff000a00<BR>hub.c: USB hub found<BR>hub.c: 1 port 
detected<BR>rh_submit_urb() int pipe<BR>rh_port_power(1)<BR>m8xxhci: 
initializing done<BR></STRONG><BR>and when i connect a device 
............<BR><BR>&nbsp;<STRONG>idle_bus() 1; d+ zero, d- one, connect 
lo-sp<BR>rh_port_reset(1)<BR>hub.c: new USB device m8xxhci-1, assigned address 
2<BR>usb_control/bulk_msg: timeout<BR>unlink_urb(urb=c0552f50,qtype=2) status 
-115<BR>unlink_urb(urb=c0552f50) done<BR>usb.c: USB device not accepting new 
address=2 
(error=-110)<BR>m8xxhci_free_dev(usb_dev=c049d600)<BR>m8xxhci_free_dev(dev=c049d600) 
done<BR>rh_port_reset(1)<BR>hub.c: new USB device m8xxhci-1, assigned address 
3<BR>usb_control/bulk_msg: timeout<BR>unlink_urb(urb=c0552f50,qtype=2) status 
-115<BR>unlink_urb(urb=c0552f50) done<BR>usb.c: USB device not accepting new 
address=3 
(error=-110)<BR>m8xxhci_free_dev(usb_dev=c049d600)<BR>m8xxhci_free_dev(dev=c049d600) 
done<BR>rh_port_enable(0)<BR>..............<BR></STRONG><BR><BR>may i ask you a 
few questions about m8xxhci.c driver :<BR></FONT></FONT></FONT></DIV>
<DIV><FONT size=2><FONT face=Arial><FONT face="Times New Roman" size=3>1) what 
do the define POLL_FOR_HUB&nbsp;&nbsp;&nbsp;stands for and&nbsp;should i use it 
?</FONT></FONT></FONT></DIV><FONT size=2><FONT face=Arial><FONT 
face="Times New Roman" size=3>
<DIV><BR>2) is it correct to include hcd.o + hub.o +&nbsp; usb.o + usb-debug.o 
to make<BR>usbdrv.o in the kernel ? </DIV><FONT face=Arial size=2></FONT>
<DIV><BR>3)Is the behavior of the driver correct according to the trace above if 
no<BR>data goes out of MPC885 USB pins ? What can prevent data to go out 
?<BR><BR>4) is it correct to include your driver in the kernel ? (and not run it 
as<BR>an external module) ?<BR><BR>5) i try this driver with SOF generated by 
micro-patch :<BR>-&gt; should this SOF automaticaly sent on the PPC usb tx data 
line as soon as<BR>a device is connected ?<BR>-&gt; when you plug a usb device 
(keyboard) what is the first thing the driver<BR>must do ? send a setup command 
? (I try to see when you write this command<BR>in a BD but i can't find it 
)<BR><BR>6) can this driver drive mass storage device (selected by 
CONFIG_USB_STORAGE<BR>kernel parameter) ?<BR><BR><BR>76) when we use USB_UPATCH 
how do behave the CPM ? does it generate SOF<BR>continuously ? how do we tell 
the CPM to start or stop the SOF transmission<BR>?</DIV>
<DIV><BR>Thank you very much for any reply<BR>Best regards</FONT><BR><BR></DIV>
<P><BR><BR>&nbsp;</P></FONT></FONT></BODY></HTML>