diff options
author | Tony LIU <junjie.liu@freescale.com> | 2011-12-22 19:07:03 +0800 |
---|---|---|
committer | Jason Liu <r64343@freescale.com> | 2012-01-09 21:12:27 +0800 |
commit | 63599c568acaf1f466aedfbc4938fa6236f2ce12 (patch) | |
tree | 52afb0aca86d739790a2cd2e8d2fb6ca03e3f3d4 /drivers/usb/core/hub.c | |
parent | 7272ee1a3cd2e085e7526fa3de029c2f5562d6ca (diff) |
ENGR00170144 [USB-Host] Fix the following USB hub issue on mx6q
- After auto suspend, attach device to hub will cause host can't work any more
- after system suspend, attach device to hub will cause host can't work any more
- HSDISCONNECTDEC logic error
- Set RUNSTOP in bus suspend, if no short delay, host can't work any more
Signed-off-by: Tony LIU <junjie.liu@freescale.com>
Diffstat (limited to 'drivers/usb/core/hub.c')
-rw-r--r-- | drivers/usb/core/hub.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index 29914c4e3509..4ef23fe6789d 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c @@ -3030,7 +3030,7 @@ hub_port_init (struct usb_hub *hub, struct usb_device *udev, int port1, } #ifdef MX6_USB_HOST_HACK { /*Must enable HOSTDISCONDETECT after second reset*/ - if (port1 == 1) { + if ((port1 == 1) && (udev->level == 1)) { if (udev->speed == USB_SPEED_HIGH) { struct device *dev = hcd->self.controller; struct fsl_usb2_platform_data *pdata; @@ -3184,11 +3184,11 @@ static void hub_port_connect_change(struct usb_hub *hub, int port1, struct fsl_usb2_platform_data *pdata; pdata = (struct fsl_usb2_platform_data *)dev->platform_data; - if (dev->parent && dev->type) { + if (dev->parent && (hdev->level == 0) && dev->type) { if (port1 == 1 && pdata->init) pdata->init(NULL); } - if (port1 == 1) { + if ((port1 == 1) && (hdev->level == 0)) { if (!(portstatus&USB_PORT_STAT_CONNECTION)) { /* Must clear HOSTDISCONDETECT when disconnect*/ fsl_platform_set_usb_phy_dis(pdata, 0); |