Merge pull request #1638 from tlaurion/move_sleep_for_proper_dongle_detection

BUGFIX: ash_functions: move sleep 2 after all usb modules being loaded
This commit is contained in:
Thierry Laurion 2024-04-15 17:55:57 -04:00 committed by GitHub
commit 82179e4e98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -324,11 +324,11 @@ enable_usb()
insmod /lib/modules/uhci-hcd.ko || die "uhci_hcd: module load failed"
insmod /lib/modules/ohci-hcd.ko || die "ohci_hcd: module load failed"
insmod /lib/modules/ohci-pci.ko || die "ohci_pci: module load failed"
sleep 2
fi
insmod /lib/modules/ehci-pci.ko || die "ehci_pci: module load failed"
insmod /lib/modules/xhci-hcd.ko || die "xhci_hcd: module load failed"
insmod /lib/modules/xhci-pci.ko || die "xhci_pci: module load failed"
sleep 2
# For resiliency, test CONFIG_USB_KEYBOARD_REQUIRED explicitly rather
# than having it imply CONFIG_USER_USB_KEYBOARD at build time.