Re: [Linux-zigbee-devel] Linux-Zigbee Wiki

2014-07-02 Thread Varka Bhadram
On 07/03/2014 04:23 AM, Alexander Aring wrote: > Hi, > > On Sun, Jun 29, 2014 at 01:28:50PM +0200, Thomas Kühnel wrote: >> Hi, >> >> What happened to the wiki at >> http://sourceforge.net/apps/trac/linux-zigbee/wiki/ ? >> Since 1 or 2 weeks ago it doesn't work anymore and just redirects to the >> m

Re: [Linux-zigbee-devel] [PATCH net] ieee802154: reassembly: fix possible buffer overflow

2014-07-02 Thread David Miller
From: Alexander Aring Date: Sun, 29 Jun 2014 13:10:18 +0200 > The max_dsize attribute in ctl_table for lowpan_frags_ns_ctl_table is > configured with integer accessing methods. This patch change the > max_dsize attribute to int to avoid a possible buffer overflow. > > Signed-off-by: Alexander Ar

Re: [Linux-zigbee-devel] Linux-Zigbee Wiki

2014-07-02 Thread Alexander Aring
Hi, On Sun, Jun 29, 2014 at 01:28:50PM +0200, Thomas Kühnel wrote: > Hi, > > What happened to the wiki at > http://sourceforge.net/apps/trac/linux-zigbee/wiki/ ? > Since 1 or 2 weeks ago it doesn't work anymore and just redirects to the > main project page on SourceForge. > I have admin access

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

2014-07-02 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 a64914a..dbf85b8 100644 --- a/drivers/net/ieee802154/at86rf230.c +++ b/dr

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

2014-07-02 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 79ec843..c9d2a75 100644 --- a/drivers/net/ieee802154/at86rf230.c +++ b/drivers/net/ieee802154/at

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

2014-07-02 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 v3 net-next 09/13] at86rf230: rework state change and start/stop

2014-07-02 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 v3 net-next 06/13] at86rf230: rework transmit and receive handling

2014-07-02 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 v3 net-next 12/13] at86rf230: add sleep cycle timing

2014-07-02 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 dbf85b8..79ec843 100644 --- a/drivers/net/ieee802154/at86rf230.c +++ b/dri

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

2014-07-02 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 v3 net-next 10/13] at86rf230: rework reset to trx_off state change

2014-07-02 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 265fea8..a64914a 100644 --- a/drivers/net/ieee802154/at86rf230.

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

2014-07-02 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. If the flags are set and the driver doesn't implement the necessary functions, then ieee802154_register_device returns -ENOSYS "Funct

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

2014-07-02 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 v3 net-next 07/13] at86rf230: move RX_SAFE_MODE setting to hw_init

2014-07-02 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 v3 net-next 02/13] at86rf230: add regmap support

2014-07-02 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 v3 net-next 05/13] at86rf230: add support for at86rf23x desense

2014-07-02 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 v3 net-next 00/13] at86rf230: rework driver implementation

2014-07-02 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

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

2014-07-02 Thread Alexander Aring
Hi, On Wed, Jul 02, 2014 at 05:10:05PM +0200, Alexander Aring wrote: > 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 > functionali

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

2014-07-02 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 v2 net-next 12/13] at86rf230: add sleep cycle timing

2014-07-02 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 517a30f..336940b 100644 --- a/drivers/net/ieee802154/at86rf230.c +++ b/dri

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

2014-07-02 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 v2 net-next 04/13] at86rf230: remove is212 and add driver data

2014-07-02 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 v2 net-next 11/13] at86rf230: add timing for channel switch

2014-07-02 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 87685d4..517a30f 100644 --- a/drivers/net/ieee802154/at86rf230.c +++ b/dr

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

2014-07-02 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 696a604..87685d4 100644 --- a/drivers/net/ieee802154/at86rf230.

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

2014-07-02 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 v2 net-next 13/13] at86rf230: add new author

2014-07-02 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 336940b..3294fec 100644 --- a/drivers/net/ieee802154/at86rf230.c +++ b/drivers/net/ieee802154/at

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

2014-07-02 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 v2 net-next 02/13] at86rf230: add regmap support

2014-07-02 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 v2 net-next 09/13] at86rf230: rework state change and start/stop

2014-07-02 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 v2 net-next 00/13] at86rf230: rework driver implementation

2014-07-02 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 v2 net-next 01/13] mac802154: at86rf230: add hw flags and merge ops

2014-07-02 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. If the flags are set and the driver doesn't implement the necessary functions, then ieee802154_register_device returns -ENOSYS "Funct

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

2014-07-02 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 +