]> git.baikalelectronics.ru Git - kernel.git/commit
at86rf230: change reset timings
authorAlexander Aring <alex.aring@gmail.com>
Sat, 15 Mar 2014 08:29:05 +0000 (09:29 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Mar 2014 20:10:26 +0000 (16:10 -0400)
commit806ec0eb2515e0f320b54c76251fe96e69945252
tree8de20aaf7622d6019ddc63df13c44c02b6648a5f
parent9bea315dd0116206984aa02afd7c6dab7891225f
at86rf230: change reset timings

While checkpatch another patch I got a:

"WARNING: msleep < 20ms can sleep for up to 20ms"

The datasheet of at86rf231 and at86rf212 says a minimum delay for reset
pulse width and spi access latency after reset is 625 nanoseconds.

This patch removes the 1 milliseconds sleep and replace it with a 1
microseconds udelay which should be also okay for the reset pulse width.

To change the state from RESET -> TRX_OFF the at86rf230 device needs 120
microseconds, this is a worst case of all at86rf* chips.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ieee802154/at86rf230.c