Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 235291
b: refs/heads/master
c: 553fbcd
h: refs/heads/master
i:
  235289: 4d54148
  235287: c161e07
v: v3
  • Loading branch information
Jassi Brar authored and Greg Kroah-Hartman committed Feb 4, 2011
1 parent bb18e06 commit 9f201a0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7af75af2424c3a866041e7981d91f01f93235533
refs/heads/master: 553fbcde3481c98a076c9744a59ad08dbc61c099
7 changes: 7 additions & 0 deletions trunk/drivers/usb/gadget/epautoconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,13 @@ ep_matches (
}
}

/*
* If the protocol driver hasn't yet decided on wMaxPacketSize
* and wants to know the maximum possible, provide the info.
*/
if (desc->wMaxPacketSize == 0)
desc->wMaxPacketSize = cpu_to_le16(ep->maxpacket);

/* endpoint maxpacket size is an input parameter, except for bulk
* where it's an output parameter representing the full speed limit.
* the usb spec fixes high speed bulk maxpacket at 512 bytes.
Expand Down

0 comments on commit 9f201a0

Please sign in to comment.