Re: [Linux-zigbee-devel] [PATCH net] at86rf230: fix lockdep splats

2014-03-13 Thread David Miller
From: Alexander Aring Date: Wed, 12 Mar 2014 08:21:24 +0100 > This patch fix a lockdep in the at86rf230 driver, otherwise we get: ... > Signed-off-by: Alexander Aring Applied, thank you. -- Learn Graph Databases - Dow

[Linux-zigbee-devel] [PATCH net-next v2 0/5] at86rf230: various fixes and devicetree

2014-03-13 Thread Alexander Aring
Hi all, this patch series is v2 of my lastest at86rf230 patch serie. If all seems fine I will send it to netdev later. I already sent the lockdep splats fix to net which is a bugfix for stable. - Alex changes since v2: - change state change to STATE_TX_ON. - add change reset timings patch. -

[Linux-zigbee-devel] [PATCH net-next v2 4/5] at86rf230: make reset pin optionally

2014-03-13 Thread Alexander Aring
This patch make the reset pin optionally. Some devices like the atben from qi-hardware don't have a reset pin externally. The usually way is to turn power off/on for the atben device to initiate a device reset. Signed-off-by: Alexander Aring --- drivers/net/ieee802154/at86rf230.c | 34 ++

[Linux-zigbee-devel] [PATCH net-next v2 2/5] at86rf230: move locking state in xmit

2014-03-13 Thread Alexander Aring
There is no need to lock the clearing of IRQ_TRX_END in status. Signed-off-by: Alexander Aring --- drivers/net/ieee802154/at86rf230.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c index 0edd795..fca997

[Linux-zigbee-devel] [PATCH net-next v2 5/5] at86rf230: add support for devicetree

2014-03-13 Thread Alexander Aring
This patch adds devicetree support for the at86rf230 driver. Possible gpios to configure are "reset-gpio" and "sleep-gpio". Also add support to configure the "irq-type" for the irq polarity register. Signed-off-by: Alexander Aring --- drivers/net/ieee802154/at86rf230.c | 48

[Linux-zigbee-devel] [PATCH net-next v2 3/5] at86rf230: change reset timings

2014-03-13 Thread Alexander Aring
While checkpatch another patch I got a: "WARNING: msleep < 20ms can sleep for up to 20ms" The datasheet of at86rf231 and at86rf212 says a minimum delay for reset pulse width and spi access latency after reset is 625 nanoseconds. This patch removes the 1 milliseconds sleep and replace it with a 1

[Linux-zigbee-devel] [PATCH net-next v2 1/5] at86rf230: fix unexpected state change

2014-03-13 Thread Alexander Aring
This patch fix a unexpected state change for the at86rf231 chip. We can't change into STATE_FORCE_TX_ON while the chip is in one of SLEEP, P_ON, RESET, TRX_OFF, and all *_NOCLK states. In this case we are in the TRX_OFF state. See datasheet [1] page 71 for more information. Without this patch you