]> git.baikalelectronics.ru Git - uboot.git/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)
commitd04502068884a207c005a1ce51127c875b52f478
tree48285d287ac24c6fad44c14e0fad1c94287e0f6c
parent1bedb2f55a5094cd4ed58cfe1dad6b992a642891
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