From: wlf Date: Tue, 25 Feb 2014 09:58:46 +0000 (+0800) Subject: USB: set hcd->has_tt = 1 to support parent hub TT X-Git-Tag: firefly_0821_release~6270 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5455026028b0ac722cf51d09c2b46c6a88277bcc;p=firefly-linux-kernel-4.4.55.git USB: set hcd->has_tt = 1 to support parent hub TT --- diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index 7783a7044e26..b45d9508dc7a 100755 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c @@ -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; diff --git a/drivers/usb/dwc_otg/dwc_otg_hcd.c b/drivers/usb/dwc_otg/dwc_otg_hcd.c index 976b56726e63..840c0a4c26d8 100755 --- a/drivers/usb/dwc_otg/dwc_otg_hcd.c +++ b/drivers/usb/dwc_otg/dwc_otg_hcd.c @@ -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);