diff options
author | Stephen Warren <swarren@nvidia.com> | 2014-05-01 15:45:16 -0600 |
---|---|---|
committer | Lukasz Majewski <l.majewski@samsung.com> | 2014-05-05 08:33:13 +0200 |
commit | 25fbf96b24fd3fe0a5252c374b445be32f42b0c8 (patch) | |
tree | 9207a2f5b12ffd90ca098f8b4c2d56604b369674 /include/andestech | |
parent | c4d0e856047f2689278ffea63a562c4f22a35ee3 (diff) | |
download | u-boot-imx-25fbf96b24fd3fe0a5252c374b445be32f42b0c8.zip u-boot-imx-25fbf96b24fd3fe0a5252c374b445be32f42b0c8.tar.gz u-boot-imx-25fbf96b24fd3fe0a5252c374b445be32f42b0c8.tar.bz2 |
USB: gadget: save driver name before registering it
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 <swarren@nvidia.com>
Diffstat (limited to 'include/andestech')
0 files changed, 0 insertions, 0 deletions