Glad it helped. SPRUE32 has detail descriptions on the steps required
for programming EP0 transfer. The major bug is in function
musb_h_ep0_continue. The original code returns bMore=FALSE (if your data
fits in a single USB packet), just after it calls musb_write_fifo. This
tells function musb_h_ep0_irq that data transfer is finished, and it
should proceed to status phase. But musb_write_fifo only load the fifo,
it doesn't actually send the data through USB. You need to set
MGC_M_CSR0_TXPKTRDY bit in MGC_O_HDRC_CSR0 to signal the host device to
do the actual transfer. The patch fixed this order problem. Other minor
problems in function musb_h_ep0_irq, instead of relying on usb_pipeout
to tell the direction, use bEnd0Stage, because ep0 is bidirectional.

Actually, I submitted the patch to TI support long time ago. But
apparently it didn't get to their development team. I think TI is a bit
rush about releasing davinci. It's giving me headaches all the time...


-----Original Message-----
From: Ramachandran M [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 02, 2007 4:36 PM
To: #ZHENG LEI#
Subject: RE: USB Wifi issue

thanks a lot...

i was also working with wifi only....i got the same error...I posted so
many
times..I didnt get the reply..

Because of you only,i have completed this issue..

your patch is working fine..

did you created the patch yourself?...Can you explain me about the
patch...

thanks

Ram

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf
Of #ZHENG LEI#
Sent: Friday, February 02, 2007 11:19 AM
To: Amol D Pise; [email protected]
Subject: RE: USB Wifi issue


I had the USB problem several months ago. The davinci USB host driver
has a lot of problems. I didn't quite follow this Wifi issue thread, but
I think you are having the same problem as mine. The host driver has a
bug causing EP0 USB OUT transfer to timeout. So, any device uploading
firmware or any other data through EP0 will not work at all. The
attachment is the patch for that problem. Maybe you can give it a try.
Please note that there is a recent montavista patch 1015 about USB
drivers. My patch is pre-1015, because I have other modifications that
conflict with 1015.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Amol D Pise
Sent: Friday, February 02, 2007 12:36 PM
To: [email protected]
Subject: USB Wifi issue

hi all,
  Is anybody successfully used USB wifi dongle on TI-Davinci EVM board ?
As this issue already raised by most of the peoples on mailing list, but
nobody succesfull.
Is this means Ti-Davinci board not support it or what ?
Plz help us....

Thank you,

amol

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to