summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Yurovsky <yurovsky@gmail.com>2014-12-19 00:36:18 +0100
committerMarcel Holtmann <marcel@holtmann.org>2014-12-19 01:49:01 +0100
commit4ecc8a559bc5173708a33bbd719b27af05bdce34 (patch)
treeb799fcb71e5bb44047756dd3113ce87ef6dc7208
parentat86rf230: fix register read for part version (diff)
downloadlinux-4ecc8a559bc5173708a33bbd719b27af05bdce34.tar.xz
linux-4ecc8a559bc5173708a33bbd719b27af05bdce34.zip
at86rf230: remove version check for AT86RF212
This version check allows the driver to only work with v=1 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. Tested on AT86RF212B radio (which came up as v=3). Signed-off-by: Andrey Yurovsky <yurovsky@gmail.com> Reviewed-by: Stefan Schmidt <s.schmidt@samsung.com> Acked-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
-rw-r--r--drivers/net/ieee802154/at86rf230.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c
index b37c0249080d..79fbf3809745 100644
--- a/drivers/net/ieee802154/at86rf230.c
+++ b/drivers/net/ieee802154/at86rf230.c
@@ -1451,16 +1451,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";