diff options
author | Gabe Black <gabeblack@google.com> | 2012-10-31 15:55:16 -0700 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2012-11-07 18:38:31 +0100 |
commit | 8670b9b81aba6bf51510e337d4f7208d2b4ea320 (patch) | |
tree | c4e46122496168828bd9ccc59bd2e8710c34c570 /payloads/libpayload/drivers/usb/usbinit.c | |
parent | 1b33c31cf30ab250f598ed4b3fc4e3cea4c89071 (diff) |
libpayload: Take usb_poll out of usb_initialize.
While it might be slightly more convenient to not have to call usb_poll
manually after calling usb_initialize, you'll still likely want to call it
before trying to use a USB device since one have have been hotplugged since
you last looked. By not calling usb_poll, usb_initialize completes quickly and
can be called unconditionally without a long delay. The delay can be put off
until later when we're sure it's necessary.
Change-Id: Ib8b1bdea996702c42d1b7021f492d9f8e174d304
Signed-off-by: Gabe Black <gabeblack@google.com>
Reviewed-on: http://review.coreboot.org/1737
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Tested-by: build bot (Jenkins)
Diffstat (limited to 'payloads/libpayload/drivers/usb/usbinit.c')
-rw-r--r-- | payloads/libpayload/drivers/usb/usbinit.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/payloads/libpayload/drivers/usb/usbinit.c b/payloads/libpayload/drivers/usb/usbinit.c index f51783b2fa..4419ce6055 100644 --- a/payloads/libpayload/drivers/usb/usbinit.c +++ b/payloads/libpayload/drivers/usb/usbinit.c @@ -155,6 +155,5 @@ static void usb_scan_pci_bus(int bus) int usb_initialize(void) { usb_scan_pci_bus(0); - usb_poll(); return 0; } |