From 802f5411842db8c60373f89ce524b350c74bb6c5 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 5 Sep 2020 15:41:50 +0200 Subject: [PATCH] Kernel/USB: Disable autodetection of UHCI controllers for now Until this thing becomes stable, let's not bother everyone with it. --- Kernel/Devices/UHCIController.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Kernel/Devices/UHCIController.cpp b/Kernel/Devices/UHCIController.cpp index f58cfa0bc5..a76be53296 100644 --- a/Kernel/Devices/UHCIController.cpp +++ b/Kernel/Devices/UHCIController.cpp @@ -26,6 +26,8 @@ #include +#define UHCI_ENABLED 0 + namespace Kernel { static constexpr u16 UHCI_USBCMD_RUN = 0x0001; @@ -46,6 +48,9 @@ static constexpr u16 UHCI_USBSTS_USB_INTERRUPT = 0x0001; void UHCIController::detect() { +#if !UHCI_ENABLED + return; +#endif PCI::enumerate([&](const PCI::Address& address, PCI::ID id) { if (address.is_null()) return;