Return-Path: Received: from mail-wg0-f47.google.com ([74.125.82.47]:33159 "EHLO mail-wg0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030787AbbD1VXb (ORCPT ); Tue, 28 Apr 2015 17:23:31 -0400 Received: by wgin8 with SMTP id n8so8384414wgi.0 for ; Tue, 28 Apr 2015 14:23:30 -0700 (PDT) From: Alexander Aring Subject: [PATCH wpan-next 3/6] at86rf230: add TX_ARET_ON for calibration timeout Date: Tue, 28 Apr 2015 23:22:31 +0200 Message-Id: <1430256154-1813-4-git-send-email-alex.aring@gmail.com> In-Reply-To: <1430256154-1813-1-git-send-email-alex.aring@gmail.com> References: <1430256154-1813-1-git-send-email-alex.aring@gmail.com> Sender: linux-wpan-owner@vger.kernel.org List-ID: To: linux-wpan@vger.kernel.org Cc: kernel@pengutronix.de, Alexander Aring This patch adds a calibration timeout reset when change from TRX_OFF to TX_ARET_ON which also occurs a calibration. Signed-off-by: Alexander Aring --- drivers/net/ieee802154/at86rf230.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c index 6358788..f99dce5 100644 --- a/drivers/net/ieee802154/at86rf230.c +++ b/drivers/net/ieee802154/at86rf230.c @@ -617,10 +617,11 @@ at86rf230_async_state_delay(void *context) */ lp->cal_timeout = jiffies + AT86RF2XX_CAL_LOOP_TIMEOUT; goto change; + case STATE_TX_ARET_ON: case STATE_TX_ON: tim = ktime_set(0, c->t_off_to_tx_on * NSEC_PER_USEC); - /* state change from TRX_OFF to TX_ON to do a - * calibration, we need to reset the timeout for the + /* state change from TRX_OFF to TX_ON or ARET_ON to do + * a calibration, we need to reset the timeout for the * next one. */ lp->cal_timeout = jiffies + AT86RF2XX_CAL_LOOP_TIMEOUT; -- 2.3.6