All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] at86rf230: remove version check for AT86RF212
@ 2014-12-11 23:11 Andrey Yurovsky
  2014-12-12  8:50 ` Stefan Schmidt
  2014-12-12 15:10 ` Alexander Aring
  0 siblings, 2 replies; 4+ messages in thread
From: Andrey Yurovsky @ 2014-12-11 23:11 UTC (permalink / raw)
  To: linux-wpan; +Cc: Andrey Yurovsky, alex.aring

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.

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";
-- 
2.1.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] at86rf230: remove version check for AT86RF212
  2014-12-11 23:11 [PATCH] at86rf230: remove version check for AT86RF212 Andrey Yurovsky
@ 2014-12-12  8:50 ` Stefan Schmidt
  2014-12-12 15:08   ` Alexander Aring
  2014-12-12 15:10 ` Alexander Aring
  1 sibling, 1 reply; 4+ messages in thread
From: Stefan Schmidt @ 2014-12-12  8:50 UTC (permalink / raw)
  To: 'Andrey Yurovsky', linux-wpan
  Cc: 'Andrey Yurovsky', alex.aring

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] at86rf230: remove version check for AT86RF212
  2014-12-12  8:50 ` Stefan Schmidt
@ 2014-12-12 15:08   ` Alexander Aring
  0 siblings, 0 replies; 4+ messages in thread
From: Alexander Aring @ 2014-12-12 15:08 UTC (permalink / raw)
  To: Stefan Schmidt
  Cc: 'Andrey Yurovsky', linux-wpan, 'Andrey Yurovsky'

On Fri, Dec 12, 2014 at 08:50:50AM +0000, Stefan Schmidt wrote:
> 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?
> 

It's okay I know Andrey version mismatch battle a long time ago and he
used one of the transceivers so I suppose he also tested it.

- Alex

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] at86rf230: remove version check for AT86RF212
  2014-12-11 23:11 [PATCH] at86rf230: remove version check for AT86RF212 Andrey Yurovsky
  2014-12-12  8:50 ` Stefan Schmidt
@ 2014-12-12 15:10 ` Alexander Aring
  1 sibling, 0 replies; 4+ messages in thread
From: Alexander Aring @ 2014-12-12 15:10 UTC (permalink / raw)
  To: Andrey Yurovsky; +Cc: linux-wpan, Andrey Yurovsky

On Thu, Dec 11, 2014 at 03:11:20PM -0800, 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.
> 
> Signed-off-by: Andrey Yurovsky <yurovsky@gmail.com>

I checked also the symbol duration and all these settings are the same
like the at86rf212 "version 1". So:

Acked-by: Alexander Aring <alex.aring@gmail.com>

- Alex

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-12-12 15:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-11 23:11 [PATCH] at86rf230: remove version check for AT86RF212 Andrey Yurovsky
2014-12-12  8:50 ` Stefan Schmidt
2014-12-12 15:08   ` Alexander Aring
2014-12-12 15:10 ` Alexander Aring

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.