]> git.sur5r.net Git - u-boot/commitdiff
ARM: tegra: clear $usb_need_init each boot
authorStephen Warren <swarren@nvidia.com>
Thu, 23 Jan 2014 20:17:05 +0000 (13:17 -0700)
committerTom Warren <twarren@nvidia.com>
Mon, 3 Feb 2014 16:46:44 +0000 (09:46 -0700)
$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@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
include/configs/tegra-common-post.h

index 020b9b17b1d0283aa5b67939eac76c73b67aeb43..e1a3bbc6263662f87e3b34ee8f5fd85baced9ab9 100644 (file)
@@ -99,6 +99,7 @@
        BOOTCMDS_DHCP
 
 #define CONFIG_BOOTCOMMAND \
+       "set usb_need_init; " \
        "for target in ${boot_targets}; do run bootcmd_${target}; done"
 
 #endif