coreboot/payloads/libpayload/drivers/usb
Julius Werner f7f6f008f7 libpayload: usbhub: Don't clear PSC unless it was set
The current USB hub code always clears the port status change after
checking it, regardless of whether it was set in the first place. Since
this check runs on every poll, it might create a race condition where
the port status changes right between the GET_PORT_STATUS and the
CLEAR_FEATURE(C_PORT_CONNECT), thus clearing the statrus change flag
before it was ever read. Let's add one extra if() to avoid that possible
headache.

BUG=chrome-os-partner:21969
TEST=None

Change-Id: Idd46c2199dc6c240bd9ef068fbe70cccc88bac42
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/168098
2013-09-16 19:38:40 +00:00
..
ehci.c libpayload: Redirect USB slave init through controller driver 2013-09-16 19:38:24 +00:00
ehci.h libpayload: Add USB support for non-PCI controllers 2013-05-20 17:01:26 -07:00
ehci_private.h libpayload: ehci: Cache management is hard, let's go copying... 2013-09-14 01:31:18 +00:00
ehci_rh.c libpayload: Add USB support for non-PCI controllers 2013-05-20 17:01:26 -07:00
generic_hub.c libpayload: Add a generic driver for usb hubs 2013-09-16 19:38:30 +00:00
generic_hub.h libpayload: Add a generic driver for usb hubs 2013-09-16 19:38:30 +00:00
ohci.c libpayload: Redirect USB slave init through controller driver 2013-09-16 19:38:24 +00:00
ohci.h libpayload: Add USB support for non-PCI controllers 2013-05-20 17:01:26 -07:00
ohci_private.h libpayload: Add USB support for non-PCI controllers 2013-05-20 17:01:26 -07:00
ohci_rh.c libpayload: Rework connection state detection for OHCI 2012-11-24 08:46:34 +01:00
quirks.c libpayload: Turn the "debug" #define into the usb_debug static inline function. 2012-11-07 18:38:37 +01:00
TODO Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
uhci.c libpayload: Redirect USB slave init through controller driver 2013-09-16 19:38:24 +00:00
uhci.h libpayload: Add USB support for non-PCI controllers 2013-05-20 17:01:26 -07:00
uhci_private.h libpayload: Remove bitfield use from UHCI data structures 2012-01-10 00:02:54 +01:00
uhci_rh.c libpayload: Turn the "debug" #define into the usb_debug static inline function. 2012-11-07 18:38:37 +01:00
usb.c libpayload: usb: Add interval attribute to endpoints 2013-09-16 19:38:27 +00:00
usb_dev.c Fix the USB code to find the headers after they were moved. 2008-09-11 17:29:00 +00:00
usbhid.c libpayload: Change CONFIG_* to CONFIG_LP_* in the kconfig. 2013-08-14 17:05:33 -07:00
usbhub.c libpayload: usbhub: Don't clear PSC unless it was set 2013-09-16 19:38:40 +00:00
usbinit.c libpayload: Change CONFIG_* to CONFIG_LP_* in the kconfig. 2013-08-14 17:05:33 -07:00
usbmsc.c libpayload: usbmsc: Split transfers into 64KB chunks 2013-09-13 19:10:10 +00:00
xhci.c libpayload: Fill gaps in the xHCI driver 2013-09-16 19:38:36 +00:00
xhci.h libpayload: Add USB support for non-PCI controllers 2013-05-20 17:01:26 -07:00
xhci_commands.c libpayload: Fill gaps in the xHCI driver 2013-09-16 19:38:36 +00:00
xhci_debug.c libpayload: Fill gaps in the xHCI driver 2013-09-16 19:38:36 +00:00
xhci_devconf.c libpayload: Fill gaps in the xHCI driver 2013-09-16 19:38:36 +00:00
xhci_events.c libpayload: Fill gaps in the xHCI driver 2013-09-16 19:38:36 +00:00
xhci_private.h libpayload: Fill gaps in the xHCI driver 2013-09-16 19:38:36 +00:00
xhci_rh.c libpayload: Fill gaps in the xHCI driver 2013-09-16 19:38:36 +00:00