diff options
author | Jason Chen <b02280@freescale.com> | 2009-10-16 17:22:36 +0800 |
---|---|---|
committer | Jason Chen <b02280@freescale.com> | 2009-10-16 17:25:09 +0800 |
commit | 1444395a93b3f9f91de07e3abe14ddd8a0f9a9b0 (patch) | |
tree | 32e5d17a99070f3cdaef4c2c2d3b44be815314d0 | |
parent | e2edf5336c6242bd378a1a2b919a5af2961f81f5 (diff) |
ENGR00117373 ipuv3: disable IPU channel not correct
IPU channel disable should wait all channels finish busy state, should
wait for input dma interrupt as the correct finish signal for all
channels. This patch fix the DQ_BUF fail issue in VPU unit test.
Signed-off-by: Jason Chen <b02280@freescale.com>
-rw-r--r-- | drivers/mxc/ipu3/ipu_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mxc/ipu3/ipu_common.c b/drivers/mxc/ipu3/ipu_common.c index cfe2a2dea4ec..34aca0fae5e4 100644 --- a/drivers/mxc/ipu3/ipu_common.c +++ b/drivers/mxc/ipu3/ipu_common.c @@ -1678,7 +1678,7 @@ int32_t ipu_disable_channel(ipu_channel_t channel, bool wait_for_stop) (g_thrd_chan_en[IPU_CHAN_ID(channel)] && idma_is_set(IDMAC_CHA_BUSY, thrd_dma)) || (_ipu_channel_status(channel) == TASK_STAT_ACTIVE)) { - uint32_t ret, irq = out_dma; + uint32_t ret, irq = in_dma; DECLARE_COMPLETION_ONSTACK(disable_comp); ret = ipu_request_irq(irq, disable_chan_irq_handler, 0, NULL, &disable_comp); |