usb: gadget: aspeed: fixup usb1 device descriptor at init time
authorTao Ren <rentao.bupt@gmail.com>
Sun, 15 Mar 2020 19:16:31 +0000 (12:16 -0700)
committerFelipe Balbi <balbi@kernel.org>
Tue, 5 May 2020 07:58:52 +0000 (10:58 +0300)
commit91786aa08750f80eb0db6986951b38094ea258ac
treeaa461a923a7730bf02246895cd95b28e729c1bb8
parent2e596d8843d7f3151fecf3267d1754a88d7454d7
usb: gadget: aspeed: fixup usb1 device descriptor at init time

This patch moves patch-usb1-dev-desc logic from get-descriptor handler
to "ast_vhub_fixup_usb1_dev_desc" function so the code is executed only
once (at vhub initial time).

Signed-off-by: Tao Ren <rentao.bupt@gmail.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/gadget/udc/aspeed-vhub/hub.c