ARM: imx: fix usb related build failure for mach-vpr200
Subsystems (3)
PATCH 1/1 ARM: imx: fix usb related build failure for mach-vpr200
This was broken by
4bd597b (ARM i.MX ehci: do ehci init in board specific functions)
and fixes:
CC arch/arm/mach-mx3/mach-vpr200.oarch/arm/mach-mx3/mach-vpr200.c:263: error: unknown field 'flags' specified in initializer arch/arm/mach-mx3/mach-vpr200.c:264: warning: initialization makes pointer from integer without a cast
by just applying the change to mach-vpr200.c that the other machine files got by 4bd597b.
---
Hello,
this is based on a tree that have mach-mx3 moved to mach-imx, so this patch might not apply to your tree. Then you need to patch arch/arm/mach-mx3/mach-vpr200.c.
Thanks
Uwe
arch/arm/mach-imx/mach-vpr200.c | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-)
arch/arm/mach-imx/mach-vpr200.c +8 -3
@@ -246,11 +246,16 @@ static const struct fsl_usb2_platform_data otg_device_pdata __initconst = { .workaround = FLS_USB2_WORKAROUND_ENGCM09152, }; +static int vpr200_usbh_init (struct platform_device *pdev) +{ +return mx35_initialize_usb_hw (pdev->id, +MXC_EHCI_INTERFACE_SINGLE_UNI |MXC_EHCI_INTERNAL_PHY ); +} +/* USB HOST config */ static const struct mxc_usbh_platform_data usb_host_pdata__initconst = { - .portsc =MXC_EHCI_MODE_SERIAL , - .flags =MXC_EHCI_INTERFACE_SINGLE_UNI | -MXC_EHCI_INTERNAL_PHY , + .init = vpr200_usbh_init, + .portsc =MXC_EHCI_MODE_SERIAL , };static struct platform_device *devices[]__initdata = {
Signature · 1 line
1.7.2.3
PATCH 1/1 ARM: imx: fix usb related build failure for mach-vpr200
Hi Uwe,
Many thanks...
Quoted 4 lines
by just applying the change to
mach-vpr200.cthat the other machine files got by 4bd597b.
Quoted 8 lines
Signed-off-by Uwe Kleine-K?nig <[email protected]>---
Hello,this is based on a tree that have mach-mx3 moved to mach-imx, so this patch might not apply to your tree. Then you need to patch
arch/arm/mach-mx3/mach-vpr200.c.
I haven't had time to absorb and test those changes, but...
Quoted 18 lines
arch/arm/mach-imx/mach-vpr200.c | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-)(quoted diff) +0
-0
b/arch/arm/mach-imx/mach-vpr200.cindex 84100c6..d74e347 100644arch/arm/mach-imx/mach-vpr200.c +0
-0@@ -246,11 +246,16 @@ static const struct fsl_usb2_platform_data
otg_device_pdata__initconst= { .workaround =FLS_USB2_WORKAROUND_ENGCM09152,
};arch/arm/mach-imx/mach-vpr200.c +4
-0+static int vpr200_usbh_init (struct platform_device *pdev) +{ +return mx35_initialize_usb_hw (pdev->id, +MXC_EHCI_INTERFACE_SINGLE_UNI |MXC_EHCI_INTERNAL_PHY );
arch/arm/mach-imx/mach-vpr200.c static const struct fsl_usb2_platform_data otg_device_pdata __initconst = { · line 259
Quoted 10 lines
arch/arm/mach-imx/mach-vpr200.c +4
-3+} +/* USB HOST config */ static const struct mxc_usbh_platform_data usb_host_pdata__initconst = { - .portsc =MXC_EHCI_MODE_SERIAL , - .flags =MXC_EHCI_INTERFACE_SINGLE_UNI | -MXC_EHCI_INTERNAL_PHY , + .init = vpr200_usbh_init, + .portsc =MXC_EHCI_MODE_SERIAL , };
This looks exactly like my fix after I pulled imx-for-2.6.39 the other day, procured also by copying the other board files :)
Cheers
Marc