[Linux-zigbee-devel] [PATCH v5 net-next 05/13] at86rf230: add support for at86rf23x desense

2014-06-28 Thread Alexander Aring
To set the CCA_ED_THRES register the calculation for at86rf23x is different than for at86rf212. This patch adds a new callback for this calculation in chip data struct. Signed-off-by: Alexander Aring --- drivers/net/ieee802154/at86rf230.c | 22 ++ 1 file changed, 18 insertion

[Linux-zigbee-devel] [PATCH v5 net-next 07/13] at86rf230: move RX_SAFE_MODE setting to hw_init

2014-06-28 Thread Alexander Aring
There is no need to set this bit in start callback which could be called more than once. Signed-off-by: Alexander Aring --- drivers/net/ieee802154/at86rf230.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154

[Linux-zigbee-devel] [PATCH v5 net-next 12/13] at86rf230: add sleep cycle timing

2014-06-28 Thread Alexander Aring
Signed-off-by: Alexander Aring --- drivers/net/ieee802154/at86rf230.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c index 548b69d..a46ef43 100644 --- a/drivers/net/ieee802154/at86rf230.c +++ b/dri

[Linux-zigbee-devel] [PATCH v5 net-next 11/13] at86rf230: add timing for channel switch

2014-06-28 Thread Alexander Aring
Signed-off-by: Alexander Aring --- drivers/net/ieee802154/at86rf230.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c index 2220c74..548b69d 100644 --- a/drivers/net/ieee802154/at86rf230.c +++ b/dr

[Linux-zigbee-devel] [PATCH v5 net-next 02/13] at86rf230: add regmap support

2014-06-28 Thread Alexander Aring
This patch adds regmap support for the at86rf230 driver and drop the lowlevel spi access functions and use the regmap access functions. Signed-off-by: Alexander Aring --- drivers/net/ieee802154/Kconfig | 1 + drivers/net/ieee802154/at86rf230.c | 272 +++-- 2

[Linux-zigbee-devel] [PATCH v5 net-next 10/13] at86rf230: rework reset to trx_off state change

2014-06-28 Thread Alexander Aring
Signed-off-by: Alexander Aring --- drivers/net/ieee802154/at86rf230.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c index 9829248..2220c74 100644 --- a/drivers/net/ieee802154/at86rf230.

[Linux-zigbee-devel] [PATCH v5 net-next 08/13] at86rf230: rework irq_pol setting

2014-06-28 Thread Alexander Aring
This patch rework the irq_pol register setting for rising and falling interrupt settings only. The default behaviour should be rising flag. Also use IRQ_TYPE_* defines instead of IRQF_* defines. There is no functionality change but irq_get_trigger_type returns IRQ_TYPE_* defines. Signed-off-by: A

[Linux-zigbee-devel] [PATCH v5 net-next 01/13] mac802154: at86rf230: add hw flags and merge ops

2014-06-28 Thread Alexander Aring
This patch adds new mac802154 hw flags for transmit power, csma and listen before transmit (lbt). These flags indicates that the transceiver supports these features. In ieee802154_register_device the callbacks are setted by hw flags instead of checking of null. This patch merges also all at86rf230

[Linux-zigbee-devel] [PATCH v5 net-next 03/13] at86rf230: rework detect device handling

2014-06-28 Thread Alexander Aring
This patch drops the current lowlevel spi calls for the detect device function instead we handle this via regmap. Also put the detection of in a seperate function and set all device specific attributes while detection. Signed-off-by: Alexander Aring --- drivers/net/ieee802154/at86rf230.c | 183 +

[Linux-zigbee-devel] [PATCH v5 net-next 09/13] at86rf230: rework state change and start/stop

2014-06-28 Thread Alexander Aring
This patch removes the current synchron state change function and add a new function for a state assert. Change the start and stop callbacks to use this new synchron state change behaviour. It's a wrapper around the async state change function. Signed-off-by: Alexander Aring --- drivers/net/ieee

[Linux-zigbee-devel] [PATCH v5 net-next 06/13] at86rf230: rework transmit and receive handling

2014-06-28 Thread Alexander Aring
This patch is a complete reimplementation of transmit and receive handling for the at86rf230 driver. It solves also six bugs: First: The RX_SAFE_MODE is enabled and the transceiver doesn't leave the receive state while the framebuffer isn't read by a CMD_FB command. This is useful to read out th

[Linux-zigbee-devel] [PATCH v5 net-next 13/13] at86rf230: add new author

2014-06-28 Thread Alexander Aring
Signed-off-by: Alexander Aring --- drivers/net/ieee802154/at86rf230.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c index a46ef43..ec62467 100644 --- a/drivers/net/ieee802154/at86rf230.c +++ b/drivers/net/ieee802154/at

[Linux-zigbee-devel] [PATCH v5 net-next 00/13] at86rf230: rework driver implementation

2014-06-28 Thread Alexander Aring
Hi, This patch series is a rework of the at86rf230 driver. There are several changes: - Regmap support. - Drop of irqworker. This is a workqueue which will scheduled by an irq to handle synchronous spi handling. Instead using asynchronous spi handling, so no scheduler is involved at irq hand

[Linux-zigbee-devel] [PATCH net-next 03/13] at86rf230: rework detect device handling

2014-06-28 Thread Alexander Aring
This patch drops the current lowlevel spi calls for the detect device function instead we handle this via regmap. Also put the detection of in a seperate function and set all device specific attributes while detection. Signed-off-by: Alexander Aring --- drivers/net/ieee802154/at86rf230.c | 183 +

[Linux-zigbee-devel] [PATCH net-next 12/13] at86rf230: add sleep cycle timing

2014-06-28 Thread Alexander Aring
Signed-off-by: Alexander Aring --- drivers/net/ieee802154/at86rf230.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c index 548b69d..a46ef43 100644 --- a/drivers/net/ieee802154/at86rf230.c +++ b/dri

[Linux-zigbee-devel] [PATCH net-next 02/13] at86rf230: add regmap support

2014-06-28 Thread Alexander Aring
This patch adds regmap support for the at86rf230 driver and drop the lowlevel spi access functions and use the regmap access functions. Signed-off-by: Alexander Aring --- drivers/net/ieee802154/Kconfig | 1 + drivers/net/ieee802154/at86rf230.c | 272 +++-- 2

[Linux-zigbee-devel] [PATCH net-next 00/13] at86rf230: rework driver implementation

2014-06-28 Thread Alexander Aring
Hi, This patch series includes a rework of the at86rf230 driver. There are several changes: - Add regmap support. - Merge at86rf212 operations with generic at86rf2xx operations, all chips supports these operations. - Drop of irqworker. This is a workqueue which will scheduled by an irq to

[Linux-zigbee-devel] [PATCH net-next 06/13] at86rf230: rework transmit and receive handling

2014-06-28 Thread Alexander Aring
This patch is a complete reimplementation of transmit and receive handling for the at86rf230 driver. It solves also six bugs: First: The RX_SAFE_MODE is enabled and the transceiver doesn't leave the receive state while the framebuffer isn't read by a CMD_FB command. This is useful to read out th

[Linux-zigbee-devel] [PATCH net-next 09/13] at86rf230: rework state change and start/stop

2014-06-28 Thread Alexander Aring
This patch removes the current synchron state change function and add a new function for a state assert. Change the start and stop callbacks to use this new synchron state change behaviour. It's a wrapper around the async state change function. Signed-off-by: Alexander Aring --- drivers/net/ieee

[Linux-zigbee-devel] [PATCH net-next 13/13] at86rf230: add new author

2014-06-28 Thread Alexander Aring
Signed-off-by: Alexander Aring --- drivers/net/ieee802154/at86rf230.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c index a46ef43..ec62467 100644 --- a/drivers/net/ieee802154/at86rf230.c +++ b/drivers/net/ieee802154/at

[Linux-zigbee-devel] [PATCH net-next 04/13] at86rf230: remove is212 and add driver data

2014-06-28 Thread Alexander Aring
This patch adds a new at86rf2xx_chip_data structure which holds device specific attributes. Instead of runtime decisions "if (is212())" we set callbacks/attributes while device detection. Signed-off-by: Alexander Aring --- drivers/net/ieee802154/at86rf230.c | 59 +++--

[Linux-zigbee-devel] [PATCH net-next 10/13] at86rf230: rework reset to trx_off state change

2014-06-28 Thread Alexander Aring
Signed-off-by: Alexander Aring --- drivers/net/ieee802154/at86rf230.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c index 9829248..2220c74 100644 --- a/drivers/net/ieee802154/at86rf230.

[Linux-zigbee-devel] [PATCH net-next 07/13] at86rf230: move RX_SAFE_MODE setting to hw_init

2014-06-28 Thread Alexander Aring
There is no need to set this bit in start callback which could be called more than once. Signed-off-by: Alexander Aring --- drivers/net/ieee802154/at86rf230.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154

[Linux-zigbee-devel] [PATCH net-next 08/13] at86rf230: rework irq_pol setting

2014-06-28 Thread Alexander Aring
This patch rework the irq_pol register setting for rising and falling interrupt settings only. The default behaviour should be rising flag. Also use IRQ_TYPE_* defines instead of IRQF_* defines. There is no functionality change but irq_get_trigger_type returns IRQ_TYPE_* defines. Signed-off-by: A

[Linux-zigbee-devel] [PATCH net-next 11/13] at86rf230: add timing for channel switch

2014-06-28 Thread Alexander Aring
Signed-off-by: Alexander Aring --- drivers/net/ieee802154/at86rf230.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c index 2220c74..548b69d 100644 --- a/drivers/net/ieee802154/at86rf230.c +++ b/dr

[Linux-zigbee-devel] [PATCH net-next 01/13] mac802154: at86rf230: add hw flags and merge ops

2014-06-28 Thread Alexander Aring
This patch adds new mac802154 hw flags for transmit power, csma and listen before transmit (lbt). These flags indicates that the transceiver supports these features. In ieee802154_register_device the callbacks are setted by hw flags instead of checking of null. This patch merges also all at86rf230

[Linux-zigbee-devel] [PATCH net-next 05/13] at86rf230: add support for at86rf23x desense

2014-06-28 Thread Alexander Aring
To set the CCA_ED_THRES register the calculation for at86rf23x is different than for at86rf212. This patch adds a new callback for this calculation in chip data struct. Signed-off-by: Alexander Aring --- drivers/net/ieee802154/at86rf230.c | 22 ++ 1 file changed, 18 insertion