]> git.baikalelectronics.ru Git - kernel.git/commit
dma: mmp_pdma: add protect when alloc/free phy channels
authorXiang Wang <wangx@marvell.com>
Tue, 18 Jun 2013 06:55:58 +0000 (14:55 +0800)
committerVinod Koul <vinod.koul@intel.com>
Mon, 5 Aug 2013 04:02:26 +0000 (09:32 +0530)
commit5e9cec36ccf3699b8e9577cbbccbe1404e8d5e2d
treef699fc2744df365bbd181b7351781bc3f7b389de
parentfa156ef979ab7273b76cbeed03a44489e04d97b4
dma: mmp_pdma: add protect when alloc/free phy channels

In mmp pdma, phy channels are allocated/freed dynamically
and frequently. But no proper protection is added.
Conflict will happen when multi-users are requesting phy
channels at the same time. Use spinlock to protect.

Signed-off-by: Xiang Wang <wangx@marvell.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/mmp_pdma.c