Re: [PATCH 3/3] usb: dwc2: USB_DWC2 should depend on HAS_DMA

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/15/2016 3:21 AM, Geert Uytterhoeven wrote:
> If NO_DMA=y:
> 
>     ERROR: "usb_gadget_map_request" [drivers/usb/dwc2/dwc2.ko] undefined!
>     ERROR: "usb_gadget_unmap_request" [drivers/usb/dwc2/dwc2.ko] undefined!
>     ERROR: "bad_dma_ops" [drivers/usb/dwc2/dwc2.ko] undefined!
> 
> Add a dependency on HAS_DMA to fix this.
> 
> Signed-off-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
> ---
>  drivers/usb/dwc2/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/usb/dwc2/Kconfig b/drivers/usb/dwc2/Kconfig
> index fd95ba6ec317fdac..f0decc0d69b5197d 100644
> --- a/drivers/usb/dwc2/Kconfig
> +++ b/drivers/usb/dwc2/Kconfig
> @@ -1,5 +1,6 @@
>  config USB_DWC2
>  	tristate "DesignWare USB2 DRD Core Support"
> +	depends on HAS_DMA
>  	depends on USB || USB_GADGET
>  	help
>  	  Say Y here if your system has a Dual Role Hi-Speed USB
> 


Acked-by: John Youn <johnyoun@xxxxxxxxxxxx>



--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux