summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFancy Fang <B47543@freescale.com>2013-12-11 18:21:10 +0800
committerFancy Fang <B47543@freescale.com>2013-12-13 17:10:53 +0800
commit436d6e483bd19bfc3c7bf03b63bc9f9f5cf077a9 (patch)
tree82290dfeda305302d0883a177d8525050761efb5 /include
parentcba8575d0a441657702cb2e5da4efc4e473a290b (diff)
ENGR00291729 PXP: remove a mutex lock from pxp channel
This mutex lock is no longer necessary in PXP dma driver. After the commit "ENGR00291400 PXP: Organize PXP task queue to be FIFO", protection fields can be protected by the spin lock in PXP channel now. Signed-off-by: Fancy Fang <B47543@freescale.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/pxp_dma.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/pxp_dma.h b/include/linux/pxp_dma.h
index 61b3e7de4c57..613d89f143f9 100644
--- a/include/linux/pxp_dma.h
+++ b/include/linux/pxp_dma.h
@@ -47,8 +47,9 @@ struct pxp_channel {
struct pxp_tx_desc *desc; /* allocated tx-descriptors */
struct list_head queue; /* queued tx-descriptors */
struct list_head list; /* track queued channel number */
- spinlock_t lock; /* protects sg[0,1], queue */
- struct mutex chan_mutex; /* protects status, cookie, free_list */
+ spinlock_t lock; /* protects sg[0,1], queue,
+ * status, cookie, free_list
+ */
int active_buffer;
unsigned int eof_irq;
char eof_name[16]; /* EOF IRQ name for request_irq() */