mirror of
https://github.com/torvalds/linux.git
synced 2024-12-04 18:13:04 +00:00
ed9cbda63d
The bcdDevice field is defined as |Device release number in binary-coded decimal in the USB 2.0 specification. We use this field to distinguish the UDCs from each other. In theory this could be used on the host side to apply certain quirks if the "special" UDC in combination with this gadget is used. This hasn't been done as far as I am aware. In practice it would be better to fix the UDC driver before shipping since a later release might not need this quirk anymore. There are some driver in tree (on the host side) which use the bcdDevice field to figure out special workarounds for a given firmware revision. This seems to make sense. Therefore this patch converts all gadgets (except a few) to use the kernel version instead a random 2 or 3 plus the UDC number. The few that don't report kernel's version are: - webcam This one reports always a version 0x10 so allow it to do so in future. - nokia This one reports always 0x211. The comment says that this gadget works only if the UDC supports altsettings so I added a check for this. - serial This one reports 0x2400 + UDC number. Since the gadget version is 2.4 this could make sense. Therefore bcdDevice is 0x2400 here. I also remove various gadget_is_<name> macros which are unused. The remaining few macros should be moved to feature / bug bitfield. Acked-by: Michal Nazarewicz <mina86@mina86.com> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Felipe Balbi <balbi@ti.com>
79 lines
2.6 KiB
Makefile
79 lines
2.6 KiB
Makefile
#
|
|
# USB peripheral controller drivers
|
|
#
|
|
ccflags-$(CONFIG_USB_GADGET_DEBUG) := -DDEBUG
|
|
|
|
obj-$(CONFIG_USB_GADGET) += udc-core.o
|
|
obj-$(CONFIG_USB_LIBCOMPOSITE) += libcomposite.o
|
|
libcomposite-y := usbstring.o config.o epautoconf.o
|
|
libcomposite-y += composite.o
|
|
obj-$(CONFIG_USB_DUMMY_HCD) += dummy_hcd.o
|
|
obj-$(CONFIG_USB_NET2272) += net2272.o
|
|
obj-$(CONFIG_USB_NET2280) += net2280.o
|
|
obj-$(CONFIG_USB_AMD5536UDC) += amd5536udc.o
|
|
obj-$(CONFIG_USB_PXA25X) += pxa25x_udc.o
|
|
obj-$(CONFIG_USB_PXA27X) += pxa27x_udc.o
|
|
obj-$(CONFIG_USB_IMX) += imx_udc.o
|
|
obj-$(CONFIG_USB_GOKU) += goku_udc.o
|
|
obj-$(CONFIG_USB_OMAP) += omap_udc.o
|
|
obj-$(CONFIG_USB_S3C2410) += s3c2410_udc.o
|
|
obj-$(CONFIG_USB_AT91) += at91_udc.o
|
|
obj-$(CONFIG_USB_ATMEL_USBA) += atmel_usba_udc.o
|
|
obj-$(CONFIG_USB_BCM63XX_UDC) += bcm63xx_udc.o
|
|
obj-$(CONFIG_USB_FSL_USB2) += fsl_usb2_udc.o
|
|
fsl_usb2_udc-y := fsl_udc_core.o
|
|
fsl_usb2_udc-$(CONFIG_ARCH_MXC) += fsl_mxc_udc.o
|
|
obj-$(CONFIG_USB_M66592) += m66592-udc.o
|
|
obj-$(CONFIG_USB_R8A66597) += r8a66597-udc.o
|
|
obj-$(CONFIG_USB_FSL_QE) += fsl_qe_udc.o
|
|
obj-$(CONFIG_USB_S3C_HSOTG) += s3c-hsotg.o
|
|
obj-$(CONFIG_USB_S3C_HSUDC) += s3c-hsudc.o
|
|
obj-$(CONFIG_USB_LPC32XX) += lpc32xx_udc.o
|
|
obj-$(CONFIG_USB_EG20T) += pch_udc.o
|
|
obj-$(CONFIG_USB_MV_UDC) += mv_udc.o
|
|
mv_udc-y := mv_udc_core.o
|
|
obj-$(CONFIG_USB_FUSB300) += fusb300_udc.o
|
|
obj-$(CONFIG_USB_MV_U3D) += mv_u3d_core.o
|
|
|
|
#
|
|
# USB gadget drivers
|
|
#
|
|
g_zero-y := zero.o
|
|
g_audio-y := audio.o
|
|
g_ether-y := ether.o
|
|
g_serial-y := serial.o
|
|
g_midi-y := gmidi.o
|
|
gadgetfs-y := inode.o
|
|
g_file_storage-y := file_storage.o
|
|
g_mass_storage-y := mass_storage.o
|
|
g_printer-y := printer.o
|
|
g_cdc-y := cdc2.o
|
|
g_multi-y := multi.o
|
|
g_hid-y := hid.o
|
|
g_dbgp-y := dbgp.o
|
|
g_nokia-y := nokia.o
|
|
g_webcam-y := webcam.o
|
|
g_ncm-y := ncm.o
|
|
g_acm_ms-y := acm_ms.o
|
|
g_tcm_usb_gadget-y := tcm_usb_gadget.o
|
|
|
|
obj-$(CONFIG_USB_ZERO) += g_zero.o
|
|
obj-$(CONFIG_USB_AUDIO) += g_audio.o
|
|
obj-$(CONFIG_USB_ETH) += g_ether.o
|
|
obj-$(CONFIG_USB_GADGETFS) += gadgetfs.o
|
|
obj-$(CONFIG_USB_FUNCTIONFS) += g_ffs.o
|
|
obj-$(CONFIG_USB_FILE_STORAGE) += g_file_storage.o
|
|
obj-$(CONFIG_USB_MASS_STORAGE) += g_mass_storage.o
|
|
obj-$(CONFIG_USB_G_SERIAL) += g_serial.o
|
|
obj-$(CONFIG_USB_G_PRINTER) += g_printer.o
|
|
obj-$(CONFIG_USB_MIDI_GADGET) += g_midi.o
|
|
obj-$(CONFIG_USB_CDC_COMPOSITE) += g_cdc.o
|
|
obj-$(CONFIG_USB_G_HID) += g_hid.o
|
|
obj-$(CONFIG_USB_G_DBGP) += g_dbgp.o
|
|
obj-$(CONFIG_USB_G_MULTI) += g_multi.o
|
|
obj-$(CONFIG_USB_G_NOKIA) += g_nokia.o
|
|
obj-$(CONFIG_USB_G_WEBCAM) += g_webcam.o
|
|
obj-$(CONFIG_USB_G_NCM) += g_ncm.o
|
|
obj-$(CONFIG_USB_G_ACM_MS) += g_acm_ms.o
|
|
obj-$(CONFIG_USB_GADGET_TARGET) += tcm_usb_gadget.o
|