summaryrefslogtreecommitdiff
path: root/crypto/af_alg.c
diff options
context:
space:
mode:
authorXiang Wang <wangx@marvell.com>2013-06-18 06:55:59 (GMT)
committerVinod Koul <vinod.koul@intel.com>2013-08-05 04:02:27 (GMT)
commit26a2dfdeb9b93b82735d2227a118afa0ddd912dd (patch)
tree3ad7c738040a7c7851cc032ca60f5017f5bfa8cb /crypto/af_alg.c
parent027f28b7bb589d726e3b6274a7d9272336522c65 (diff)
downloadlinux-26a2dfdeb9b93b82735d2227a118afa0ddd912dd.tar.xz
dma: mmp_pdma: clear DRCMR when free a phy channel
In mmp pdma, phy channels are allocated/freed dynamically. The mapping from DMA request to DMA channel number in DRCMR should be cleared when a phy channel is freed. Otherwise conflicts will happen when: 1. A is using channel 2 and free it after finished, but A still maps to channel 2 in DRCMR of A. 2. Now another one B gets channel 2. So B maps to channel 2 too in DRCMR of B. In the datasheet, it is described that "Do not map two active requests to the same channel since it produces unpredictable results" and we can observe that during test. Signed-off-by: Xiang Wang <wangx@marvell.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'crypto/af_alg.c')
0 files changed, 0 insertions, 0 deletions