Thank you for your reply, I use a boad similar to fads and try to make m8xxhci.c driver work ( i connect the CLK3 on PA5 and timer 1 exit on PA6). The driver detects correctly the device on the USB bus, but no data goes out on the usb data out pins of MPC885. Here is the trace i get :
........ 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=c0552f50,qtype=2) status -115 unlink_urb(urb=c0552f50) done usb.c: USB device not accepting new address=2 (error=-110) m8xxhci_free_dev(usb_dev=c049d600) m8xxhci_free_dev(dev=c049d600) done rh_port_reset(1) hub.c: new USB device m8xxhci-1, assigned address 3 usb_control/bulk_msg: timeout unlink_urb(urb=c0552f50,qtype=2) status -115 unlink_urb(urb=c0552f50) done usb.c: USB device not accepting new address=3 (error=-110) m8xxhci_free_dev(usb_dev=c049d600) m8xxhci_free_dev(dev=c049d600) done rh_port_enable(0) .............. may i ask you a few questions about m8xxhci.c driver : 0) is it correct to include hcd.o + hub.o + usb.o + usb-debug.o to make usbdrv.o in the kernel ? and is it correct to define USE_TIMER1_FOR_SOF and USE_PA5_CLK3_USBCLK ? 1)Is the behavior of the driver correct according to the trace above if no data goes out of MPC885 USB pins ? 2) is it correct to include your driver in the kernel ? (and not run it as an external module) ? 3) i try your driver with SOF generated by software : my device is seen, bd are filled with SOF and setup command, and i regularly go into prcess_done_tx_bds(), but no data goes out on the PPC usb tx data line -> what can prevent data to go out ? 4) i try your 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 ) 5) can your driver drive mass storage device (selected by CONFIG_USB_STORAGE kernel parameter) ? 6) 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 ----- Original Message ----- From: "IGOR LURI" <[EMAIL PROTECTED]> To: "trichec" <[EMAIL PROTECTED]>; "LINUX-USB-DEVEL (Correo electrónico)" <linux-usb-devel@lists.sourceforge.net> Sent: Friday, February 04, 2005 9:40 AM Subject: RE: USB host controller on MPC823 FADS board Hi, You have to configure Linux kernel with CONFIG_UCODE_PATCH. In the file arch/ppc/8xx_io/micropatch.c you can find this some patches, including USB SOF patch. #ifdef USE_USB_SOF_PATCH #define PATCH_DEFINED uint patch_2000[] = { 0x7fff0000, 0x7ffd0000, 0x7ffb0000, 0x49f7ba5b, 0xba383ffb, 0xf9b8b46d, 0xe5ab4e07, 0xaf77bffe, 0x3f7bbf79, 0xba5bba38, 0xe7676076, 0x60750000 }; uint patch_2f00[] = { 0x3030304c, 0xcab9e441, 0xa1aaf220 }; #endif Igor Luri Bravo Tecnico I+D Software Fagor Automation S. Coop. P. O. Box 144 E-20500 Mondragón-Arrasate Tel. ++34 943 71 92 00 - ++34 943 03 98 00 Fax. ++34 943 79 17 12 www.fagorautomation.com <http://www.fagorautomation.com> * Este mensaje y los documentos que, en su caso, lleve anexos, pueden contener información confidencial. Por ello, se informa a quien lo reciba por error que la información contenida en el mismo es reservada y su uso no autorizado está prohibido legalmente, por lo que en tal caso le rogamos que nos lo comunique por la misma vía , se abstenga de realizar copias del mensaje o remitirlo o entregarlo a otra persona y proceda a borrarlo de inmediato. * Mezu honek eta txertatuta eraman ditzakeen dokumentuek informazio konfidentziala izan dezakete. Hori dela eta, nahi gabe hartzen duenari jakinarazten zaio bertako informazioa erreserbatua dela eta baimenik gabe erabiltzea legez debekatuta dagoela; horregatik, bide beretik guri jakinarazteko eskatzen diogu, eta aldi berean mezuaren kopiarik ez egiteko, beste pertsona bati ez emateko eta berehala ezabatzeko erregutzen diogu." * This message together with any documents attached may contain confidential information. You are informed that if you should receive it by mistake, the information it contains is reserved and its use is not authorized. It is legally prohibited. If you have received this message by mistake, please let us know as soon as possible by e-mail. Do not make any copies of the message, nor send it or give it to anybody else. Please delete it right away. -----Mensaje original----- De: trichec [SMTP:[EMAIL PROTECTED] Enviado el: jueves, 03 de febrero de 2005 16:25 Para: [EMAIL PROTECTED]; [EMAIL PROTECTED] Asunto: USB host controller on MPC823 FADS board Hello, May I ask you a few questions as i have to develop a host usb V2.0 driver for PowerPC 885 ? I get m8xxhci-1.4 last package from http://www.heeltoe.com/usb/ppc <http://www.heeltoe.com/usb/ppc> , and get - m8xxhci.c + m9xxhci.h + diffs.ep_bsp 1) you say that a microcode patch has to be installed : it is contained in the ppc-usb.tar.gz file ? how do we install this patch ? (just copy all driver\arch\ppc\8xx_io\ files and define CONFIG_UCODE_PATCH 2) have you tried to enhance your file to use USB V2.0 on MPC885 ? (do we just have to change frequency on PC15 pin ?) Best regards <<Archivo: "AVG certification">> -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.5 - Release Date: 03/02/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.7.10/25 - Release Date: 21/06/2005 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel