mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-06 05:04:26 +00:00
a764c94128
This is a proting patch from linux kernel: 37a3a533429e ("usb: gadget: OS Feature Descriptors support"), the original commit log see below: There is a custom (non-USB IF) extension to the USB standard: http://msdn.microsoft.com/library/windows/hardware/gg463182 They grant permission to use the specification - there is "Microsoft OS Descriptor Specification License Agreement" under the link mentioned above, and its Section 2 "Grant of License", letter (b) reads: "Patent license. Microsoft hereby grants to You a nonexclusive, royalty-free, nontransferable, worldwide license under Microsoft鈥檚 patents embodied solely within the Specification and that are owned or licensable by Microsoft to make, use, import, offer to sell, sell and distribute directly or indirectly to Your Licensees Your Implementation. You may sublicense this patent license to Your Licensees under the same terms and conditions." The said extension is maintained by Microsoft for Microsoft. Yet it is fairly common for various devices to use it, and a popular proprietary operating system expects devices to provide "OS descriptors", so Linux-based USB gadgets whishing to be able to talk to a variety of operating systems should be able to provide the "OS descriptors". This patch adds optional support for gadgets whishing to expose the so called "OS Feature Descriptors", that is "Extended Compatibility ID" and "Extended Properties". Hosts which do request "OS descriptors" from gadgets do so during the enumeration phase and before the configuration is set with SET_CONFIGURATION. What is more, those hosts never ask for configurations at indices other than 0. Therefore, gadgets whishing to provide "OS descriptors" must designate one configuration to be used with this kind of hosts - this is what os_desc_config is added for in struct usb_composite_dev. There is an additional advantage to it: if a gadget provides "OS descriptors" and designates one configuration to be used with such non-USB-compliant hosts it can invoke "usb_add_config" in any order because the designated configuration will be reported to be at index 0 anyway. This patch also adds handling vendor-specific requests addressed at device or interface and related to handling "OS descriptors"." Signed-off-by: Li Jun <jun.li@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com> |
||
---|---|---|
.. | ||
udc | ||
at91_udc.c | ||
at91_udc.h | ||
atmel_usba_udc.c | ||
atmel_usba_udc.h | ||
bcm_udc_otg.h | ||
bcm_udc_otg_phy.c | ||
ci_udc.c | ||
ci_udc.h | ||
composite.c | ||
config.c | ||
core.c | ||
designware_udc.c | ||
dwc2_udc_otg.c | ||
dwc2_udc_otg_phy.c | ||
dwc2_udc_otg_priv.h | ||
dwc2_udc_otg_regs.h | ||
dwc2_udc_otg_xfer_dma.c | ||
ep0.c | ||
ep0.h | ||
epautoconf.c | ||
ether.c | ||
f_dfu.c | ||
f_dfu.h | ||
f_fastboot.c | ||
f_mass_storage.c | ||
f_rockusb.c | ||
f_sdp.c | ||
f_thor.c | ||
f_thor.h | ||
fotg210.c | ||
g_dnl.c | ||
gadget_chips.h | ||
Kconfig | ||
Makefile | ||
max3420_udc.c | ||
ndis.h | ||
pxa25x_udc.c | ||
pxa25x_udc.h | ||
pxa27x_udc.c | ||
rndis.c | ||
rndis.h | ||
storage_common.c | ||
u_os_desc.h | ||
usbstring.c |