All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [PATCH v1] T1024RDB: USB: Add a 10808 us delay in usb_scan_port
Date: Mon, 16 Dec 2019 09:33:05 +0100	[thread overview]
Message-ID: <d8ea5c36-fec2-1375-5156-8bc7665e07d5@denx.de> (raw)
In-Reply-To: <CAEUhbmUoghvL_ub8dGqA6pucadpiHLaxJ6ghhQ_4YRmnxrtuTQ@mail.gmail.com>

On 12/16/19 4:17 AM, Bin Meng wrote:
> +Marek,
> 
> On Mon, Dec 16, 2019 at 11:13 AM Yinbo Zhu <yinbo.zhu@nxp.com> wrote:
>>
>> T1024RDB usb controller doesn't detect usb device at first usb start
>> Add a delay that is greater than 10808 us can fix that issue, which
>> delay if is less than 10808 us, issue is probabilistic occurrence
>>
>> => usb start
>> starting USB...
>> USB0:   USB EHCI 1.00
>> USB1:   USB EHCI 1.00
>> scanning bus 0 for devices... 1 USB Device(s) found
>> scanning bus 1 for devices... 1 USB Device(s) found
>>        scanning usb for storage devices... 0 Storage Device(s) found
>> => usb stop
>> stopping USB..
>> => usb start
>> starting USB...
>> USB0:   USB EHCI 1.00
>> USB1:   USB EHCI 1.00
>> scanning bus 0 for devices... 2 USB Device(s) found
>> scanning bus 1 for devices... 1 USB Device(s) found
>>        scanning usb for storage devices... 1 Storage Device(s) found
>> =>
>>
>> Signed-off-by: Yinbo Zhu <yinbo.zhu@nxp.com>
>> ---
>>  common/usb_hub.c | 3 +++
>>  1 file changed, 3 insertions(+)
>>
>> diff --git a/common/usb_hub.c b/common/usb_hub.c
>> index 33aaeb8e44..6dd06696b2 100644
>> --- a/common/usb_hub.c
>> +++ b/common/usb_hub.c
>> @@ -486,6 +486,9 @@ static int usb_scan_port(struct usb_device_scan *usb_scan)
>>                 return 0;
>>         }
>>
>> +#ifdef CONFIG_TARGET_T1024RDB
>> +       udelay(10808);
>> +#endif
> 
> This looks like a workaround. Is this a silicon errata?

Does setting usb_pgood_delay to e.g. 2000 help ?

  reply	other threads:[~2019-12-16  8:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-16  3:12 [PATCH v1] T1024RDB: USB: Add a 10808 us delay in usb_scan_port Yinbo Zhu
2019-12-16  3:17 ` Bin Meng
2019-12-16  8:33   ` Marek Vasut [this message]
2019-12-18  3:27     ` [EXT] " Yinbo Zhu
2019-12-18  4:50       ` Marek Vasut

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=d8ea5c36-fec2-1375-5156-8bc7665e07d5@denx.de \
    --to=marex@denx.de \
    --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.