2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-04 11:43:54 +08:00
linux-next/include/linux/usb
Andrzej Pietrasiewicz f563d23090 usb: gadget: composite: add req_match method to usb_function
Non-standard requests can encode the actual interface number in a
non-standard way. For example composite_setup() assumes
that it is w_index && 0xFF, but the printer function encodes the interface
number in a context-dependet way (either w_index or w_index >> 8).
This can lead to such requests being directed to wrong functions.

This patch adds req_match() method to usb_function. Its purpose is to
verify that a given request can be handled by a given function.
If any function within a configuration provides the method and it returns
true, then it is assumed that the right function is found.

If a function uses req_match(), it should try as hard as possible to
determine if the request is meant for it.

If no functions in a configuration provide req_match or none of them
returns true, then fall back to the usual approach.

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2015-03-10 15:33:39 -05:00
..
association.h
atmel_usba_udc.h
audio-v2.h
audio.h
c67x00.h
cdc_ncm.h
cdc-wdm.h
ch9.h
chipidea.h usb: chipidea: remove flag CI_HDRC_REQUIRE_TRANSCEIVER 2014-11-26 09:28:12 -08:00
composite.h usb: gadget: composite: add req_match method to usb_function 2015-03-10 15:33:39 -05:00
ehci_def.h usb: Create separate header for ehci-dbgp 2014-11-07 09:02:37 -08:00
ehci_pdriver.h USB: host: Introduce flag to enable use of 64-bit dma_mask for ehci-platform 2015-01-25 20:48:28 +08:00
ehci-dbgp.h usb: Remove __init from early_dbgp_init() prototype 2014-11-07 09:02:38 -08:00
ezusb.h
functionfs.h
g_hid.h
gadget_configfs.h
gadget.h usb: gadget: introduce is_selfpowered for usb_gadget 2015-01-29 10:32:21 -06:00
gpio_vbus.h
hcd.h USB: add flag for HCDs that can't receive wakeup requests (isp1760-hcd) 2015-01-31 09:05:06 -08:00
input.h
iowarrior.h
irda.h
isp116x.h
isp1301.h
isp1362.h
isp1760.h
m66592.h
msm_hsusb_hw.h
msm_hsusb.h
musb-omap.h
musb-ux500.h
musb.h
net2280.h
of.h usb: common: add API to get if the platform supports TPL 2014-09-23 21:28:41 -07:00
ohci_pdriver.h
otg-fsm.h
otg.h usb: add support to the generic PHY framework in OTG 2014-11-03 10:01:25 -06:00
phy_companion.h
phy.h usb: phy: change some comments 2015-01-12 12:13:28 -06:00
quirks.h USB: quirks.h: use BIT() 2014-09-23 22:23:55 -07:00
r8a66597.h
renesas_usbhs.h usb: renesas_usbhs: expand USB-DMAC channels for R-Car Gen2 2014-11-12 09:11:31 -06:00
rndis_host.h
samsung_usb_phy.h
serial.h Revert "USB: serial: make bulk_out_size a lower limit" 2015-02-26 17:02:15 +01:00
sl811.h
storage.h
tegra_usb_phy.h
tilegx.h
uas.h
ulpi.h
usb338x.h
usb_phy_generic.h usb: phy: generic: add vbus support 2015-01-12 12:13:29 -06:00
usbnet.h usbnet: add a callback for set_rx_mode 2014-10-28 17:26:19 -04:00
wusb-wa.h
wusb.h
xhci_pdriver.h xhci: Platform: Set xhci lpm support quirk based on platform data 2014-07-09 15:41:34 -07:00