]> git.sur5r.net Git - u-boot/commit
usb: xhci: Fix max packet size for full speed device endpoint 0
authorBin Meng <bmeng.cn@gmail.com>
Mon, 18 Sep 2017 13:40:44 +0000 (06:40 -0700)
committerMarek Vasut <marex@denx.de>
Sun, 1 Oct 2017 14:32:54 +0000 (16:32 +0200)
commitb5aa857b95194c15126245e99a384ec2fd9536e8
tree48285d287ac24c6fad44c14e0fad1c94287e0f6c
parent932bb668bb2464115f2d08abbed44e58cfce9536
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>
drivers/usb/host/xhci.c