Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 259239
b: refs/heads/master
c: 99fd140
h: refs/heads/master
i:
  259237: a685f65
  259235: a3a3cc9
  259231: 52e1d28
v: v3
  • Loading branch information
Sebastian Andrzej Siewior authored and Greg Kroah-Hartman committed Jul 1, 2011
1 parent d22c5cd commit ffa00c0
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 2542787430fc46b4e07e0da4c6ec80ed230032e5
refs/heads/master: 99fd14080e7f0a65b87830bf5062b09f6e80dd13
15 changes: 8 additions & 7 deletions trunk/drivers/usb/gadget/dummy_hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -929,6 +929,14 @@ static int dummy_udc_start(struct usb_gadget_driver *driver,
dum->ep[0].ep.maxpacket = 9;
} else
dum->ep[0].ep.maxpacket = 64;

if (dum->gadget.speed == USB_SPEED_SUPER)
dum->gadget.is_otg =
(dummy_hcd_to_hcd(dum->ss_hcd)->self.otg_port != 0);
else
dum->gadget.is_otg =
(dummy_hcd_to_hcd(dum->hs_hcd)->self.otg_port != 0);

list_del_init (&dum->ep [0].ep.ep_list);
INIT_LIST_HEAD(&dum->fifo_req.queue);

Expand All @@ -944,13 +952,6 @@ static int dummy_udc_start(struct usb_gadget_driver *driver,
return retval;
}

if (dum->gadget.speed == USB_SPEED_SUPER)
dum->gadget.is_otg =
(dummy_hcd_to_hcd(dum->ss_hcd)->self.otg_port != 0);
else
dum->gadget.is_otg =
(dummy_hcd_to_hcd(dum->hs_hcd)->self.otg_port != 0);

/* khubd will enumerate this in a while */
dummy_pullup(&dum->gadget, 1);
return 0;
Expand Down

0 comments on commit ffa00c0

Please sign in to comment.