linux_dsm_epyc7002/drivers/usb/gadget/function
Felipe Balbi 3985f3ab08 usb: gadget: function: f_obex: fix Interface Descriptor Test
On USB20CV's Interface Descriptor Test, a series
of SetInterface/GetInterface requests are issued
and gadget driver is required to always return
correct alternate setting.

In one step of the test, g_serial with f_obex
was returning the wrong value (1 instead of 0).

In order to fix this, we will now hold currently
selected alternate setting inside our struct f_obex
and just return that from our ->get_alt()
implementation.

Note that his also simplifies the code a bit.

Signed-off-by: Felipe Balbi <balbi@ti.com>
2014-10-20 15:58:49 -05:00
..
f_acm.c usb: gadget: function: acm: make f_acm pass USB20CV Chapter9 2014-10-20 15:58:48 -05:00
f_ecm.c
f_eem.c
f_fs.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2014-10-13 11:28:42 +02:00
f_hid.c
f_loopback.c usb: gadget: zero: Add support for interrupt EP 2014-08-27 14:13:18 -05:00
f_mass_storage.c usb: gadget: f_mass_storage: simplify start_transfer slightly 2014-09-02 09:16:47 -05:00
f_mass_storage.h
f_midi.c
f_ncm.c f_ncm: Don't use netdev_start_xmit(). 2014-08-27 17:05:53 -07:00
f_obex.c usb: gadget: function: f_obex: fix Interface Descriptor Test 2014-10-20 15:58:49 -05:00
f_phonet.c
f_rndis.c
f_serial.c usb: gadget: serial: replace {V,}DBG macro with dev_{v,}dbg 2014-08-27 14:13:17 -05:00
f_sourcesink.c usb: gadget: zero: Fix warning generated by kbuild 2014-09-09 09:46:58 -05:00
f_subset.c
f_uac1.c usb: gadget: f_uac1: add configfs support 2014-08-20 14:05:21 -05:00
f_uac2.c usb: gadget: function: uac2: add a release method 2014-10-20 15:58:49 -05:00
f_uvc.c usb: gadget: function: uvc: disable endpoints on ->disable() 2014-10-20 15:58:48 -05:00
f_uvc.h usb: gadget: f_uvc: remove compatibility layer 2014-09-09 09:49:41 -05:00
g_zero.h usb: gadget: zero: Add support for interrupt EP 2014-08-27 14:13:18 -05:00
Makefile usb: gadget: f_uvc: convert f_uvc to new function interface 2014-09-09 09:49:16 -05:00
ndis.h
rndis.c
rndis.h
storage_common.c
storage_common.h
u_ecm.h
u_eem.h
u_ether_configfs.h
u_ether.c
u_ether.h
u_fs.h usb: gadget: f_fs: virtual endpoint address mapping 2014-09-16 09:58:21 -05:00
u_gether.h
u_ncm.h
u_phonet.h
u_rndis.h
u_serial.c usb: gadget: serial: remove PREFIX macro 2014-08-27 14:13:18 -05:00
u_serial.h
u_uac1.c usb: gadget: f_uac1: remove compatibility layer 2014-08-20 14:05:05 -05:00
u_uac1.h usb: gadget: f_uac1: add configfs support 2014-08-20 14:05:21 -05:00
u_uac2.h usb: gadget: f_uac2: add configfs support 2014-08-20 14:04:42 -05:00
u_uvc.h usb: gadget: f_uvc: convert f_uvc to new function interface 2014-09-09 09:49:16 -05:00
uvc_queue.c usb: gadget: uvc: separately compile some components of f_uvc 2014-09-09 09:49:12 -05:00
uvc_queue.h usb: gadget: uvc: separately compile some components of f_uvc 2014-09-09 09:49:12 -05:00
uvc_v4l2.c usb: gadget: uvc: fix up uvcg_v4l2_get_unmapped_area typo 2014-09-29 11:51:54 -04:00
uvc_v4l2.h usb: gadget: uvc: separately compile some components of f_uvc 2014-09-09 09:49:12 -05:00
uvc_video.c usb: gadget: function: uvc: conditionally dequeue 2014-10-20 15:58:48 -05:00
uvc_video.h usb: gadget: uvc: separately compile some components of f_uvc 2014-09-09 09:49:12 -05:00
uvc.h usb: gadget: uvc: separately compile some components of f_uvc 2014-09-09 09:49:12 -05:00