01 Oct, 2017

3 commits


04 Jul, 2017

1 commit

  • There was for long time no activity in the 4xx area.
    We need to go further and convert to Kconfig, but it
    turned out, nobody is interested anymore in 4xx,
    so remove it.

    Signed-off-by: Heiko Schocher

    Heiko Schocher
     

24 Sep, 2016

1 commit


04 Jun, 2016

1 commit

  • Move CONFIG_USB_XHCI to defconfig files for all boards, renaming it
    into CONFIG_USB_XHCI_HCD.

    As commented in the help of "config USB_XHCI" entry, this has been
    a TODO for a long time; now CONFIG_USB_XHCI_HCD and CONFIG_USB_XHCI
    have been unified in favor of the former.

    Note:
    Some boards define CONFIG_USB_XHCI in their headers without
    CONFIG_USB, which does not meet the "depends on" in Kconfig.
    I added CONFIG_USB=y for those boards when converting.
    Otherwise, they would fail to build.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     

07 May, 2016

3 commits

  • The Kingston DT Ultimate USB 3.0 stick is sensitive to this first
    Get Descriptor request and if the request is not in a separate
    microframe, the stick refuses to operate. Add slight delay, which
    is enough for one microframe to pass on any USB spec revision.

    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Hans de Goede
    Cc: Stefan Roese
    Cc: Stephen Warren

    Marek Vasut
     
  • Some devices, like the SanDisk Cruzer Pop need some time to process
    the Set Configuration request, so wait a little until they are ready.

    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Hans de Goede
    Cc: Stefan Roese
    Cc: Stephen Warren

    Marek Vasut
     
  • The pointer should always be inited to NULL, not zero (0). These are
    two different things and not necessarily equal.

    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Hans de Goede
    Cc: Stefan Roese
    Cc: Stephen Warren

    Marek Vasut
     

23 Mar, 2016

1 commit


21 Mar, 2016

1 commit

  • Debugging has shown, that all USB hubs are being reset twice while
    USB scanning. This introduces additional delays and makes USB scanning
    even more slow. Testing has shown that this 2nd USB hub reset doesn't
    seem to be necessary.

    This patch now removes this 2nd USB hub reset. Resulting in faster USB
    scan time. Here the current numbers:

    Without this patch:
    => time usb start
    starting USB...
    USB0: USB EHCI 1.00
    scanning bus 0 for devices... 9 USB Device(s) found

    time: 24.003 seconds

    With this patch:
    => time usb start
    starting USB...
    USB0: USB EHCI 1.00
    scanning bus 0 for devices... 9 USB Device(s) found

    time: 20.392 seconds

    So ~3.6 seconds of USB scanning time reduction.

    Signed-off-by: Stefan Roese
    Cc: Simon Glass
    Acked-by: Hans de Goede
    Tested-by: Stephen Warren
    Cc: Marek Vasut

    Stefan Roese
     

16 Jan, 2016

1 commit

  • We support max USB_MAXENDPOINTS, so need to use
    "epno >= USB_MAXENDPOINTS", but not "epno > USB_MAXENDPOINTS".
    If use ">", we may exceeds the array of if_desc->ep_desc.

    Signed-off-by: Peng Fan
    Cc: Simon Glass
    Cc: Hans de Goede
    Cc: Marek Vasut
    Cc: Paul Kocialkowski
    Cc: "Stefan Brüns"
    Cc: Vincent Palatin

    Peng Fan
     

31 Dec, 2015

2 commits


12 Sep, 2015

1 commit


22 Jul, 2015

4 commits


29 May, 2015

1 commit


15 May, 2015

2 commits


06 May, 2015

1 commit


19 Apr, 2015

7 commits


14 Apr, 2015

5 commits


18 Jan, 2015

2 commits

  • This commit fixes a number of issues with the reset sequence of musb-new
    in host mode:

    1) Our usb device probe relies on a second device reset being done after the
    first descriptors read. Factor the musb reset code into a usb_reset_root_port
    function (and add this as an empty define for other controllers), and call
    this when a device has no parent.

    2) Just like with normal usb controllers there needs to be a delay after
    reset, for normal usb controllers, this is handled in hub_port_reset, add a
    delay to usb_reset_root_port.

    3) Sync the musb reset sequence with the upstream kernel, clear all bits of
    power except bits 4-7, and increase the time reset is asserted to 50 ms.

    With these fixes an usb keyboard I have now always enumerates properly, where
    as earlier it would only enumerare properly once every 5 tries.

    Signed-off-by: Hans de Goede

    Hans de Goede
     
  • Before this commit u-boot would print the following on boot with musb and
    no usb device plugged in:

    starting USB...
    USB0: Port not available.
    USB error: all controllers failed lowlevel init

    This commit changes this to:

    starting USB...
    USB0: Port not available.

    Which is the correct thing to do since the low-level init went fine.

    Signed-off-by: Hans de Goede

    Hans de Goede
     

08 Dec, 2014

1 commit


04 Nov, 2014

1 commit


29 Aug, 2014

1 commit

  • As we support both Host and Device mode operation, an OTG controller
    can return -ENODEV on a port which it found to be in Device mode during
    Host mode scan for devices. In case -ENODEV is returned, print that the
    port is not available and continue instead of screaming a bloody error
    message.

    Signed-off-by: Marek Vasut

    Marek Vasut