aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/fhci-hub.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/host/fhci-hub.c')
-rw-r--r--drivers/usb/host/fhci-hub.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/usb/host/fhci-hub.c b/drivers/usb/host/fhci-hub.c
index 6af2512f8378..70116a65262c 100644
--- a/drivers/usb/host/fhci-hub.c
+++ b/drivers/usb/host/fhci-hub.c
@@ -32,8 +32,8 @@ static u8 root_hub_des[] = {
32 0x09, /* blength */ 32 0x09, /* blength */
33 0x29, /* bDescriptorType;hub-descriptor */ 33 0x29, /* bDescriptorType;hub-descriptor */
34 0x01, /* bNbrPorts */ 34 0x01, /* bNbrPorts */
35 0x00, /* wHubCharacteristics */ 35 HUB_CHAR_INDV_PORT_LPSM | HUB_CHAR_NO_OCPM, /* wHubCharacteristics */
36 0x00, 36 0x00, /* per-port power, no overcurrent */
37 0x01, /* bPwrOn2pwrGood;2ms */ 37 0x01, /* bPwrOn2pwrGood;2ms */
38 0x00, /* bHubContrCurrent;0mA */ 38 0x00, /* bHubContrCurrent;0mA */
39 0x00, /* DeviceRemoveable */ 39 0x00, /* DeviceRemoveable */
@@ -208,7 +208,6 @@ int fhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
208{ 208{
209 struct fhci_hcd *fhci = hcd_to_fhci(hcd); 209 struct fhci_hcd *fhci = hcd_to_fhci(hcd);
210 int retval = 0; 210 int retval = 0;
211 int len = 0;
212 struct usb_hub_status *hub_status; 211 struct usb_hub_status *hub_status;
213 struct usb_port_status *port_status; 212 struct usb_port_status *port_status;
214 unsigned long flags; 213 unsigned long flags;
@@ -272,8 +271,6 @@ int fhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
272 break; 271 break;
273 case GetHubDescriptor: 272 case GetHubDescriptor:
274 memcpy(buf, root_hub_des, sizeof(root_hub_des)); 273 memcpy(buf, root_hub_des, sizeof(root_hub_des));
275 buf[3] = 0x11; /* per-port power, no ovrcrnt */
276 len = (buf[0] < wLength) ? buf[0] : wLength;
277 break; 274 break;
278 case GetHubStatus: 275 case GetHubStatus:
279 hub_status = (struct usb_hub_status *)buf; 276 hub_status = (struct usb_hub_status *)buf;
@@ -281,7 +278,6 @@ int fhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
281 cpu_to_le16(fhci->vroot_hub->hub.wHubStatus); 278 cpu_to_le16(fhci->vroot_hub->hub.wHubStatus);
282 hub_status->wHubChange = 279 hub_status->wHubChange =
283 cpu_to_le16(fhci->vroot_hub->hub.wHubChange); 280 cpu_to_le16(fhci->vroot_hub->hub.wHubChange);
284 len = 4;
285 break; 281 break;
286 case GetPortStatus: 282 case GetPortStatus:
287 port_status = (struct usb_port_status *)buf; 283 port_status = (struct usb_port_status *)buf;
@@ -289,7 +285,6 @@ int fhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
289 cpu_to_le16(fhci->vroot_hub->port.wPortStatus); 285 cpu_to_le16(fhci->vroot_hub->port.wPortStatus);
290 port_status->wPortChange = 286 port_status->wPortChange =
291 cpu_to_le16(fhci->vroot_hub->port.wPortChange); 287 cpu_to_le16(fhci->vroot_hub->port.wPortChange);
292 len = 4;
293 break; 288 break;
294 case SetHubFeature: 289 case SetHubFeature:
295 switch (wValue) { 290 switch (wValue) {