USB: set hcd->has_tt = 1 to support parent hub TT
authorwlf <wulf@rock-chips.com>
Tue, 25 Feb 2014 09:58:46 +0000 (17:58 +0800)
committerwlf <wulf@rock-chips.com>
Tue, 25 Feb 2014 09:58:46 +0000 (17:58 +0800)
drivers/usb/core/hub.c
drivers/usb/dwc_otg/dwc_otg_hcd.c

index 7783a7044e268e6f964da4b45400b1321dcb316f..b45d9508dc7ad8d254e56e1c18b1b11acf90c3c3 100755 (executable)
@@ -4058,9 +4058,10 @@ hub_port_init (struct usb_hub *hub, struct usb_device *udev, int port1,
        } else if (udev->speed != USB_SPEED_HIGH
                        && hdev->speed == USB_SPEED_HIGH) {
                /* yk@rk 20110617
-                * parent hub has no TT would not be error in rk29
+                * parent hub has no TT would be error in rk29
+                * only need to be commented in rk29
                 */
-               #if 0
+               #if 1
                if (!hub->tt.hub) {
                        dev_err(&udev->dev, "parent hub has no TT\n");
                        retval = -EINVAL;
index 976b56726e6352c5080b95649654150c5bf8dff0..840c0a4c26d80bbd5ee50a3c24b9d8c73dd3387a 100755 (executable)
@@ -751,7 +751,8 @@ int  dwc_otg_hcd_init(struct device *dev)
                goto error1;
        }
        hcd->regs = otg_dev->base;
-       hcd->self.otg_port = 1;  
+       hcd->self.otg_port = 1;
+       hcd->has_tt = 1;
 
        /* Initialize the DWC OTG HCD. */
        dwc_otg_hcd = hcd_to_dwc_otg_hcd(hcd);
@@ -1082,7 +1083,8 @@ int host20_hcd_init(struct device *dev)
                goto error1;
        }
        hcd->regs = otg_dev->base;
-       hcd->self.otg_port = 1;  
+       hcd->self.otg_port = 1;
+       hcd->has_tt = 1;
 
        /* Initialize the DWC OTG HCD. */
        dwc_otg_hcd = hcd_to_dwc_otg_hcd(hcd);