diff options
Diffstat (limited to 'drivers/usb/host/sl811-hcd.c')
-rw-r--r-- | drivers/usb/host/sl811-hcd.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/usb/host/sl811-hcd.c b/drivers/usb/host/sl811-hcd.c index a949259f18b9..5b22a4d1c9e4 100644 --- a/drivers/usb/host/sl811-hcd.c +++ b/drivers/usb/host/sl811-hcd.c | |||
@@ -719,8 +719,12 @@ retry: | |||
719 | /* port status seems weird until after reset, so | 719 | /* port status seems weird until after reset, so |
720 | * force the reset and make khubd clean up later. | 720 | * force the reset and make khubd clean up later. |
721 | */ | 721 | */ |
722 | sl811->port1 |= (1 << USB_PORT_FEAT_C_CONNECTION) | 722 | if (sl811->stat_insrmv & 1) |
723 | | (1 << USB_PORT_FEAT_CONNECTION); | 723 | sl811->port1 |= 1 << USB_PORT_FEAT_CONNECTION; |
724 | else | ||
725 | sl811->port1 &= ~(1 << USB_PORT_FEAT_CONNECTION); | ||
726 | |||
727 | sl811->port1 |= 1 << USB_PORT_FEAT_C_CONNECTION; | ||
724 | 728 | ||
725 | } else if (irqstat & SL11H_INTMASK_RD) { | 729 | } else if (irqstat & SL11H_INTMASK_RD) { |
726 | if (sl811->port1 & (1 << USB_PORT_FEAT_SUSPEND)) { | 730 | if (sl811->port1 & (1 << USB_PORT_FEAT_SUSPEND)) { |