Signed-off-by: Alexander Aring <alex.ar...@gmail.com> --- drivers/net/ieee802154/at86rf2xx.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ieee802154/at86rf2xx.c b/drivers/net/ieee802154/at86rf2xx.c index 596d243..2ecd930 100644 --- a/drivers/net/ieee802154/at86rf2xx.c +++ b/drivers/net/ieee802154/at86rf2xx.c @@ -49,6 +49,7 @@ struct at86rf2xx_chip_data { u16 t_rx_aack_on; u16 t_off_to_aack; u16 t_trx_off; + u16 t_reset_to_trx_off; /* short interframe spacing time */ u16 t_sifs; /* long interframe spacing time */ @@ -1025,6 +1026,7 @@ static struct at86rf2xx_chip_data at86rf233_data = { .t_rx_aack_on = 1, .t_off_to_aack = 80, .t_trx_off = 1, + .t_reset_to_trx_off = 26, .t_sifs = 192, .t_lifs = 480, .t_tx_timeout = 2000, @@ -1039,6 +1041,7 @@ static struct at86rf2xx_chip_data at86rf231_data = { .t_rx_aack_on = 1, .t_off_to_aack = 110, .t_trx_off = 1, + .t_reset_to_trx_off = 37, .t_sifs = 192, .t_lifs = 480, .t_tx_timeout = 2000, @@ -1053,6 +1056,7 @@ static struct at86rf2xx_chip_data at86rf212_data = { .t_rx_aack_on = 1, .t_off_to_aack = 200, .t_trx_off = 1, + .t_reset_to_trx_off = 26, .t_sifs = 192, .t_lifs = 480, .t_tx_timeout = 2000, @@ -1067,7 +1071,12 @@ static int at86rf2xx_hw_init(struct at86rf2xx_local *lp) unsigned int dvdd; u8 csma_seed[2]; - rc = at86rf2xx_write_subreg(lp, SR_TRX_CMD, STATE_FORCE_TRX_OFF); + rc = __at86rf2xx_write(lp, RG_TRX_STATE, STATE_FORCE_TRX_OFF); + if (rc) + return rc; + + rc = at86rf2xx_sync_state_assert(lp, STATE_TRX_OFF, + lp->data->t_reset_to_trx_off); if (rc) return 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