Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 151432
b: refs/heads/master
c: 7dd19e6
h: refs/heads/master
v: v3
  • Loading branch information
Viral Mehta authored and Greg Kroah-Hartman committed Jun 16, 2009
1 parent f201f2d commit 0003096
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 527c6d7f188f116852141f50b4d008f966bb17f8
refs/heads/master: 7dd19e69d131ea34f74397559b422511e54d2911
25 changes: 18 additions & 7 deletions trunk/drivers/usb/core/hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -488,28 +488,39 @@ static int rh_call_control (struct usb_hcd *hcd, struct urb *urb)
case DeviceRequest | USB_REQ_GET_DESCRIPTOR:
switch (wValue & 0xff00) {
case USB_DT_DEVICE << 8:
if (hcd->driver->flags & HCD_USB3)
switch (hcd->driver->flags & HCD_MASK) {
case HCD_USB3:
bufp = usb3_rh_dev_descriptor;
else if (hcd->driver->flags & HCD_USB2)
break;
case HCD_USB2:
bufp = usb2_rh_dev_descriptor;
else if (hcd->driver->flags & HCD_USB11)
break;
case HCD_USB11:
bufp = usb11_rh_dev_descriptor;
else
break;
default:
goto error;
}
len = 18;
if (hcd->has_tt)
patch_protocol = 1;
break;
case USB_DT_CONFIG << 8:
if (hcd->driver->flags & HCD_USB3) {
switch (hcd->driver->flags & HCD_MASK) {
case HCD_USB3:
bufp = ss_rh_config_descriptor;
len = sizeof ss_rh_config_descriptor;
} else if (hcd->driver->flags & HCD_USB2) {
break;
case HCD_USB2:
bufp = hs_rh_config_descriptor;
len = sizeof hs_rh_config_descriptor;
} else {
break;
case HCD_USB11:
bufp = fs_rh_config_descriptor;
len = sizeof fs_rh_config_descriptor;
break;
default:
goto error;
}
if (device_can_wakeup(&hcd->self.root_hub->dev))
patch_wakeup = 1;
Expand Down

0 comments on commit 0003096

Please sign in to comment.