summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown2025-07-18 15:24:23 +0200
committerMichael Brown2025-07-18 15:58:56 +0200
commiteca97c2ee2e44c606f6c9664003751ae0f444c72 (patch)
tree3ba92d0bc16703db5ee0be1e598b52aecbb608be /src/include
parent[efi] Check only the non-extended WaitForKey event (diff)
downloadipxe-eca97c2ee2e44c606f6c9664003751ae0f444c72.tar.gz
ipxe-eca97c2ee2e44c606f6c9664003751ae0f444c72.tar.xz
ipxe-eca97c2ee2e44c606f6c9664003751ae0f444c72.zip
[xhci] Use root hub port number to determine slot type
We currently use the downstream hub's port number to determine the xHCI slot type for a newly connected USB device. The downstream hub port number is irrelevant to the xHCI controller's supported protocols table: the relevant value is the number of the root hub port through which the device is attached. Fix by using the root hub port number instead of the immediate parent hub's port number. This bug has not previously been detected since the slot type for the first N root hub ports will invariably be zero to indicate that these are USB ports. For any xHCI controller with a sufficiently large number of root hub ports, the code would therefore end up happening to calculate the correct slot type value despite using an incorrect port number. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
0 files changed, 0 insertions, 0 deletions