surpport seeking the recorded video
[vuplus_openembedded] / recipes / linux-hotplug / linux-hotplug-20040920 / userspecified_hcd.patch
1
2 #
3 # Patch managed by http://www.holgerschurig.de/patcher.html
4 #
5
6 --- hotplug-2004_09_20/etc/hotplug/usb.rc~userspecified_hcd.patch
7 +++ hotplug-2004_09_20/etc/hotplug/usb.rc
8 @@ -24,6 +24,7 @@
9  unset I_WANT_A_BROKEN_PS
10  PS_PERSONALITY=linux
11  
12 +HCD=
13  STATIC_MODULE_LIST=
14  X11_USBMICE_HACK=false
15  
16 @@ -166,20 +167,25 @@
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).
19  
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
24 -
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
30 -
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
37 +    else
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
42 +    
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
48 +    
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.
52 +    fi
53  
54      if [ -d /proc/bus/usb ]; then
55         # If we see there are no busses, we "failed" and