All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Schmidt <s.schmidt@samsung.com>
To: 'Andrey Yurovsky' <andrey@snupi.com>, linux-wpan@vger.kernel.org
Cc: 'Andrey Yurovsky' <yurovsky@gmail.com>, alex.aring@gmail.com
Subject: Re: [PATCH] at86rf230: remove version check for AT86RF212
Date: Fri, 12 Dec 2014 08:50:50 +0000	[thread overview]
Message-ID: <243a01d015e8$bb7cf930$3276eb90$@samsung.com> (raw)
In-Reply-To: <1418339480-26681-1-git-send-email-andrey@snupi.com>

Hello.

On 12/12/14 00:11, Andrey Yurovsky wrote:
> From: Andrey Yurovsky <yurovsky@gmail.com>
>
> This version check allows the driver to only work with v1 hardware
> however there is no driver-facing difference with newer versions
> (confirmed by Atmel FAEs) so this check needlessly prevents the driver
> from being used with radios now in production.

Has anyone tested the driver with this new hardware yet? Or are the 
productions so early that there are now samples yet?

> Signed-off-by: Andrey Yurovsky <yurovsky@gmail.com>
> ---
>   drivers/net/ieee802154/at86rf230.c | 16 ++++++----------
>   1 file changed, 6 insertions(+), 10 deletions(-)
>
> diff --git a/drivers/net/ieee802154/at86rf230.c
> b/drivers/net/ieee802154/at86rf230.c
> index 1c01356..007470f 100644
> --- a/drivers/net/ieee802154/at86rf230.c
> +++ b/drivers/net/ieee802154/at86rf230.c
> @@ -1429,16 +1429,12 @@ at86rf230_detect_device(struct at86rf230_local
> *lp)
>   		break;
>   	case 7:
>   		chip = "at86rf212";
> -		if (version == 1) {
> -			lp->data = &at86rf212_data;
> -			lp->hw->flags |= IEEE802154_HW_LBT;
> -			lp->hw->phy->channels_supported[0] = 0x00007FF;
> -			lp->hw->phy->channels_supported[2] = 0x00007FF;
> -			lp->hw->phy->current_channel = 5;
> -			lp->hw->phy->symbol_duration = 25;
> -		} else {
> -			rc = -ENOTSUPP;
> -		}
> +		lp->data = &at86rf212_data;
> +		lp->hw->flags |= IEEE802154_HW_LBT;
> +		lp->hw->phy->channels_supported[0] = 0x00007FF;
> +		lp->hw->phy->channels_supported[2] = 0x00007FF;
> +		lp->hw->phy->current_channel = 5;
> +		lp->hw->phy->symbol_duration = 25;
>   		break;
>   	case 11:
>   		chip = "at86rf233";
>

Change looks good.

Reviewed-by: Stefan Schmidt <s.schmidt@samsung.com>

regards
Stefan Schmidt



  reply	other threads:[~2014-12-12  8:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-11 23:11 [PATCH] at86rf230: remove version check for AT86RF212 Andrey Yurovsky
2014-12-12  8:50 ` Stefan Schmidt [this message]
2014-12-12 15:08   ` Alexander Aring
2014-12-12 15:10 ` Alexander Aring

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='243a01d015e8$bb7cf930$3276eb90$@samsung.com' \
    --to=s.schmidt@samsung.com \
    --cc=alex.aring@gmail.com \
    --cc=andrey@snupi.com \
    --cc=linux-wpan@vger.kernel.org \
    --cc=yurovsky@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.