From: Daniel Hellstrom <daniel@gaisler.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [patch 1/2 V2] fix USB initialisation procedure
Date: Mon, 01 Feb 2010 11:09:16 +0100 [thread overview]
Message-ID: <4B66A84C.8060703@gaisler.com> (raw)
In-Reply-To: <3efb10971001290657k63df9ee7w2e1653e1d3814785@mail.gmail.com>
Hi,
Remy Bohmer wrote:
>Hi,
>
>2010/1/29 Daniel Hellstrom <daniel@gaisler.com>:
>
>
>>Hello,
>>
>>Please see my comment on commit 48867208444cb2a82e2af9c3249e90b7ed4a1751
>>below.
>>
>>
>>Remy Bohmer wrote:
>>
>>
>>
>>>The max packet size is encoded as 0,1,2,3 for 8,16,32,64 bytes.
>>>At some places directly 8,16,32,64 was used instead of the encoded
>>>value. Made a enum for the options to make this more clear and to help
>>>preventing similar errors in the future.
>>>
>>>After fixing this bug it became clear that another bug existed where
>>>the 'pipe' is and-ed with PIPE_* flags, where it should have been
>>>'usb_pipetype(pipe)', or even better usb_pipeint(pipe).
>>>
>>>Also removed the triple 'get_device_descriptor' sequence, it has no use,
>>>and Windows nor Linux behaves that way.
>>>
>>>
>>>
>>>There is also a poll going on with a timeout when usb_control_msg() fails.
>>>However, the poll is useless, because the flag will never be set on a
>>>error,
>>>because there is no code that runs in a parallel that can set this flag.
>>>Changed this to something more logical.
>>>
>>>
>>>
>>The USB-driver ISR may set dev->status, I believe that is why the code is
>>waiting for for a couple of ms. This patch makes the LEON3 UHCI support fail
>>in usb_control_msg(), changing back to the old code the LEON3 UHCI driver
>>(cpu/leon3/usb_uhci.c) works again.
>>
>>I believe this is also the case for board/MAI/AmigaOneG3SE/usb_uhci.c and
>>board/mpl/common/usb_uhci.c, they are also modifying the flag from the
>>interrupt handler.
>>
>>
>
>Could you make a patch?
>
>
>
I supplied a patch on the list, it is also available in the git sparc
repository in the usb branch.
http://git.denx.de/?p=u-boot/u-boot-sparc.git;a=shortlog;h=refs/heads/usb
Thanks,
Daniel
next prev parent reply other threads:[~2010-02-01 10:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-10 8:23 [U-Boot] [patch 0/2] Some more USB-OHCI bugfixes [V2] Remy Bohmer
2008-10-10 8:23 ` [U-Boot] [patch 1/2 V2] fix USB initialisation procedure Remy Bohmer
2010-01-29 8:29 ` Daniel Hellstrom
2010-01-29 14:57 ` Remy Bohmer
2010-02-01 10:09 ` Daniel Hellstrom [this message]
2008-10-10 8:23 ` [U-Boot] [patch 2/2] The PIPE_INTERRUPT flag is used wrong Remy Bohmer
2008-10-14 15:13 ` [U-Boot] [patch 0/2] Some more USB-OHCI bugfixes [V2] Markus Klotzbücher
2008-10-28 23:07 ` Wolfgang Denk
2008-10-29 8:49 ` Markus Klotzbücher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B66A84C.8060703@gaisler.com \
--to=daniel@gaisler.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.