Signed-off-by: Alexander Aring <alex.ar...@gmail.com>
---
 drivers/net/ieee802154/at86rf2xx.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ieee802154/at86rf2xx.c 
b/drivers/net/ieee802154/at86rf2xx.c
index d0af42e..8e67179 100644
--- a/drivers/net/ieee802154/at86rf2xx.c
+++ b/drivers/net/ieee802154/at86rf2xx.c
@@ -51,6 +51,7 @@ struct at86rf2xx_chip_data {
        u16 t_trx_off;
        u16 t_reset_to_trx_off;
        u16 t_channel_switch;
+       u16 t_sleep_cycle;
        /* short interframe spacing time */
        u16 t_sifs;
        /* long interframe spacing time */
@@ -1030,6 +1031,7 @@ static struct at86rf2xx_chip_data at86rf233_data = {
        .t_trx_off = 1,
        .t_reset_to_trx_off = 26,
        .t_channel_switch = 11,
+       .t_sleep_cycle = 330,
        .t_sifs = 192,
        .t_lifs = 480,
        .t_tx_timeout = 2000,
@@ -1046,6 +1048,7 @@ static struct at86rf2xx_chip_data at86rf231_data = {
        .t_trx_off = 1,
        .t_reset_to_trx_off = 37,
        .t_channel_switch = 24,
+       .t_sleep_cycle = 330,
        .t_sifs = 192,
        .t_lifs = 480,
        .t_tx_timeout = 2000,
@@ -1062,6 +1065,7 @@ static struct at86rf2xx_chip_data at86rf212_data = {
        .t_trx_off = 1,
        .t_reset_to_trx_off = 26,
        .t_channel_switch = 42,
+       .t_sleep_cycle = 330,
        .t_sifs = 192,
        .t_lifs = 480,
        .t_tx_timeout = 2000,
@@ -1128,7 +1132,7 @@ static int at86rf2xx_hw_init(struct at86rf2xx_local *lp)
        if (rc)
                return rc;
        /* Wait the next SLEEP cycle */
-       msleep(100);
+       udelay(lp->data->t_sleep_cycle);
 
        rc = at86rf2xx_read_subreg(lp, SR_DVDD_OK, &dvdd);
        if (rc)
-- 
2.0.0


------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Linux-zigbee-devel mailing list
Linux-zigbee-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel

Reply via email to