[U-Boot] [PATCH V2 5/5] ARM: tegra: clear $usb_need_init each boot

Stephen Warren swarren at wwwdotorg.org
Thu Jan 23 21:17:05 CET 2014


From: Stephen Warren <swarren at nvidia.com>

$usb_need_init prevents "usb start" from being run multiple times for
each boot attempt, i.e. once for USB storage, another for PXE, and
another for DHCP. However, the flag that's used to determine when to run
"usb start" is never cleared, so a subsequent "boot" command will never
probe for a freshly plugged in USB device. Fix this so that new USB
devices will be probed once per boot attempt.

Signed-off-by: Stephen Warren <swarren at nvidia.com>
---
v2: New patch
---
 include/configs/tegra-common-post.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/configs/tegra-common-post.h b/include/configs/tegra-common-post.h
index b3e1cfd5de8c..99448cf3dedc 100644
--- a/include/configs/tegra-common-post.h
+++ b/include/configs/tegra-common-post.h
@@ -136,6 +136,7 @@
 	BOOTCMDS_PXE
 
 #define CONFIG_BOOTCOMMAND \
+	"set usb_need_init; " \
 	"for target in ${boot_targets}; do run bootcmd_${target}; done"
 
 #endif
-- 
1.8.1.5



More information about the U-Boot mailing list