* [PATCH] V4L/DVB: mx1-camera: compile fix
@ 2010-03-04 16:54 Uwe Kleine-König
2010-03-04 17:13 ` Guennadi Liakhovetski
0 siblings, 1 reply; 4+ messages in thread
From: Uwe Kleine-König @ 2010-03-04 16:54 UTC (permalink / raw)
To: linux-arm-kernel
This is a regression of
7d58289 (mx1: prefix SOC specific defines with MX1_ and deprecate old names)
Signed-off-by: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de>
---
Hello,
this went unnoticed up to now as mx1_defconfig doesn't include support
for mx1-camera.
I have a patch pending to change that though.
Best regards
Uwe
drivers/media/video/mx1_camera.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/drivers/media/video/mx1_camera.c b/drivers/media/video/mx1_camera.c
index 2ba14fb..38e5315 100644
--- a/drivers/media/video/mx1_camera.c
+++ b/drivers/media/video/mx1_camera.c
@@ -45,6 +45,9 @@
#include <mach/hardware.h>
#include <mach/mx1_camera.h>
+#undef DMA_BASE
+#define DMA_BASE MX1_IO_ADDRESS(MX1_DMA_BASE_ADDR)
+
/*
* CSI registers
*/
@@ -783,7 +786,7 @@ static int __init mx1_camera_probe(struct platform_device *pdev)
pcdev);
imx_dma_config_channel(pcdev->dma_chan, IMX_DMA_TYPE_FIFO,
- IMX_DMA_MEMSIZE_32, DMA_REQ_CSI_R, 0);
+ IMX_DMA_MEMSIZE_32, MX1_DMA_REQ_CSI_R, 0);
/* burst length : 16 words = 64 bytes */
imx_dma_config_burstlen(pcdev->dma_chan, 0);
--
1.7.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] V4L/DVB: mx1-camera: compile fix
2010-03-04 16:54 [PATCH] V4L/DVB: mx1-camera: compile fix Uwe Kleine-König
@ 2010-03-04 17:13 ` Guennadi Liakhovetski
2010-03-04 19:26 ` Uwe Kleine-König
0 siblings, 1 reply; 4+ messages in thread
From: Guennadi Liakhovetski @ 2010-03-04 17:13 UTC (permalink / raw)
To: linux-arm-kernel
Hi Uwe
On Thu, 4 Mar 2010, Uwe Kleine-K?nig wrote:
> This is a regression of
>
> 7d58289 (mx1: prefix SOC specific defines with MX1_ and deprecate old names)
>
> Signed-off-by: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de>
> ---
> Hello,
>
> this went unnoticed up to now as mx1_defconfig doesn't include support
> for mx1-camera.
> I have a patch pending to change that though.
>
> Best regards
> Uwe
>
> drivers/media/video/mx1_camera.c | 5 ++++-
> 1 files changed, 4 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/media/video/mx1_camera.c b/drivers/media/video/mx1_camera.c
> index 2ba14fb..38e5315 100644
> --- a/drivers/media/video/mx1_camera.c
> +++ b/drivers/media/video/mx1_camera.c
> @@ -45,6 +45,9 @@
> #include <mach/hardware.h>
> #include <mach/mx1_camera.h>
>
> +#undef DMA_BASE
> +#define DMA_BASE MX1_IO_ADDRESS(MX1_DMA_BASE_ADDR)
I don't like this. Why the "undef"? Is DMA_BASE already defined? where and
what is it? If it is - we better use a different name, if not - just
remove the undef, please.
> +
> /*
> * CSI registers
> */
> @@ -783,7 +786,7 @@ static int __init mx1_camera_probe(struct platform_device *pdev)
> pcdev);
>
> imx_dma_config_channel(pcdev->dma_chan, IMX_DMA_TYPE_FIFO,
> - IMX_DMA_MEMSIZE_32, DMA_REQ_CSI_R, 0);
> + IMX_DMA_MEMSIZE_32, MX1_DMA_REQ_CSI_R, 0);
> /* burst length : 16 words = 64 bytes */
> imx_dma_config_burstlen(pcdev->dma_chan, 0);
>
> --
> 1.7.0
>
Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] V4L/DVB: mx1-camera: compile fix
2010-03-04 17:13 ` Guennadi Liakhovetski
@ 2010-03-04 19:26 ` Uwe Kleine-König
2010-03-04 19:42 ` Sascha Hauer
0 siblings, 1 reply; 4+ messages in thread
From: Uwe Kleine-König @ 2010-03-04 19:26 UTC (permalink / raw)
To: linux-arm-kernel
Hi Guennadi,
On Thu, Mar 04, 2010 at 06:13:38PM +0100, Guennadi Liakhovetski wrote:
> > +#undef DMA_BASE
> > +#define DMA_BASE MX1_IO_ADDRESS(MX1_DMA_BASE_ADDR)
>
> I don't like this. Why the "undef"? Is DMA_BASE already defined? where and
> what is it? If it is - we better use a different name, if not - just
> remove the undef, please.
yes, it's not pretty, but I wanted to make a minimal patch.
arch/arm/plat-mxc/include/mach/dma-mx1-mx2.h has:
#define DMA_BASE IO_ADDRESS(DMA_BASE_ADDR)
so that was used before. I don't really know the driver, just made it
compile again. If you have a nice suggestion, I will happily implement
it.
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-K?nig |
Industrial Linux Solutions | http://www.pengutronix.de/ |
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] V4L/DVB: mx1-camera: compile fix
2010-03-04 19:26 ` Uwe Kleine-König
@ 2010-03-04 19:42 ` Sascha Hauer
0 siblings, 0 replies; 4+ messages in thread
From: Sascha Hauer @ 2010-03-04 19:42 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Mar 04, 2010 at 08:26:23PM +0100, Uwe Kleine-K?nig wrote:
> Hi Guennadi,
>
> On Thu, Mar 04, 2010 at 06:13:38PM +0100, Guennadi Liakhovetski wrote:
> > > +#undef DMA_BASE
> > > +#define DMA_BASE MX1_IO_ADDRESS(MX1_DMA_BASE_ADDR)
> >
> > I don't like this. Why the "undef"? Is DMA_BASE already defined? where and
> > what is it? If it is - we better use a different name, if not - just
> > remove the undef, please.
> yes, it's not pretty, but I wanted to make a minimal patch.
>
> arch/arm/plat-mxc/include/mach/dma-mx1-mx2.h has:
>
> #define DMA_BASE IO_ADDRESS(DMA_BASE_ADDR)
This is only used in the mx1 camera driver, so you can just remove it
from dma-mx1-mx2.h and use MX1_IO_ADDRESS(MX1_DMA_BASE_ADDR) in the camera
driver.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-03-04 19:42 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-04 16:54 [PATCH] V4L/DVB: mx1-camera: compile fix Uwe Kleine-König
2010-03-04 17:13 ` Guennadi Liakhovetski
2010-03-04 19:26 ` Uwe Kleine-König
2010-03-04 19:42 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).