From 8670b9b81aba6bf51510e337d4f7208d2b4ea320 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 31 Oct 2012 15:55:16 -0700 Subject: 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 Reviewed-on: http://review.coreboot.org/1737 Reviewed-by: Patrick Georgi Tested-by: build bot (Jenkins) --- payloads/libpayload/drivers/usb/usbinit.c | 1 - 1 file changed, 1 deletion(-) 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; } -- cgit v1.2.3