]> git.baikalelectronics.ru Git - kernel.git/commit
at86rf230: fix race condition
authorAlexander Aring <alex.aring@gmail.com>
Tue, 7 Oct 2014 08:38:31 +0000 (10:38 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 25 Oct 2014 05:56:23 +0000 (07:56 +0200)
commit5d5b07ed6468262339c162920865af578255d243
tree05369199c4918deaecee3431cfe1af0391399279
parentbe58fa3e0676e6f11a997ed53c07cdad3d5a13eb
at86rf230: fix race condition

When the driver waits for a tx completion currently the driver direct
enables the irq. When we switching to RX_AACK_ON some steps afterwards
the driver could receive a new frame and request resources which are
already in use, for example irq state change resource.

To be sure there are no new interrupts when we switching to RX_AACK_ON,
we enable the irq when state change to RX_AACK_ON was completed.

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