mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 01:04:19 +08:00
292d2c82b1
Under dummy_hcd, every available endpoint is *either* IN or OUT capable.
But with some real hardware, there are endpoints that support both IN and
OUT. In particular, the PLX 2380 has four available endpoints that each
support both IN and OUT.
raw-gadget currently gets confused and thinks that any endpoint that is
usable as an IN endpoint can never be used as an OUT endpoint.
Fix it by looking at the direction in the configured endpoint descriptor
instead of looking at the hardware capabilities.
With this change, I can use the PLX 2380 with raw-gadget.
Fixes:
|
||
---|---|---|
.. | ||
acm_ms.c | ||
audio.c | ||
cdc2.c | ||
dbgp.c | ||
ether.c | ||
g_ffs.c | ||
gmidi.c | ||
hid.c | ||
inode.c | ||
Kconfig | ||
Makefile | ||
mass_storage.c | ||
multi.c | ||
ncm.c | ||
nokia.c | ||
printer.c | ||
raw_gadget.c | ||
serial.c | ||
tcm_usb_gadget.c | ||
webcam.c | ||
zero.c |