]> xenbits.xensource.com Git - seabios.git/commit
usb: fix wrong init of keyboard/mouse's if first interface is not boot protocol
authorQi Zhou <atmgnd@outlook.com>
Mon, 14 Nov 2022 12:55:44 +0000 (20:55 +0800)
committerKevin O'Connor <kevin@koconnor.net>
Wed, 23 Nov 2022 16:31:15 +0000 (11:31 -0500)
commit645a64b4911d7cadf5749d7375544fc2384e70ba
treee8d01f3c4ced5fc4858eb1d8e473ef5b11c73eae
parent3208b098f51a9ef96d0dfa71d5ec3a3eaec88f0a
usb: fix wrong init of keyboard/mouse's if first interface is not boot protocol

There is always some endpoint descriptors after each interface descriptor, We
should only decrement num_iface if interface type is USB_DT_INTERFACE, see
https://www.beyondlogic.org/usbnutshell/usb5.shtml#ConfigurationDescriptors

Signed-off-by: Qi Zhou <atmgnd@outlook.com>
src/hw/usb-hid.c
src/hw/usb.c