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

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.