]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00303663 mxc v4l2 capture: Don't return error if we cannot get mipi csi2
authorLiu Ying <Ying.Liu@freescale.com>
Mon, 17 Mar 2014 03:28:53 +0000 (11:28 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 20 Aug 2014 08:06:57 +0000 (10:06 +0200)
commit788e269606519115213dea985eeee564c164f289
tree8c892dfe73044baa6b88b083ee24a311dab2fb51
parentea5afbde85ec02be7dea0a7ca3beac77a4a1c8dc
ENGR00303663 mxc v4l2 capture: Don't return error if we cannot get mipi csi2

The mipi csi2 code is ugly present in the capture pipeline setup/disable
routions with '#ifdef CONFIG_MXC_MIPI_CSI2/#endif' protected.  Whenever
it finds mipi_csi2_info is not gotten correctly, it will return error to
callers.  This breaks the normally routines in which mipi csi2 is not used
and mipi csi2 driver is disabled in its devicetree node(but with the
Kconfig CONFIG_MXC_MIPI_CSI2 defined).  A real example is the capture
feature on the MX6 Sabreauto platforms.  We have only parallel CSI input
on it and the mipi csi2 driver is disabled in its devicetree node but with
the Kconfig CONFIG_MXC_MIPI_CSI2 defined.  So, a reasonable choice at present
is not to return error if mipi_csi2_info cannot be gotten, though we could
eventually re-organize the capture code for a better total solution in the
future.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
(cherry picked from commit 8133b7fd26e8b068fa8ab9cd62eae090c76080be)
drivers/media/platform/mxc/capture/ipu_bg_overlay_sdc.c
drivers/media/platform/mxc/capture/ipu_csi_enc.c
drivers/media/platform/mxc/capture/ipu_fg_overlay_sdc.c
drivers/media/platform/mxc/capture/ipu_prp_enc.c
drivers/media/platform/mxc/capture/ipu_prp_vf_sdc.c
drivers/media/platform/mxc/capture/ipu_prp_vf_sdc_bg.c