From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukasz Majewski Date: Mon, 05 May 2014 10:08:21 +0200 Subject: [U-Boot] [PATCH] USB: gadget: save driver name before registering it In-Reply-To: <1398980716-30626-1-git-send-email-swarren@wwwdotorg.org> References: <1398980716-30626-1-git-send-email-swarren@wwwdotorg.org> Message-ID: <20140505100821.59c8d1fb@amdc2363> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Stephen, > From: Stephen Warren > > 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 Applied to u-boot-dfu. Thanks. -- Best regards, Lukasz Majewski Samsung R&D Institute Poland (SRPOL) | Linux Platform Group