]> git.sur5r.net Git - u-boot/commit
usb: Only get 64 bytes device descriptor for full speed devices
authorBin Meng <bmeng.cn@gmail.com>
Mon, 18 Sep 2017 13:40:42 +0000 (06:40 -0700)
committerMarek Vasut <marex@denx.de>
Sun, 1 Oct 2017 14:32:53 +0000 (16:32 +0200)
commitc008faa77358bb5b313696dd1d5bb8afa03a6ca2
tree62efde4e77541998271467d6448a29781de6ff6f
parent1897d60130976ece389d5875187b78ba0d41428f
usb: Only get 64 bytes device descriptor for full speed devices

Full speed device endpoint 0 can have 8/16/32/64 bMaxPacketSize0.
Other speed devices report fixed value per USB spec. So it only
makes sense if we send a get device descriptor with 64 bytes to
full speed devices.

While we are here, update the comment block to be within 80 cols.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
common/usb.c