From a8193797fa70ee6ba31b055132ca6f8b45edae6c Mon Sep 17 00:00:00 2001 From: kamkow1 Date: Fri, 3 Apr 2026 12:28:04 +0200 Subject: [PATCH] XHCI pass pdevice->config_desc.config_value to xhci_pdevice_setup_set_config as the preferred configuration --- kernel/device/usb/xhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/device/usb/xhci.c b/kernel/device/usb/xhci.c index 1879470..37e3cc1 100644 --- a/kernel/device/usb/xhci.c +++ b/kernel/device/usb/xhci.c @@ -1229,7 +1229,7 @@ static void xhci_poll_setup_devices (struct xhci* xhci, uint64_t* lockflags) { xhci_pdevice_setup_get_info (xhci, pdevice, lockflags); xhci_pdevice_setup_get_config (xhci, pdevice, lockflags); xhci_pdevice_setup_get_config_full (xhci, pdevice, lockflags); - xhci_pdevice_setup_set_config (xhci, pdevice, 0, lockflags); + xhci_pdevice_setup_set_config (xhci, pdevice, pdevice->config_desc.config_value, lockflags); xhci_pdevice_setup_init_endpoints (xhci, pdevice, lockflags); xhci_poll_setup_init_ifs (xhci, pdevice, lockflags); }