OpenCloudOS-Kernel/drivers/usb/gadget/function
Robert Baldyga 6d5c1c77bb usb: gadget: f_fs: fix the redundant ep files problem
Up to now, when endpoint addresses in descriptors were non-consecutive,
there were created redundant files, which could cause problems in kernel,
when user tried to read/write to them. It was result of fact that maximum
endpoint address was taken as total number of endpoints in function.

This patch adds endpoint descriptors counting and storing their addresses
in eps_addrmap to verify their cohesion in each speed.

Endpoint address map would be also useful for further features, just like
vitual endpoint address mapping.

Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2014-09-03 09:15:59 -05:00
..
Makefile usb: gadget: remove $(PWD) in ccflags-y 2014-08-20 11:16:02 -05:00
f_acm.c
f_ecm.c
f_eem.c
f_fs.c usb: gadget: f_fs: fix the redundant ep files problem 2014-09-03 09:15:59 -05:00
f_hid.c
f_loopback.c
f_mass_storage.c
f_mass_storage.h
f_midi.c
f_ncm.c
f_obex.c
f_phonet.c
f_rndis.c
f_serial.c
f_sourcesink.c
f_subset.c
f_uac1.c
f_uac2.c
f_uvc.c
f_uvc.h
g_zero.h
ndis.h
rndis.c
rndis.h
storage_common.c
storage_common.h
u_ecm.h
u_eem.h
u_ether.c
u_ether.h
u_ether_configfs.h
u_fs.h usb: gadget: f_fs: fix the redundant ep files problem 2014-09-03 09:15:59 -05:00
u_gether.h
u_ncm.h
u_phonet.h
u_rndis.h
u_serial.c
u_serial.h
u_uac1.c
u_uac1.h
uvc.h
uvc_queue.c
uvc_queue.h
uvc_v4l2.c
uvc_video.c usb: gadget: uvc: fix possible lockup in uvc gadget 2014-08-19 14:34:18 -05:00