[PATCH v2 00/13] davinci: add vpif support for da850/omap-l138

2012-04-17 Thread Manjunath Hadli
add vpif capture and display driver support for da850/omap-l138 by taking care of the interrupt behavior changes, removing platform specific connotations. while doing so fix a bug and add a few feature enhancements for power mangement , clipping and correct contiguous memory allocation strategy.

[PATCH v2 01/13] davinci: vpif: add check for genuine interrupts in the isr

2012-04-17 Thread Manjunath Hadli
As the same interrupt is shared between capture and display devices, sometimes we get isr calls where the interrupt might not genuinely belong to capture or display. Hence, add a condition in the isr to check for interrupt ownership and channel number to make sure we do not service wrong

[PATCH v2 04/13] davinci: vpif: fix setting of data width in config_vpif_params() function

2012-04-17 Thread Manjunath Hadli
fix setting of data width in config_vpif_params() function, which was wrongly set. Signed-off-by: Manjunath Hadli manjunath.ha...@ti.com --- drivers/media/video/davinci/vpif.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/media/video/davinci/vpif.c

[PATCH v2 02/13] davinci: vpif: make generic changes to re-use the vpif drivers on da850/omap-l138 soc

2012-04-17 Thread Manjunath Hadli
change the dm646x specific strings in the driver to make them generic across platforms. In this case change all the strings which have a dm646x connotation to vpif which is a platform independent ip. Signed-off-by: Manjunath Hadli manjunath.ha...@ti.com --- drivers/media/video/davinci/vpif.c

[PATCH v2 03/13] davinci: vpif: make request_irq flags as shared

2012-04-17 Thread Manjunath Hadli
omap-l138 shares the interrupt between capture and display. Make sure we are able to request for the same irq number by making a shared irq request. Signed-off-by: Manjunath Hadli manjunath.ha...@ti.com --- drivers/media/video/davinci/vpif_capture.c |2 +-

[PATCH v2 05/13] davinci: vpif display: declare contiguous region of memory handled by dma_alloc_coherent

2012-04-17 Thread Manjunath Hadli
add support to declare contiguous region of memory to be handled when requested by dma_alloc_coherent call. The user can specify the size of the buffers with an offset from the kernel image using cont_bufsize and cont_bufoffset module parameters respectively. Signed-off-by: Manjunath Hadli

[PATCH v2 06/13] davinci: vpif capture: declare contiguous region of memory handled by dma_alloc_coherent

2012-04-17 Thread Manjunath Hadli
add support to declare contiguous region of memory to be handled when requested by dma_alloc_coherent when it's asked for coherent memory for this device. The user can specify the size of the buffers with an offset from the kernel image using cont_bufsize and cont_bufoffset module parameters

[PATCH v2 08/13] davinci: vpif: add support for clipping on output data

2012-04-17 Thread Manjunath Hadli
add hardware clipping support for VPIF output data. This is needed as it is possible that the external encoder might get confused between the FF or 00 which are a part of the data and that of the SAV or EAV codes. Signed-off-by: Manjunath Hadli manjunath.ha...@ti.com ---

[PATCH v2 10/13] davinci: vpif capture:Add power management support

2012-04-17 Thread Manjunath Hadli
Implement power management operations - suspend and resume as part of dev_pm_ops for VPIF capture driver. Signed-off-by: Manjunath Hadli manjunath.ha...@ti.com --- drivers/media/video/davinci/vpif_capture.c | 77 +++ 1 files changed, 65 insertions(+), 12 deletions(-)

[PATCH v2 13/13] davinci: vpif: Enable selection of the ADV7343 and THS7303

2012-04-17 Thread Manjunath Hadli
The auto selection of pertinent helper chips (VIDEO_HELPER_CHIPS_AUTO) should select the ADV7343 and THS7303 driver, which is used by VPIF display driver. Signed-off-by: Manjunath Hadli manjunath.ha...@ti.com --- drivers/media/video/davinci/Kconfig |4 ++-- 1 files changed, 2 insertions(+),

[PATCH v2 12/13] davinci: vpif: add build configuration for vpif drivers

2012-04-17 Thread Manjunath Hadli
add generic build configuration for vpif capture and display drivers as it is common for DM6467/DA850/OMAP-L138. Signed-off-by: Manjunath Hadli manjunath.ha...@ti.com --- drivers/media/video/davinci/Kconfig | 22 +- drivers/media/video/davinci/Makefile |8 2

[PATCH v2 11/13] davinci: vpif: Add suspend/resume callbacks to vpif driver

2012-04-17 Thread Manjunath Hadli
add clock enable and disable in probe and remove functions. Probe will succeed only if the device clock is provided instead of assuming that the clock is always enabled. VPIF clock has to be dealt with during suspend and resume. Implement power management callbacks to VPIF driver to disable/enable

[PATCH v2 07/13] davinci: vpif: add support to use videobuf_iolock()

2012-04-17 Thread Manjunath Hadli
add support to use videobuf_iolock() instead of VPIF defined vpif_uservirt_to_phys API. Use videobuf_to_dma_contig API for both memory-mapped and userptr buffer allocations. Correspondingly removed vpif_uservirt_to_phys() VPIF defined API. Signed-off-by: Manjunath Hadli manjunath.ha...@ti.com ---

RE: [PATCH] serial: 8250: Add cpufreq support

2012-04-17 Thread Shankarmurthy, Akshay
On Thu, Apr 12, 2012 at 15:17:58, Alan Cox wrote: I will have a look at this and add the lock if necessary. At the very least you need reference counts held on the tty struct and to allow for the tty having vanished under you. I am planning to add tty-termios_mutex lock.

Re: [PATCH v2 07/13] davinci: vpif: add support to use videobuf_iolock()

2012-04-17 Thread Laurent Pinchart
Hi Manjunath, Thanks for the patch. On Tuesday 17 April 2012 14:23:05 Manjunath Hadli wrote: add support to use videobuf_iolock() instead of VPIF defined vpif_uservirt_to_phys API. Use videobuf_to_dma_contig API for both memory-mapped and userptr buffer allocations. Correspondingly removed

Re: [PATCH v2 05/13] davinci: vpif display: declare contiguous region of memory handled by dma_alloc_coherent

2012-04-17 Thread Laurent Pinchart
Hi Manjunath, Thanks for the patch. On Tuesday 17 April 2012 14:23:03 Manjunath Hadli wrote: add support to declare contiguous region of memory to be handled when requested by dma_alloc_coherent call. The user can specify the size of the buffers with an offset from the kernel image using

Re: [PATCH v2 01/13] davinci: vpif: add check for genuine interrupts in the isr

2012-04-17 Thread Laurent Pinchart
Hi Manjunath, Thanks for the patch. On Tuesday 17 April 2012 14:22:59 Manjunath Hadli wrote: As the same interrupt is shared between capture and display devices, sometimes we get isr calls where the interrupt might not genuinely belong to capture or display. Hence, add a condition in the isr

Re: [PATCH v2] arm: davinci: use for_each_set_bit_from

2012-04-17 Thread Sekhar Nori
Hi Akinobu, On 4/11/2012 5:06 PM, Akinobu Mita wrote: Use for_each_set_bit_from to iterate over all the set bit in a memory region. Signed-off-by: Akinobu Mita akinobu.m...@gmail.com Acked-by: Sekhar Nori nsek...@ti.com Cc: Sekhar Nori nsek...@ti.com Cc: Christian Riesch

Re: [PATCH] davinci_mdio: Fix MDIO timeout check

2012-04-17 Thread David Miller
From: Christian Riesch christian.rie...@omicron.at Date: Mon, 16 Apr 2012 16:35:25 +0200 Under heavy load (flood ping) it is possible for the MDIO timeout to expire before the loop checks the GO bit again. This patch adds an additional check whether the operation was done before actually