summaryrefslogtreecommitdiff
path: root/drivers/dma
diff options
context:
space:
mode:
authorSandor Yu <R01008@freescale.com>2014-05-08 10:41:53 +0800
committerSandor Yu <R01008@freescale.com>2014-05-12 14:51:24 +0800
commitb526242d1f1865d9e7b82e4db024e32fa23a8c2a (patch)
tree122177c9f10f695023ea1d5ef5e59ae0d2171220 /drivers/dma
parent8ddfa6ffe4a14075cd5beaa7df395facaad94623 (diff)
ENGR00312702-2 PXP: Reset channel state before pxp channel configuration
Reset struct of pxp_conf_state to zero before pxp channel configuration, in case some application miss configuration struct ol_param. Signed-off-by: Sandor Yu <R01008@freescale.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/pxp/pxp_dma_v2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dma/pxp/pxp_dma_v2.c b/drivers/dma/pxp/pxp_dma_v2.c
index 8893ee6b74ca..cc881cde8847 100644
--- a/drivers/dma/pxp/pxp_dma_v2.c
+++ b/drivers/dma/pxp/pxp_dma_v2.c
@@ -1142,6 +1142,7 @@ static void __pxpdma_dostart(struct pxp_channel *pxp_chan)
struct pxp_tx_desc *child;
int i = 0;
+ memset(&pxp->pxp_conf_state, 0, sizeof(struct pxp_config_data));
/* S0 */
desc = list_first_entry(&head, struct pxp_tx_desc, list);
memcpy(&pxp->pxp_conf_state.s0_param,