commit | 027f28b7bb589d726e3b6274a7d9272336522c65 | [log] [tgz] |
---|---|---|
author | Xiang Wang <wangx@marvell.com> | Tue Jun 18 14:55:58 2013 +0800 |
committer | Vinod Koul <vinod.koul@intel.com> | Mon Aug 05 09:32:26 2013 +0530 |
tree | f699fc2744df365bbd181b7351781bc3f7b389de | |
parent | 337ae47c2d2938538e72e364e5ad097eab63012b [diff] |
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>