mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 05:40:53 +07:00
usb: musb: USB_MUSB_DUAL_ROLE/USB_MUSB_GADGET should depend on HAS_DMA
If NO_DMA=y: drivers/built-in.o: In function `txstate': musb_gadget.c:(.text+0x35955a): undefined reference to `dma_unmap_single' musb_gadget.c:(.text+0x35957e): undefined reference to `dma_sync_single_for_cpu' drivers/built-in.o: In function `musb_g_giveback': (.text+0x359672): undefined reference to `dma_mapping_error' drivers/built-in.o: In function `musb_g_giveback': (.text+0x3596ba): undefined reference to `dma_unmap_single' drivers/built-in.o: In function `musb_g_giveback': (.text+0x3596e0): undefined reference to `dma_sync_single_for_cpu' drivers/built-in.o: In function `rxstate': musb_gadget.c:(.text+0x3599d0): undefined reference to `dma_unmap_single' musb_gadget.c:(.text+0x3599f6): undefined reference to `dma_sync_single_for_cpu' drivers/built-in.o: In function `musb_gadget_queue': musb_gadget.c:(.text+0x35a8c0): undefined reference to `dma_map_single' musb_gadget.c:(.text+0x35a8d0): undefined reference to `dma_mapping_error' musb_gadget.c:(.text+0x35a906): undefined reference to `dma_sync_single_for_cpu' musb_gadget.c:(.text+0x35a9a0): undefined reference to `dma_unmap_single' musb_gadget.c:(.text+0x35a9c8): undefined reference to `dma_sync_single_for_cpu' Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
7241a21a71
commit
3f83e53878
@ -43,6 +43,7 @@ config USB_MUSB_HOST
|
|||||||
config USB_MUSB_GADGET
|
config USB_MUSB_GADGET
|
||||||
bool "Gadget only mode"
|
bool "Gadget only mode"
|
||||||
depends on USB_GADGET=y || USB_GADGET=USB_MUSB_HDRC
|
depends on USB_GADGET=y || USB_GADGET=USB_MUSB_HDRC
|
||||||
|
depends on HAS_DMA
|
||||||
help
|
help
|
||||||
Select this when you want to use MUSB in gadget mode only,
|
Select this when you want to use MUSB in gadget mode only,
|
||||||
thereby the host feature will be regressed.
|
thereby the host feature will be regressed.
|
||||||
@ -50,6 +51,7 @@ config USB_MUSB_GADGET
|
|||||||
config USB_MUSB_DUAL_ROLE
|
config USB_MUSB_DUAL_ROLE
|
||||||
bool "Dual Role mode"
|
bool "Dual Role mode"
|
||||||
depends on ((USB=y || USB=USB_MUSB_HDRC) && (USB_GADGET=y || USB_GADGET=USB_MUSB_HDRC))
|
depends on ((USB=y || USB=USB_MUSB_HDRC) && (USB_GADGET=y || USB_GADGET=USB_MUSB_HDRC))
|
||||||
|
depends on HAS_DMA
|
||||||
help
|
help
|
||||||
This is the default mode of working of MUSB controller where
|
This is the default mode of working of MUSB controller where
|
||||||
both host and gadget features are enabled.
|
both host and gadget features are enabled.
|
||||||
|
Loading…
Reference in New Issue
Block a user