From: Lukasz Majewski <l.majewski@samsung.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] USB: gadget: save driver name before registering it
Date: Mon, 05 May 2014 10:08:21 +0200 [thread overview]
Message-ID: <20140505100821.59c8d1fb@amdc2363> (raw)
In-Reply-To: <1398980716-30626-1-git-send-email-swarren@wwwdotorg.org>
Hi Stephen,
> From: Stephen Warren <swarren@nvidia.com>
>
> 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>
Applied to u-boot-dfu. Thanks.
--
Best regards,
Lukasz Majewski
Samsung R&D Institute Poland (SRPOL) | Linux Platform Group
prev parent reply other threads:[~2014-05-05 8:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-01 21:45 [U-Boot] [PATCH] USB: gadget: save driver name before registering it Stephen Warren
2014-05-05 8:08 ` Lukasz Majewski [this message]
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=20140505100821.59c8d1fb@amdc2363 \
--to=l.majewski@samsung.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox