]> git.ipfire.org Git - people/ms/u-boot.git/commit
USB: make "usb start" start usb only once
authorHans de Goede <hdegoede@redhat.com>
Tue, 6 Jan 2015 13:27:41 +0000 (14:27 +0100)
committerMarek Vasut <marex@denx.de>
Sun, 18 Jan 2015 11:31:35 +0000 (12:31 +0100)
commitb5072264054879b4cdfe8219404a0b2347d933b5
tree47de6e007bdaa6ec0b825d943046cde1c701552e
parentc0978a94aa4eab52e8c634ac0a43af4b411921e3
USB: make "usb start" start usb only once

Currently we've this magic in include/config_distro_bootcmd.h to avoid
scanning the usb bus multiple times.

And it does not work when also using an usb keyboard because then the
preboot command has already scanned the bus, so we're still scanning it
twice.

This commit makes "usb start" only start usb if it is no already started,
allowing us to remove all the magic for it from include/config_distro_bootcmd.h
and just call it unconditionally.

This also causes "usb start" and "usb reset" to actually do what their
different names suggest, rather then both of them doing exactly the same.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
common/cmd_usb.c