lantiq: add v3.9 support
[openwrt.git] / target / linux / lantiq / patches-3.9 / 0005-USB-fix-roothub-for-IFXHCD.patch
1 From 36474b3c976055f9f96df76286a5da4812354259 Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Thu, 6 Dec 2012 19:59:53 +0100
4 Subject: [PATCH 05/22] USB: fix roothub for IFXHCD
5
6 ---
7  arch/mips/lantiq/Kconfig |    1 +
8  drivers/usb/core/hub.c   |    2 +-
9  2 files changed, 2 insertions(+), 1 deletion(-)
10
11 diff --git a/arch/mips/lantiq/Kconfig b/arch/mips/lantiq/Kconfig
12 index c002191..675310a 100644
13 --- a/arch/mips/lantiq/Kconfig
14 +++ b/arch/mips/lantiq/Kconfig
15 @@ -3,6 +3,7 @@ if LANTIQ
16  config SOC_TYPE_XWAY
17         bool
18         select PINCTRL_XWAY
19 +       select USB_ARCH_HAS_HCD
20         default n
21  
22  choice
23 diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
24 index 5480352..9763b0d 100644
25 --- a/drivers/usb/core/hub.c
26 +++ b/drivers/usb/core/hub.c
27 @@ -4016,7 +4016,7 @@ hub_port_init (struct usb_hub *hub, struct usb_device *udev, int port1,
28                 udev->ttport = hdev->ttport;
29         } else if (udev->speed != USB_SPEED_HIGH
30                         && hdev->speed == USB_SPEED_HIGH) {
31 -               if (!hub->tt.hub) {
32 +               if (hdev->parent && !hub->tt.hub) {
33                         dev_err(&udev->dev, "parent hub has no TT\n");
34                         retval = -EINVAL;
35                         goto fail;
36 -- 
37 1.7.10.4
38