]> git.karo-electronics.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>
Mon, 16 Jun 2014 16:09:14 +0000 (18:09 +0200)
commit3236d26418c4ad6e937708c49ac86f8f18ce6bda
treedae7b41e372b32795a78de031e0997f40e9a5ba4
parente59957f407e3e586b320c0b0413b89febacf439f
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