author | Ruchika Kharwar <ruchika@ti.com> | |
Mon, 8 Jul 2013 15:49:44 +0000 (10:49 -0500) | ||
committer | Praneeth Bajjuri <praneeth@ti.com> | |
Fri, 19 Jul 2013 18:03:12 +0000 (13:03 -0500) | ||
commit | 8f143b8af4c92639e606dec8718a039ef1524316 | |
tree | 65731da28e5c7dfb26aa40b30cd70ee22b137487 | tree | snapshot (tar.xz tar.gz zip) |
parent | fec97030fa9b15d9eec7f5a8a3f33c3b39871117 | commit | diff |
usb: dwc3: update the maxpacket based on the maximum_speed
During initialization of endpoints, the maximum_speed is used
to determine the maxpacket size of the control endpoint.
For non control endpoints it appears alright to set the maxpacketsize to
be 1024 for the controller, but the function dwc3_gadget_get_maxpacket() is
introduced merely for consistency.
Change-Id: Iececaa685f1dd1901d254bbdf8d83c517bab8c72
Signed-off-by: Ruchika Kharwar <ruchika@ti.com>
During initialization of endpoints, the maximum_speed is used
to determine the maxpacket size of the control endpoint.
For non control endpoints it appears alright to set the maxpacketsize to
be 1024 for the controller, but the function dwc3_gadget_get_maxpacket() is
introduced merely for consistency.
Change-Id: Iececaa685f1dd1901d254bbdf8d83c517bab8c72
Signed-off-by: Ruchika Kharwar <ruchika@ti.com>
drivers/usb/dwc3/gadget.c | diff | blob | history |