]> git.baikalelectronics.ru Git - kernel.git/commit
at86rf230: remove unnecessary spinlock
authorAlexander Aring <alex.aring@gmail.com>
Thu, 26 Mar 2015 11:46:29 +0000 (12:46 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 27 Mar 2015 18:18:50 +0000 (19:18 +0100)
commit2ccac853fb14577b6ab2083d03c1b70790548aa8
treedc8fc9b0c9dd44926a8dfb3ebd31353ea272df89
parenta0f14ada42e99551a02730a581c9a3b3cb2956f7
at86rf230: remove unnecessary spinlock

This spinlock isn't necessary because if we are in TX_ON/TX_ARET_ON
state the transceiver can't be interrupted e.g. by receiving a frame
when a SHR was detected. In this time the transceiver doesn't leave
the TX_ON/TX_ARET_ON state until the tx complete irq change the state
into RX_AACK_ON again. This means a receiving interrupt in state
TX_ON/TX_ARET_ON can't happen and is_tx is protected by transceiver.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/net/ieee802154/at86rf230.c