diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2017-09-18 06:40:44 -0700 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2017-10-01 16:32:54 +0200 |
commit | b5aa857b95194c15126245e99a384ec2fd9536e8 (patch) | |
tree | 48285d287ac24c6fad44c14e0fad1c94287e0f6c /drivers/usb/dwc3/gadget.c | |
parent | 932bb668bb2464115f2d08abbed44e58cfce9536 (diff) |
usb: xhci: Fix max packet size for full speed device endpoint 0
In xhci_check_maxpacket(), the control endpoint 0 max packet size
is wrongly taken from the interface's endpoint descriptor. However
the default endpoint 0 does not come with an endpoint descriptor
hence is not included in the interface structure. Change to use
epmaxpacketin[0] instead.
The other bug in this routine is that when setting max packet size
to the xHC endpoint 0 context, it does not clear its previous value
at all before programming a new one.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers/usb/dwc3/gadget.c')
0 files changed, 0 insertions, 0 deletions