fix typo
[openwrt.git] / target / linux / adm5120 / patches-2.6.22 / 005-adm5120_usb.patch
1 Index: linux-2.6.22.1/drivers/usb/core/hub.c
2 ===================================================================
3 --- linux-2.6.22.1.orig/drivers/usb/core/hub.c
4 +++ linux-2.6.22.1/drivers/usb/core/hub.c
5 @@ -540,7 +540,7 @@ static int hub_hub_status(struct usb_hub
6 "%s failed (err = %d)\n", __FUNCTION__, ret);
7 else {
8 *status = le16_to_cpu(hub->status->hub.wHubStatus);
9 - *change = le16_to_cpu(hub->status->hub.wHubChange);
10 + *change = le16_to_cpu(hub->status->hub.wHubChange);
11 ret = 0;
12 }
13 mutex_unlock(&hub->status_mutex);
14 @@ -1424,7 +1424,7 @@ static int hub_port_status(struct usb_hu
15 ret = -EIO;
16 } else {
17 *status = le16_to_cpu(hub->status->port.wPortStatus);
18 - *change = le16_to_cpu(hub->status->port.wPortChange);
19 + *change = le16_to_cpu(hub->status->port.wPortChange);
20 ret = 0;
21 }
22 mutex_unlock(&hub->status_mutex);
23 @@ -2230,6 +2230,8 @@ hub_port_init (struct usb_hub *hub, stru
24 USB_DT_DEVICE << 8, 0,
25 buf, GET_DESCRIPTOR_BUFSIZE,
26 USB_CTRL_GET_TIMEOUT);
27 +printk(KERN_CRIT "usb_control_msg: %d %d %d (%d)\n", r, buf->bMaxPacketSize0,
28 +buf->bDescriptorType, USB_DT_DEVICE);
29 switch (buf->bMaxPacketSize0) {
30 case 8: case 16: case 32: case 64: case 255:
31 if (buf->bDescriptorType ==
32 Index: linux-2.6.22.1/drivers/usb/host/Kconfig
33 ===================================================================
34 --- linux-2.6.22.1.orig/drivers/usb/host/Kconfig
35 +++ linux-2.6.22.1/drivers/usb/host/Kconfig
36 @@ -237,3 +237,6 @@ config USB_SL811_CS
37 To compile this driver as a module, choose M here: the
38 module will be called "sl811_cs".
39
40 +config USB_ADM5120_HCD
41 + tristate "ADM5120 HCD support"
42 + depends on USB && MIPS_ADM5120
43 Index: linux-2.6.22.1/drivers/usb/host/Makefile
44 ===================================================================
45 --- linux-2.6.22.1.orig/drivers/usb/host/Makefile
46 +++ linux-2.6.22.1/drivers/usb/host/Makefile
47 @@ -8,6 +8,7 @@ endif
48
49 obj-$(CONFIG_PCI) += pci-quirks.o
50
51 +obj-$(CONFIG_USB_ADM5120_HCD) += adm5120-hcd.o
52 obj-$(CONFIG_USB_EHCI_HCD) += ehci-hcd.o
53 obj-$(CONFIG_USB_ISP116X_HCD) += isp116x-hcd.o
54 obj-$(CONFIG_USB_OHCI_HCD) += ohci-hcd.o
55 Index: linux-2.6.22.1/drivers/usb/Makefile
56 ===================================================================
57 --- linux-2.6.22.1.orig/drivers/usb/Makefile
58 +++ linux-2.6.22.1/drivers/usb/Makefile
59 @@ -16,6 +16,7 @@ obj-$(CONFIG_USB_UHCI_HCD) += host/
60 obj-$(CONFIG_USB_SL811_HCD) += host/
61 obj-$(CONFIG_USB_U132_HCD) += host/
62 obj-$(CONFIG_USB_OHCI_AT91) += host/
63 +obj-$(CONFIG_USB_ADM5120_HCD) += host/
64
65 obj-$(CONFIG_USB_ACM) += class/
66 obj-$(CONFIG_USB_PRINTER) += class/
This page took 0.045651 seconds and 5 git commands to generate.