Re: [PATCH] usb: gadget: Fix build error due to selection of USB_FSL_MPH_DR_OF by ARCH_MXC

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

 



Hi,

Fabio Estevam writes:
> USB_FSL_MPH_DR_OF is a PowerPC driver and should not be selected by ARCH_MXC.
> 
> Doing a 'make mx3_defconfig' and selecting i.MX6 we get:
> 
> CC [M]  drivers/usb/host/fsl-mph-dr-of.o
> drivers/usb/host/fsl-mph-dr-of.c: In function 'fsl_usb2_device_register':
> drivers/usb/host/fsl-mph-dr-of.c:97: error: 'struct pdev_archdata' has no member named 'dma_mask'
> 
> Fix this error by not allowing USB_FSL_MPH_DR_OF to be selected by ARCH_MXC.
> 
> Signed-off-by: Fabio Estevam <fabio.estevam@xxxxxxxxxxxxx>
> ---
>  drivers/usb/gadget/Kconfig |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig
> index 23a4473..0148676 100644
> --- a/drivers/usb/gadget/Kconfig
> +++ b/drivers/usb/gadget/Kconfig
> @@ -159,7 +159,7 @@ config USB_FSL_USB2
>  	tristate "Freescale Highspeed USB DR Peripheral Controller"
>  	depends on FSL_SOC || ARCH_MXC
>  	select USB_GADGET_DUALSPEED
> -	select USB_FSL_MPH_DR_OF if OF
> +	select USB_FSL_MPH_DR_OF if OF && !ARCH_MXC
>
You could probably use 'FSL_SOC' instead of '!ARCH_MXC', like it is
done for the USB host controller:
|config USB_EHCI_FSL
|	bool "Support for Freescale on-chip EHCI USB controller"
|	depends on USB_EHCI_HCD && FSL_SOC
|	select USB_EHCI_ROOT_HUB_TT
|	select USB_FSL_MPH_DR_OF if OF
|	---help---
|	  Variation of ARC USB block used in some Freescale chips.
|
|config USB_EHCI_MXC
|	bool "Support for Freescale on-chip EHCI USB controller"
|	depends on USB_EHCI_HCD && ARCH_MXC
|	select USB_EHCI_ROOT_HUB_TT
|	---help---
|	  Variation of ARC USB block used in some Freescale chips.

Otherwise you would have the same trouble again, if e.g. ARCH_MXS
should be added to the dependency list of USB_FSL_USB2.


Lothar Waßmann
-- 
___________________________________________________________

Ka-Ro electronics GmbH | Pascalstraße 22 | D - 52076 Aachen
Phone: +49 2408 1402-0 | Fax: +49 2408 1402-10
Geschäftsführer: Matthias Kaussen
Handelsregistereintrag: Amtsgericht Aachen, HRB 4996

www.karo-electronics.de | info@xxxxxxxxxxxxxxxxxxx
___________________________________________________________
--
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