]> git.sur5r.net Git - u-boot/commit
mmc: don't allow extra cmdline arguments
authorStephen Warren <swarren@nvidia.com>
Mon, 1 Apr 2013 11:50:28 +0000 (11:50 +0000)
committerTom Rini <trini@ti.com>
Tue, 2 Apr 2013 20:23:35 +0000 (16:23 -0400)
commit9fd383724cf49b5fd787c62169569d870857d611
tree825f0847e12e13140ab6b9723d579379f0d0f1e0
parent5993053fa42706b289a08f3661a9c00096158981
mmc: don't allow extra cmdline arguments

The "mmc rescan" command takes no arguments. However, executing
"mmc rescan 1" succeeds, leading the user to believe that MMC device 1
has been rescanned. In fact, the "current" MMC device has been
rescanned, and the current device may well not be 1. Add error-checking
to the "mmc" command to explicitly reject any extra command-line
arguments so that it's more obvious when U-Boot isn't doing what the
user thought they asked it to.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
common/cmd_mmc.c