[PATCH net 0/2] at86rf230: various fixes

STALE4491d

2 messages, 2 authors, 2014-04-14 · open the first message on its own page

[PATCH net 0/2] at86rf230: various fixes

From: Alexander Aring <hidden>
Date: 2014-04-14 16:06:44

Hi,

I currently working on a big cleanup for the at86rf230 and I detect some bugs
in the current implementation. I will send patch stacks if net-next is open
again.

It's funny to find the forgotten shift and mask in the __at86rf230_read_subreg
function but it only makes trouble if csma is activated that's why it still works
before for me.

- Alex

Alexander Aring (2):
  at86rf230: remove check if AVDD settled
  at86rf230: fix __at86rf230_read_subreg function

 drivers/net/ieee802154/at86rf230.c | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

-- 
1.9.2


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech

[PATCH net 1/2] at86rf230: remove check if AVDD settled

From: Alexander Aring <alex.aring@gmail.com>
Date: 2014-04-14 16:06:56

The AVDD regulator is only settled TX_ON (PLL_ON) state. Since commit
7dcbd22a97eb0689e6c583ad630ae0e7341e34c1 ("ieee802154: ensure that first
RF212 state comes from TRX_OFF"). We are in TRX_OFF state at the
beginning.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
---
 drivers/net/ieee802154/at86rf230.c | 8 --------
 1 file changed, 8 deletions(-)
diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c
index 430bb0d..e102eef 100644
--- a/drivers/net/ieee802154/at86rf230.c
+++ b/drivers/net/ieee802154/at86rf230.c
@@ -1025,14 +1025,6 @@ static int at86rf230_hw_init(struct at86rf230_local *lp)
 		return -EINVAL;
 	}
 
-	rc = at86rf230_read_subreg(lp, SR_AVDD_OK, &status);
-	if (rc)
-		return rc;
-	if (!status) {
-		dev_err(&lp->spi->dev, "AVDD error\n");
-		return -EINVAL;
-	}
-
 	return 0;
 }
 
-- 
1.9.2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help