From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukasz Majewski Date: Wed, 04 Mar 2015 14:19:37 +0100 Subject: [U-Boot] [PATCH v2 2/4] fastboot: call board_usb_init() to enable usb In-Reply-To: <1425381044-19460-2-git-send-email-dileep.katta@linaro.org> References: <1425381044-19460-1-git-send-email-dileep.katta@linaro.org> <1425381044-19460-2-git-send-email-dileep.katta@linaro.org> Message-ID: <20150304141937.003289a1@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 Dileep, > g_dnl_gadget_register() fails for dra7xx dwc3 gadget > when running cmd_fastboot. > Calling board_usb_init() fixes this. > > Signed-off-by: Angela Stegmaier > Signed-off-by: Dileep Katta > --- > common/cmd_fastboot.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/common/cmd_fastboot.c b/common/cmd_fastboot.c > index 346ab80..d7b8f6d 100644 > --- a/common/cmd_fastboot.c > +++ b/common/cmd_fastboot.c > @@ -10,11 +10,13 @@ > #include > #include > #include > +#include > > static int do_fastboot(cmd_tbl_t *cmdtp, int flag, int argc, char > *const argv[]) { > int ret; > > + board_usb_init(0, USB_INIT_DEVICE); > g_dnl_clear_detach(); > ret = g_dnl_register("usb_dnl_fastboot"); > if (ret) Acked-by: Lukasz Majewski -- Best regards, Lukasz Majewski Samsung R&D Institute Poland (SRPOL) | Linux Platform Group