thor: fix invalid larger device descriptor than requested accepted/tizen_5.5_unified accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5 tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20200410.123153 accepted/tizen/5.5/unified/wearable/hotfix/20201027.094823 submit/tizen_5.5/20200410.050832 submit/tizen_5.5_wearable_hotfix/20201026.184309
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 9 Apr 2020 11:09:35 +0000 (20:09 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 10 Apr 2020 05:08:14 +0000 (14:08 +0900)
commit0374d2ab973bb22b6d3926fbfb2bc0e509518b93
tree83fd8dcd9be384a90b24456ef9a9e73584517afd
parent3f98b0827c777c7e00493d75df1bbbef233e2dab
thor: fix invalid larger device descriptor than requested

New Linux kernel xhci hub uses new usb descriptor scheme first for
high speed usb peripheral device and it requests 8 bytes usb device
descriptor and then 18 bytes full usb device descriptor but thor
cdc-acm gadget always sends 18 bytes full usb device descriptor,
so thor download mode is failed to recognize for linux host with
new scheme. Fix the invalid larger device descriptor than
requested by sending only requested bytes.

Change-Id: I9ada9831a9667512f372d3a93d196fa8788f11b5
Ref: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=48fc7dbd52c0559647291f33a10ccdc6cdbe4c72
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
property/usb/drv_cdc.c