commit | 83436d50f08734321b797cee1ddb48e66d2bebed | [log] [tgz] |
---|---|---|
author | Bin Meng <bmeng.cn@gmail.com> | Sun Oct 01 06:19:41 2017 -0700 |
committer | Marek Vasut <marex@denx.de> | Sun Oct 01 16:32:51 2017 +0200 |
tree | b8d33ade945124b6103870167bec63efa1f73b56 | |
parent | 3b36376ac3e2f1e5eb570ce6d8d78c198b427815 [diff] |
usb: emul: hub: Report the actual device speed of the emulation device At present the usb hub emulator always reports its downstream port speed as full speed. Actually it is high speed for sandbox-flash, and low speed for sandbox-keyb. We can determine the device speed by checking its device descriptor bcdUSB field, and do the proper hub port status report based on that. Signed-off-by: Bin Meng <bmeng.cn@gmail.com>