aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ohci-hub.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/host/ohci-hub.c')
-rw-r--r--drivers/usb/host/ohci-hub.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/usb/host/ohci-hub.c b/drivers/usb/host/ohci-hub.c
index 0aa17c937115..fe2aedd8a54d 100644
--- a/drivers/usb/host/ohci-hub.c
+++ b/drivers/usb/host/ohci-hub.c
@@ -544,15 +544,15 @@ ohci_hub_descriptor (
544 temp = 1 + (ohci->num_ports / 8); 544 temp = 1 + (ohci->num_ports / 8);
545 desc->bDescLength = 7 + 2 * temp; 545 desc->bDescLength = 7 + 2 * temp;
546 546
547 temp = 0; 547 temp = HUB_CHAR_COMMON_LPSM | HUB_CHAR_COMMON_OCPM;
548 if (rh & RH_A_NPS) /* no power switching? */ 548 if (rh & RH_A_NPS) /* no power switching? */
549 temp |= 0x0002; 549 temp |= HUB_CHAR_NO_LPSM;
550 if (rh & RH_A_PSM) /* per-port power switching? */ 550 if (rh & RH_A_PSM) /* per-port power switching? */
551 temp |= 0x0001; 551 temp |= HUB_CHAR_INDV_PORT_LPSM;
552 if (rh & RH_A_NOCP) /* no overcurrent reporting? */ 552 if (rh & RH_A_NOCP) /* no overcurrent reporting? */
553 temp |= 0x0010; 553 temp |= HUB_CHAR_NO_OCPM;
554 else if (rh & RH_A_OCPM) /* per-port overcurrent reporting? */ 554 else if (rh & RH_A_OCPM) /* per-port overcurrent reporting? */
555 temp |= 0x0008; 555 temp |= HUB_CHAR_INDV_PORT_OCPM;
556 desc->wHubCharacteristics = cpu_to_le16(temp); 556 desc->wHubCharacteristics = cpu_to_le16(temp);
557 557
558 /* ports removable, and usb 1.0 legacy PortPwrCtrlMask */ 558 /* ports removable, and usb 1.0 legacy PortPwrCtrlMask */