Frank - I do not think our problems are the same. I was configuring the board as a USB client, and I didn't see any indications of failure other than that the data wasn't being transferred to the PC. I traced through the driver code to find that the data was being sent to the controller, but the controller wasn't sending it.
My problem turned out to be that the driver was running in high-speed mode, but I had turned the clock on the EVM way down for a simulation I was doing, and I believe there was a timing issue. When I forced the driver into full-speed mode, my problems went away. So I don't know that I can help you much... Good luck, Brian -----Original Message----- From: frank xue [mailto:[EMAIL PROTECTED] Sent: Monday, April 28, 2008 7:44 AM To: davinci-linux-open-source Cc: Brian Niebuhr; Michael Gao Subject: Re: USB peripheral controller driver issue Brian, I have encountered the same problem. I'm running 2.6.23-davinci kernel and trying to config EVM as a USB host. I can read/write data to EVM board. But when i copied a large size file, some errors will appeared. I turned on the kernel debug and usb verbose debug, some error messages like this: I don't know why command_abort called? and why it complained *Device offlined *? I wonder if you have solved this problem? <7>usb-storage: Bulk data transfer result 0x0 <7>usb-storage: Attempting to get CSW... <7>usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes <7>musb_ep_program 651: <-- hw1 urb cf139520 spd3 dev2 ep1in h_addr00 h_port00 bytes 13 <7>usb-storage: command_abort called <7>usb-storage: usb_stor_stop_transport called <7>usb-storage: -- cancelling URB <7>cppi_dump_rx 374: RX DMA0/abort: 3 left, csr 2020, 00000000 H8f192180 S8f192680 C8f192680, B8fe1500d L000d0000 0000000d .. 8f192680 <7>RXBD/last 8f192680: nxt 8f192180 buf 8fe15000 off.blen 0000000d opt.plen d000000d <7>RXBD/active 8f192180: nxt 00000000 buf 8fe15000 off.blen 0000000d opt.plen e000000d <7>musb_cleanup_urb 1918: abort RX1 DMA for urb cf139520 --> 0 <7>__musb_giveback 304: complete cf139520 (-104), dev2 ep1in, 0/13 <7>usb-storage: Status code -104; transferred 0/13 <7>usb-storage: -- transfer cancelled <7>usb-storage: Bulk status result = 4 <7>usb-storage: -- command was aborted <7>usb-storage: storage_pre_reset <7>musb_hub_control 344: port status 00120503 <7>hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002 <6>usb 1-1: reset high speed USB device using musb_hdrc and address 2 usb 1-1: reset high speed USB device using musb_hdrc and address 2 <7>musb_ep_program 651: --> hw0 urb cf1395a0 spd3 dev0 ep0out h_addr00 h_port00 bytes 8 <7>musb_hub_control 344: port status 00120503 <7>hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002 <7>musb_ep_program 651: --> hw0 urb cf1395a0 spd3 dev0 ep0out h_addr00 h_port00 bytes 8 <7>musb_ep_program 651: --> hw0 urb cf1395a0 spd3 dev2 ep0out h_addr00 h_port00 bytes 8 <7>musb_ep_program 651: --> hw0 urb cf1395a0 spd3 dev2 ep0out h_addr00 h_port00 bytes 8 <7>musb_ep_program 651: --> hw0 urb cf1395a0 spd3 dev2 ep0out h_addr00 h_port00 bytes 8 <7>musb_ep_program 651: --> hw0 urb cf1395a0 spd3 dev2 ep0out h_addr00 h_port00 bytes 8 <7>usb_endpoint usbdev1.2_ep81: ep_device_release called for usbdev1.2_ep81 <7>usb_endpoint usbdev1.2_ep02: ep_device_release called for usbdev1.2_ep02 <7>usb-storage: storage_post_reset <7>usb-storage: usb_reset_composite_device returns 0 <7>usb-storage: scsi command aborted <7>usb-storage: *** thread sleeping. <6>sd 0:0:0:0: scsi: Device offlined - not ready after error recovery sd 0:0:0:0: scsi: Device offlined - not ready after error recovery <6>sd 0:0:0:0: [sda] sd 0:0:0:0: [sda] Result: hostbyte=0x05 driverbyte=0x00 Result: hostbyte=0x05 driverbyte=0x00 end_request: I/O error, dev sda, sector 243311 end_request: I/O error, dev sda, sector 243311 <3>sd 0:0:0:0: rejecting I/O to offline device sd 0:0:0:0: rejecting I/O to offline device <3>sd 0:0:0:0: rejecting I/O to offline device sd 0:0:0:0: rejecting I/O to offline device <3>sd 0:0:0:0: rejecting I/O to offline device sd 0:0:0:0: rejecting I/O to offline device <3>sd 0:0:0:0: rejecting I/O to offline device sd 0:0:0:0: rejecting I/O to offline device <3>sd 0:0:0:0: rejecting I/O to offline device _______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
