diff options
author | Liu Ying <b17645@freescale.com> | 2009-03-17 13:26:50 +0800 |
---|---|---|
committer | Rob Herring <ra7055@ra7055-linux.sigmatel.com> | 2009-03-24 06:00:08 -0500 |
commit | 42f5027038bd4ce505c73fd48329902bf3ee1264 (patch) | |
tree | 60f42ae3d019045e92c688d9180bbb6679dbe78c /drivers/mxc/ipu3 | |
parent | 25e26f0ea9dd1bf551058736e4d350ade6d88a62 (diff) |
ENGR00109633 V4L2 capture: Fix enable/disable ov3640 camera's mclk issue
Remove unusable logic to check if camera's mclk is enabled or disabled before.
Clock frame work will record the clock's use count.
This makes the disabling logic be right if two capture features
are run simultanesouly.
Signed-off-by: Liu Ying <b17645@freescale.com>
Diffstat (limited to 'drivers/mxc/ipu3')
-rwxr-xr-x | drivers/mxc/ipu3/ipu_capture.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/drivers/mxc/ipu3/ipu_capture.c b/drivers/mxc/ipu3/ipu_capture.c index 5a7ad71689bf..256fb9aa17e5 100755 --- a/drivers/mxc/ipu3/ipu_capture.c +++ b/drivers/mxc/ipu3/ipu_capture.c @@ -30,8 +30,6 @@ #include "ipu_prv.h" #include "ipu_regs.h" -static bool gipu_csi_get_mclk_flag[2] = {false, false}; - /*! * ipu_csi_init_interface * Sets initial values for the CSI registers. @@ -174,24 +172,11 @@ int _ipu_csi_mclk_set(uint32_t pixel_clk, uint32_t csi) int ipu_csi_enable_mclk(int csi, bool flag, bool wait) { if (flag) { - if (gipu_csi_get_mclk_flag[csi] == true) { - printk(KERN_WARNING "The clock of CSI%d has been enabled\n", csi); - return 0; - } - clk_enable(g_csi_clk[csi]); if (wait == true) msleep(10); - gipu_csi_get_mclk_flag[csi] = true; - } else { - if (gipu_csi_get_mclk_flag[csi] == false) { - printk(KERN_WARNING "The clock of CSI%d has been disabled\n", csi); - return 0; - } - + } else clk_disable(g_csi_clk[csi]); - gipu_csi_get_mclk_flag[csi] = false; - } return 0; } |