05 May, 2014

3 commits

  • g_dnl_register() currently first attempts to register a composite
    driver by name, and then saves the driver name once it's registered.
    Internally to the registration code, g_dnl_do_config() is called and
    attempts to compare the composite device's name with the list of known
    device names. This fails since the composite device's name has not yet
    been stored. This means that the first time "ums 0 0" is run, it fails,
    but subsequent attempts succeed.

    Re-order the name-saving and registration code to solve this.

    Fixes: e5b834e07f51 ("USB: gadget: added a saner gadget downloader registration API")
    Signed-off-by: Stephen Warren

    Stephen Warren
     
  • Preprocessor definitions and hardcoded implementation selection in
    g_dnl core were replaced by a linker list made of (usb_function_name,
    bind_callback) pairs.

    Signed-off-by: Mateusz Zalega
    Acked-by: Lukasz Majewski
    Acked-by: Marek Vasut

    Mateusz Zalega
     
  • Former usb_cable_connected() patch broke compilation of boards which do
    not support this feature.

    I've renamed usb_cable_connected() to g_dnl_usb_cable_connected() and added
    its default implementation to gadget downloader driver code. There's
    only one driver of this kind and it's unlikely there'll be another, so
    there's no point in keeping it in /common.

    Previously this function was declared in usb.h. I've moved it, since
    it's more appropriate to keep it in g_dnl.h - usb.h seems to be intended
    for USB host implementation.

    Existing code, confronted with default -EOPNOTSUPP return value,
    continues as if the cable was connected.

    CONFIG_USB_CABLE_CHECK was removed.

    Change-Id: Ib9198621adee2811b391c64512f14646cefd0369
    Signed-off-by: Mateusz Zalega
    Acked-by: Marek Vasut
    Acked-by: Lukasz Majewski

    Mateusz Zalega
     

12 Nov, 2013

1 commit


09 Nov, 2013

1 commit

  • add the possibility to set the iSerialNumber board specific.
    Default value for iSerialNumber is 0x0. This value can
    changed board specific through the new function
    g_dnl_set_serialnumber() which must be called from the
    board specific function g_dnl_bind_fixup().

    Signed-off-by: Heiko Schocher
    Cc: Marek Vasut
    Cc: Lukasz Majewski
    Cc: Kyungmin Park
    Tested-by: Lukasz Majewski

    Heiko Schocher
     

21 Oct, 2013

3 commits


24 Sep, 2013

3 commits


27 Aug, 2013

2 commits


24 Jul, 2013

1 commit


01 Jul, 2013

1 commit


19 Mar, 2013

1 commit

  • This patch adds the USB Mass Storage Gadget to u-boot
    New command called "ums" is implemented to provide access
    to on-device embedded persistent memory.

    USB Mass Storage is supposed to work on top of the USB
    Gadget framework

    Signed-off-by: Lukasz Majewski
    Signed-off-by: Piotr Wilczek
    Signed-off-by: Kyungmin Park
    CC: Marek Vasut

    Lukasz Majewski
     

17 Dec, 2012

2 commits


01 Sep, 2012

1 commit