diff options
author | Duncan Laurie <dlaurie@google.com> | 2020-03-17 19:32:14 -0700 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-04-14 09:47:22 +0000 |
commit | 287cf6c7d101d98cdbba8926651d87945534b7d9 (patch) | |
tree | d584740b961638cd4c052eef3ed1c1d283400dc6 /payloads/libpayload/libc/hexdump.c | |
parent | bc885c194c0175b7a3ac9442cf9c82a0fa28ac2a (diff) |
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:
https://github.com/qemu/qemu/commit/6ee021d41078844df60a3a466e3829a3e82776f3
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>
Diffstat (limited to 'payloads/libpayload/libc/hexdump.c')
0 files changed, 0 insertions, 0 deletions