[U-Boot] [PATCH 03/14] usb: gadget: UMS: Invoke board specific USB cleanup interface

Lukasz Majewski l.majewski at samsung.com
Tue Mar 3 17:32:05 CET 2015


From: Inha Song <ideal.song at samsung.com>

This patch invokes board-specific USB cleanup (board_usb_cleanup)
function in the mass storage gadget

Signed-off-by: Inha Song <ideal.song at samsung.com>
---
 common/cmd_usb_mass_storage.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/common/cmd_usb_mass_storage.c b/common/cmd_usb_mass_storage.c
index c5f909d..ccd4cc5 100644
--- a/common/cmd_usb_mass_storage.c
+++ b/common/cmd_usb_mass_storage.c
@@ -154,6 +154,7 @@ int do_usb_mass_storage(cmd_tbl_t *cmdtp, int flag,
 	}
 exit:
 	g_dnl_unregister();
+	board_usb_cleanup(controller_index, USB_INIT_DEVICE);
 	return CMD_RET_SUCCESS;
 }
 
-- 
2.0.0.rc2



More information about the U-Boot mailing list