OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7332fcb
)
at86rf230: move locking state in xmit
author
Alexander Aring
<alex.aring@gmail.com>
Sat, 15 Mar 2014 08:29:04 +0000
(09:29 +0100)
committer
David S. Miller
<davem@davemloft.net>
Mon, 17 Mar 2014 20:10:25 +0000
(16:10 -0400)
There is no need to lock the clearing of IRQ_TRX_END in status.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ieee802154/at86rf230.c
patch
|
blob
|
history
diff --git
a/drivers/net/ieee802154/at86rf230.c
b/drivers/net/ieee802154/at86rf230.c
index
ad296bc
..
030bf39
100644
(file)
--- a/
drivers/net/ieee802154/at86rf230.c
+++ b/
drivers/net/ieee802154/at86rf230.c
@@
-914,8
+914,8
@@
static void at86rf230_irqwork(struct work_struct *work)
status &= ~IRQ_TRX_UR; /* FIXME: possibly handle ???*/
if (status & IRQ_TRX_END) {
- spin_lock_irqsave(&lp->lock, flags);
status &= ~IRQ_TRX_END;
+ spin_lock_irqsave(&lp->lock, flags);
if (lp->is_tx) {
lp->is_tx = 0;
spin_unlock_irqrestore(&lp->lock, flags);