summaryrefslogtreecommitdiffstats
path: root/drivers/net/ieee802154
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2015-07-30 12:13:29 +0200
committerMarcel Holtmann <marcel@holtmann.org>2015-07-30 14:02:21 +0200
commit8b44f0dd2f90acd6c8842537223b39f890f2e713 (patch)
tree7789af0ef9d89209ed6f2f993ab9392520661c4a /drivers/net/ieee802154
parent54c9ee39923c0ffa27b99a1b7321e0d07408c97b (diff)
downloadop-kernel-dev-8b44f0dd2f90acd6c8842537223b39f890f2e713.zip
op-kernel-dev-8b44f0dd2f90acd6c8842537223b39f890f2e713.tar.gz
at86rf230: remove hrtimer on 1 usec delay
According Documentation/timers/timers-howto.txt the usually case for setting up a hrtimer takes > ~10us. So we should use udelay in this case so we are sure that the state change was done, before doing the state change assert. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/net/ieee802154')
-rw-r--r--drivers/net/ieee802154/at86rf230.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c
index f7bd9f3..d0d5bf6 100644
--- a/drivers/net/ieee802154/at86rf230.c
+++ b/drivers/net/ieee802154/at86rf230.c
@@ -545,7 +545,9 @@ at86rf230_async_state_delay(void *context)
}
/* Default delay is 1us in the most cases */
- tim = ktime_set(0, NSEC_PER_USEC);
+ udelay(1);
+ at86rf230_async_state_timer(&ctx->timer);
+ return;
change:
hrtimer_start(&ctx->timer, tim, HRTIMER_MODE_REL);
OpenPOWER on IntegriCloud