Skip to content
Snippets Groups Projects
Commit b5aa857b authored by Bin Meng's avatar Bin Meng Committed by Marek Vasut
Browse files

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: default avatarBin Meng <bmeng.cn@gmail.com>
parent 932bb668
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment