]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ENGR00292398 PXP: refine two spin locks usage in PXP dma driver
authorFancy Fang <B47543@freescale.com>
Tue, 17 Dec 2013 08:58:26 +0000 (16:58 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 20 Aug 2014 08:06:49 +0000 (10:06 +0200)
commitd53d28eba6eeee6bfee0e3fc0788b89eebafbc11
tree7bab86b3f73c7b534b1ffa658204f367064a95aa
parentde05d6bc607796eb176f3119a5218e09d3cc0ce1
ENGR00292398 PXP: refine two spin locks usage in PXP dma driver

This patch provides the following refinements:
1. For pxp channel lock, use spin_lock() instead of spin_lock_irqsave().
   Since this lock is not used in any ISR. Moreover, this can increase the
   driver's concurrency with no local irq disabled.
2. Narrow down the pxp lock's locking range in pxp_issue_pending().
   Since this lock is also used in PXP ISR, so its hold time should be as
   few as possible to reduce the time when local irq disabled.

Signed-off-by: Fancy Fang <B47543@freescale.com>
drivers/dma/pxp/pxp_dma_v2.c