coreboot-kgpe-d16/payloads/libpayload/drivers/usb
Duncan Laurie 287cf6c7d1 lp/drivers/usb: Work around QEMU XHCI register issue
The QEMU XHCI controller does not support byte/word reads from the
capability register and it expects dword reads only.

In order to make this work move the access of the capability
register fields to use macros instead of a packed struct bitfield.

This issue was filed upstream:
https://bugs.launchpad.net/qemu/+bug/1693050

The original fix attempt in 2012 was not effective:
6ee021d410

With this change the controller is detected properly by the libpayload
USB drivers.

Change-Id: I048ed14921a4c9c0620c10b315b42476b6e5c512
Signed-off-by: Duncan Laurie <dlaurie@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/39838
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
2020-04-14 09:47:22 +00:00
..
Kconfig
TODO
dwc2.c payloads: Fix typos 2020-02-17 16:01:50 +00:00
dwc2.h
dwc2_private.h
dwc2_rh.c
ehci.c treewide: capitalize 'USB' 2020-02-26 17:06:40 +00:00
ehci.h
ehci_private.h Rename __attribute__((packed)) --> __packed 2017-07-13 19:45:59 +00:00
ehci_rh.c payloads: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-07 17:15:30 +00:00
generic_hub.c libpayload/generic_hub: Detect port disconnect after reset 2018-07-17 20:38:46 +00:00
generic_hub.h
ohci.c payloads: Fix typos 2020-02-17 16:01:50 +00:00
ohci.h
ohci_private.h libpayload/drivers/usb/ohci_private.h: Add parentheses around macro 2018-04-29 18:13:08 +00:00
ohci_rh.c
quirks.c
uhci.c libpayload/usb: Increase USB request timeout to 5 s 2019-07-02 17:42:18 +00:00
uhci.h
uhci_private.h Rename __attribute__((packed)) --> __packed 2017-07-13 19:45:59 +00:00
uhci_rh.c
usb.c treewide: capitalize 'USB' 2020-02-26 17:06:40 +00:00
usb_dev.c libpayload/drivers/usb: Fix leaks 2018-10-01 16:58:29 +00:00
usbhid.c payloads: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-07 17:15:30 +00:00
usbhub.c payloads: Fix typos 2020-02-17 16:01:50 +00:00
usbinit.c payloads: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-07 17:15:30 +00:00
usbmsc.c treewide: capitalize 'USB' 2020-02-26 17:06:40 +00:00
xhci.c lp/drivers/usb: Work around QEMU XHCI register issue 2020-04-14 09:47:22 +00:00
xhci.h
xhci_commands.c
xhci_debug.c
xhci_devconf.c libpayload/xhci: Fix MPS handling in set_address 2020-02-05 09:56:26 +00:00
xhci_events.c libpayload/usb: Increase USB request timeout to 5 s 2019-07-02 17:42:18 +00:00
xhci_private.h lp/drivers/usb: Work around QEMU XHCI register issue 2020-04-14 09:47:22 +00:00
xhci_rh.c lp/drivers/usb: Work around QEMU XHCI register issue 2020-04-14 09:47:22 +00:00