[PATCH 27/61] ARM: imx: new Kconfig symbol and feature test macro for?DMA on mx1 and mx2
Uwe Kleine-König
u.kleine-koenig at pengutronix.de
Wed Jun 30 03:17:18 EDT 2010
On Tue, Jun 29, 2010 at 06:04:52AM +0000, Baruch Siach wrote:
> Hi Uwe,
>
> Uwe Kleine-König <u.kleine-koenig <at> pengutronix.de> writes:
> > This should be used instead of hard coding the corresponding platforms.
> > The feature test macro is needed to support different SOCs in a single
> > kernel image. While at it rename dma-mx1-mx2 to dma-v1 as mx25 doesn't
> > use it and so the mx2 part is wrong and move the header to
> > arch/arm/mach-imx.
> >
> > Signed-off-by: Uwe Kleine-König <u.kleine-koenig <at> pengutronix.de>
>
> This commit breaks build of the (hopefully) soon to-be-merged mx2_camera driver.
> This driver is for both mx25 and mx27. Since dma-mx1-mx2.h is now under the
> non-mx25 mach-imx/ directory, mx25 build can't find this header.
>
> The solution is either:
>
> 1. move mx25 to mach-imx/ as well, or
>
> 2. postpone the dma-mx1-mx2.h header move for now, and leave it under plat-mxc/
3. don't include dma-mx1-mx2.h for mx25 builds.
An mx25 kernel doesn't provide the functions declared in dma-mx1-mx2.h,
so I assume it's due to compiler optimizations that you don't get a
build failure.
I wouldn't do 1. in the .36 merge window because I want to continue with
some cleanups first. I have no problems with 2 and can do it, but I
think 3 is more correct, though it add #ifdefery to your driver, which
is bad. What do you think?
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
More information about the linux-arm-kernel
mailing list