]> git.karo-electronics.de Git - linux-beck.git/commit
at86rf230: increase sleep to off timings
authorAlexander Aring <aar@pengutronix.de>
Tue, 19 Apr 2016 13:34:22 +0000 (15:34 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 20 Apr 2016 14:17:13 +0000 (16:17 +0200)
commit60f5f5d3a106dc5385b39348d13b20b15ac9cbf9
tree171301372a5b4ed45e6cfa9990e6966c9558ce00
parentedc73417d8f33a1dd329295275168923298d9a7b
at86rf230: increase sleep to off timings

I expierenced when setting channel while sleep mode it didn't changed
the channel inside the hardware registers. Then I got another report of
an user which has similar issues.

I increased the sleep to off state change timing, which is according
at86rf233 at maximum 1000 us. After this change I got no similar effects
again.

I tried another option to wait on AWAKE_END irq, which can be used to
wait until the transceiver is awaked. I tested it and the IRQ took 4
seconds after starting state change. I don't believe it takes 4 seconds
to go into the TRX_OFF state from SLEEP state. The alternative is to
increase the timings which seems to work.

Cc: Oleg Hahm <oliver.hahm@inria.fr>
Signed-off-by: Alexander Aring <aar@pengutronix.de>
Reviewed-by: Stefan Schmidt<stefan@osg.samsung.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/net/ieee802154/at86rf230.c