3 # Patch managed by http://www.holgerschurig.de/patcher.html
6 --- hotplug-2004_09_20/etc/hotplug/usb.rc~userspecified_hcd.patch
7 +++ hotplug-2004_09_20/etc/hotplug/usb.rc
9 unset I_WANT_A_BROKEN_PS
14 X11_USBMICE_HACK=false
17 # FIXME: some of this should be driven by PCI hotplugging, and have
18 # the blacklist control which uhci driver gets used (before 2.5).
20 - # "new style" HCDs ... more common code
21 - modprobe -q ehci-hcd >/dev/null 2>&1
22 - modprobe -q ohci-hcd >/dev/null 2>&1
23 - modprobe -q uhci-hcd >/dev/null 2>&1
25 - # "old style" HCDs ... more driver-specific bugs
26 - modprobe -q usb-ohci >/dev/null 2>&1
27 - # NOTE: this prefers "uhci"; you may prefer "usb-uhci".
28 - # modprobe -q usb-uhci >/dev/null 2>&1 || modprobe -q uhci >/dev/null 2>&1
29 - modprobe -q uhci >/dev/null 2>&1 || modprobe -q usb-uhci >/dev/null 2>&1
31 - # ... add any non-PCI HCDS here. Examples include the
32 - # CRIS usb-host, Philips ISP-1161, Symlogic 811HS, and so on.
33 - # ohci-hcd can handle some non-pci variants.
34 + # If the user specified which HCD they want, trust them.
35 + if [ -n "$HCD" ]; then
36 + modprobe -q $HCD >/dev/null 2>&1
38 + # "new style" HCDs ... more common code
39 + modprobe -q ehci-hcd >/dev/null 2>&1
40 + modprobe -q ohci-hcd >/dev/null 2>&1
41 + modprobe -q uhci-hcd >/dev/null 2>&1
43 + # "old style" HCDs ... more driver-specific bugs
44 + modprobe -q usb-ohci >/dev/null 2>&1
45 + # NOTE: this prefers "uhci"; you may prefer "usb-uhci".
46 + # modprobe -q usb-uhci >/dev/null 2>&1 || modprobe -q uhci >/dev/null 2>&1
47 + modprobe -q uhci >/dev/null 2>&1 || modprobe -q usb-uhci >/dev/null 2>&1
49 + # ... add any non-PCI HCDS here. Examples include the
50 + # CRIS usb-host, Philips ISP-1161, Symlogic 811HS, and so on.
51 + # ohci-hcd can handle some non-pci variants.
54 if [ -d /proc/bus/usb ]; then
55 # If we see there are no busses, we "failed" and