Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 25750
b: refs/heads/master
c: e1394b4
h: refs/heads/master
v: v3
  • Loading branch information
David Brownell authored and Greg Kroah-Hartman committed Apr 14, 2006
1 parent 5c9622f commit 8a6dd94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 8b5249019352eecd49fb00004d583904e891e7b1
refs/heads/master: e1394b49ee70bd8686acaf969e4d61b57da1c263
6 changes: 3 additions & 3 deletions trunk/drivers/usb/gadget/ether.c
Original file line number Diff line number Diff line change
Expand Up @@ -2338,6 +2338,9 @@ eth_bind (struct usb_gadget *gadget)
hs_subset_descriptors();
}

device_desc.bMaxPacketSize0 = gadget->ep0->maxpacket;
usb_gadget_set_selfpowered (gadget);

/* For now RNDIS is always a second config */
if (rndis)
device_desc.bNumConfigurations = 2;
Expand All @@ -2361,9 +2364,6 @@ eth_bind (struct usb_gadget *gadget)
#endif
#endif /* DUALSPEED */

device_desc.bMaxPacketSize0 = gadget->ep0->maxpacket;
usb_gadget_set_selfpowered (gadget);

if (gadget->is_otg) {
otg_descriptor.bmAttributes |= USB_OTG_HNP,
eth_config.bmAttributes |= USB_CONFIG_ATT_WAKEUP;
Expand Down

0 comments on commit 8a6dd94

Please sign in to comment.