]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: composite: force gadget to be USB2 for HS only function
authorLi Jun <jun.li@nxp.com>
Mon, 25 Jan 2021 13:43:57 +0000 (21:43 +0800)
committerMarek Vasut <marex@denx.de>
Sun, 31 Jan 2021 13:08:56 +0000 (14:08 +0100)
commit4df50f89f5769732c6cce67f956371140680ff5d
treec645ea93c2e28160342afe95e5bf90079f63a267
parent429e2f299f3a978cf248c3597f60308c5d636ad8
usb: composite: force gadget to be USB2 for HS only function

If one of functions is not super speed capable, we need force the udc
to be high speed, this is an equivalent implementation of
usb_gadget_udc_set_speed() in kernel but simple, which set the gadget
max_speed to be high speed, so afterwards when start gadget duc can
set the HW to be USB 2.0 mode.

Reviewed-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peter Chen <peter.chen@nxp.com>
Tested-by: faqiang.zhu <faqiang.zhu@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/usb/gadget/composite.c