[RFC] [PATCH] media: marvell-ccic: use devm to release clk

2013-11-05 Thread lbyang
From: Libin Yang Date: Tue, 5 Nov 2013 16:29:07 +0800 Subject: [PATCH] media: marvell-ccic: use devm to release clk This patch uses devm to release the clks instead of releasing manually. And it adds enable/disable mipi_clk when getting its rate. Signed-off-by: Libin Yang --- drivers/media/pla

[PATCH] media: marvell-ccic: drop resource free in driver remove

2013-11-04 Thread lbyang
From: Libin Yang Date: Tue, 5 Nov 2013 10:18:15 +0800 Subject: [PATCH] marvell-ccic: drop resource free in driver remove The mmp-driver is using devm_* to allocate the resource. The old resource release methods are not appropriate here. Signed-off-by: Libin Yang --- drivers/media/platform/marv

[PATCH 7/7] marvell-ccic: switch to resource managed allocation and request

2013-06-03 Thread lbyang
From: Libin Yang This patch switchs to resource managed allocation and request in mmp-driver. It can remove free resource operations. Signed-off-by: Albert Wang Signed-off-by: Libin Yang Acked-by: Jonathan Corbet --- drivers/media/platform/marvell-ccic/mmp-driver.c | 60 ---

[PATCH 6/7] marvell-ccic: add SOF / EOF pair check for marvell-ccic driver

2013-06-03 Thread lbyang
From: Libin Yang This patch adds the SOFx/EOFx pair check for marvell-ccic. When switching format, the last EOF may not arrive when stop streamning. And the EOF will be detected in the next start streaming. Must ensure clear the left over frame flags before every really start streaming. Signed

[PATCH 5/7] marvell-ccic: add new formats support for marvell-ccic driver

2013-06-03 Thread lbyang
From: Libin Yang This patch adds the new formats support for marvell-ccic. Signed-off-by: Albert Wang Signed-off-by: Libin Yang --- drivers/media/platform/marvell-ccic/mcam-core.c | 192 +++ drivers/media/platform/marvell-ccic/mcam-core.h |6 + 2 files changed, 165 in

[PATCH 4/7] marvell-ccic: refine mcam_set_contig_buffer function

2013-06-03 Thread lbyang
From: Libin Yang This patch refines mcam_set_contig_buffer() in mcam core. It can remove redundant code line and enhance readability. Signed-off-by: Albert Wang Signed-off-by: Libin Yang Acked-by: Guennadi Liakhovetski Acked-by: Jonathan Corbet --- drivers/media/platform/marvell-ccic/mcam-c

[PATCH 3/7] marvell-ccic: reset ccic phy when stop streaming for stability

2013-06-03 Thread lbyang
From: Libin Yang This patch adds the reset ccic phy operation when stop streaming. Stop streaming without reset ccic phy, the next start streaming may be unstable. Also need add CCIC2 definition when PXA688/PXA2128 support dual ccics. Signed-off-by: Albert Wang Signed-off-by: Libin Yang Acked

[PATCH 2/7] marvell-ccic: add clock tree support for marvell-ccic driver

2013-06-03 Thread lbyang
From: Libin Yang This patch adds the clock tree support for marvell-ccic. Signed-off-by: Libin Yang Signed-off-by: Albert Wang Acked-by: Jonathan Corbet --- drivers/media/platform/marvell-ccic/mcam-core.h |5 +++ drivers/media/platform/marvell-ccic/mmp-driver.c | 48 ++

[PATCH 0/7] marvell-ccic: update ccic driver to support some features

2013-06-03 Thread lbyang
The patch set adds some feature into the marvell ccic driver Patch 1: Support MIPI sensor Patch 2: Support clock tree Patch 3: reset ccic when stop streaming, which makes CCIC more stable Patch 4: refine the mcam_set_contig_buffer function Patch 5: add some new fmts to support Patch 6: add SOF-EOF

[PATCH 1/7] marvell-ccic: add MIPI support for marvell-ccic driver

2013-06-03 Thread lbyang
From: Libin Yang This patch adds the MIPI support for marvell-ccic. Board driver should determine whether using MIPI or not. Signed-off-by: Albert Wang Signed-off-by: Libin Yang --- drivers/media/platform/marvell-ccic/cafe-driver.c |4 +- drivers/media/platform/marvell-ccic/mcam-core.c