Re: [Linux-zigbee-devel] where can I get linux-zigbee-devel latest repositories?

2014-06-27 Thread Varka Bhadram
Hi Alex, On 06/27/2014 12:07 PM, Alexander Aring wrote: > On Fri, Jun 27, 2014 at 09:47:54AM +0530, Varka Bhadram wrote: >> On 06/27/2014 07:44 AM, gnuarmfuns wrote: >>> Hi, >>> >>> I am developing IEEE 802.15.4 linux driver, I get the git repositories >> >from sourceforge.net, but the code date i

Re: [Linux-zigbee-devel] where can I get linux-zigbee-devel latest repositories?

2014-06-27 Thread Alexander Aring
Hi, On Fri, Jun 27, 2014 at 01:41:33PM +0530, Varka Bhadram wrote: > Hi Alex, > > On 06/27/2014 12:07 PM, Alexander Aring wrote: > >On Fri, Jun 27, 2014 at 09:47:54AM +0530, Varka Bhadram wrote: > >>On 06/27/2014 07:44 AM, gnuarmfuns wrote: > >>>Hi, > >>> > >>>I am developing IEEE 802.15.4 linux

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

2014-06-27 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 v2 net-next 12/12] at86rf230: add new author

2014-06-27 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 00fbba2..981d2e5 100644 --- a/drivers/net/ieee802154/at86rf230.c +++ b/drivers/net/ieee802154/at

[Linux-zigbee-devel] [PATCH v2 net-next 01/12] at86rf230: add regmap support

2014-06-27 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 02/12] at86rf230: rework detect device handling

2014-06-27 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 v2 net-next 09/12] at86rf230: rework reset to trx_off state change

2014-06-27 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 36cc161..65c6811 100644 --- a/drivers/net/ieee802154/at86rf230.

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

2014-06-27 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 10/12] at86rf230: add timing for channel switch

2014-06-27 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 65c6811..efaa3c0 100644 --- a/drivers/net/ieee802154/at86rf230.c +++ b/dri

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

2014-06-27 Thread Alexander Aring
Signed-off-by: Alexander Aring --- drivers/net/ieee802154/at86rf230.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c index efaa3c0..00fbba2 100644 --- a/drivers/net/ieee802154/at86rf230.c +++ b/driv

[Linux-zigbee-devel] [PATCH v2 net-next 08/12] at86rf230: rework state change and start/stop

2014-06-27 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 03/12] at86rf230: remove is212 and add driver data

2014-06-27 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 05/12] at86rf230: rework transmit and receive handling

2014-06-27 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 07/12] at86rf230: rework irq_pol setting

2014-06-27 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/12] at86rf230: add support for at86rf23x desense

2014-06-27 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

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

2014-06-27 Thread Varka Bhadram
On 06/27/2014 03:49 PM, Alexander Aring wrote: > Signed-off-by: Alexander Aring > --- > drivers/net/ieee802154/at86rf230.c | 6 +- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/drivers/net/ieee802154/at86rf230.c > b/drivers/net/ieee802154/at86rf230.c > index efaa3c0..00

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

2014-06-27 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 05/13] at86rf230: add support for at86rf23x desense

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

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

2014-06-27 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 03/13] at86rf230: rework detect device handling

2014-06-27 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 08/13] at86rf230: rework irq_pol setting

2014-06-27 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 07/13] at86rf230: move RX_SAFE_MODE setting to hw_init

2014-06-27 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 11/13] at86rf230: add timing for channel switch

2014-06-27 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 15dd01f..f21d162 100644 --- a/drivers/net/ieee802154/at86rf230.c +++ b/dri

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

2014-06-27 Thread Alexander Aring
Signed-off-by: Alexander Aring --- drivers/net/ieee802154/at86rf230.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c index f21d162..f6926ad 100644 --- a/drivers/net/ieee802154/at86rf230.c +++ b/driv

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

2014-06-27 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 09/13] at86rf230: rework state change and start/stop

2014-06-27 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 13/13] at86rf230: add new author

2014-06-27 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 f6926ad..eac345b 100644 --- a/drivers/net/ieee802154/at86rf230.c +++ b/drivers/net/ieee802154/at

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

2014-06-27 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 62a1b0a..15dd01f 100644 --- a/drivers/net/ieee802154/at86rf230.

[Linux-zigbee-devel] Fwd: Re: [PATCH v2 net-next 11/12] at86rf230: add sleep cycle timing

2014-06-27 Thread Varka Bhadram
sorry... usleep_range() Original Message Subject: Re: [Linux-zigbee-devel] [PATCH v2 net-next 11/12] at86rf230: add sleep cycle timing Date: Fri, 27 Jun 2014 16:14:54 +0530 From: Varka Bhadram To: Alexander Aring CC: linux-zigbee-devel On 06/27/2014 03:49

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

2014-06-27 Thread Alexander Aring
Hi, On Fri, Jun 27, 2014 at 04:14:54PM +0530, Varka Bhadram wrote: > On 06/27/2014 03:49 PM, Alexander Aring wrote: > >Signed-off-by: Alexander Aring > >--- > > drivers/net/ieee802154/at86rf230.c | 6 +- > > 1 file changed, 5 insertions(+), 1 deletion(-) > > > >diff --git a/drivers/net/ieee8

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

2014-06-27 Thread Varka Bhadram
On 06/27/2014 04:23 PM, Alexander Aring wrote: > Hi, > > On Fri, Jun 27, 2014 at 04:14:54PM +0530, Varka Bhadram wrote: >> On 06/27/2014 03:49 PM, Alexander Aring wrote: >>> Signed-off-by: Alexander Aring >>> --- >>> drivers/net/ieee802154/at86rf230.c | 6 +- >>> 1 file changed, 5 insertion

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

2014-06-27 Thread Phoebe Buckheister
On Fri, 27 Jun 2014 16:51:40 +0530 Varka Bhadram wrote: > On 06/27/2014 04:23 PM, Alexander Aring wrote: > > Hi, > > > > On Fri, Jun 27, 2014 at 04:14:54PM +0530, Varka Bhadram wrote: > >> On 06/27/2014 03:49 PM, Alexander Aring wrote: > >>> Signed-off-by: Alexander Aring > >>> --- > >>> drive

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

2014-06-27 Thread Alexander Aring
On Fri, Jun 27, 2014 at 04:51:40PM +0530, Varka Bhadram wrote: > On 06/27/2014 04:23 PM, Alexander Aring wrote: > >Hi, > > > >On Fri, Jun 27, 2014 at 04:14:54PM +0530, Varka Bhadram wrote: > >>On 06/27/2014 03:49 PM, Alexander Aring wrote: > >>>Signed-off-by: Alexander Aring > >>>--- > >>> driver

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

2014-06-27 Thread Alexander Aring
On Fri, Jun 27, 2014 at 01:20:11PM +0200, Phoebe Buckheister wrote: > On Fri, 27 Jun 2014 16:51:40 +0530 > Varka Bhadram wrote: > > > On 06/27/2014 04:23 PM, Alexander Aring wrote: > > > Hi, > > > > > > On Fri, Jun 27, 2014 at 04:14:54PM +0530, Varka Bhadram wrote: > > >> On 06/27/2014 03:49 PM,

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

2014-06-27 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 c130026..c724fb7 100644 --- a/drivers/net/ieee802154/at86rf230.c +++ b/dri

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

2014-06-27 Thread Varka Bhadram
Hi Alex, On 06/27/2014 04:16 PM, Alexander Aring wrote: > + > +static void > +at86rf230_rx(struct at86rf230_local *lp, > + const u8 *data, u8 len) const u8 len ? > +{ > + u8 lqi; > + struct sk_buff *skb; > + u8 rx_local_buf[AT86RF2XX_MAX_BUF]; memset() for rx_local_buf ?

Re: [Linux-zigbee-devel] [PATCH v2 net-next 05/12] at86rf230: rework transmit and receive handling

2014-06-27 Thread Varka Bhadram
On 06/27/2014 03:49 PM, Alexander Aring wrote: > + > +static void > +at86rf230_rx(struct at86rf230_local *lp, > + const u8 *data, u8 len) > +{ > + u8 lqi; > + struct sk_buff *skb; > + u8 rx_local_buf[AT86RF2XX_MAX_BUF]; > + > + memcpy(rx_local_buf, data, len); > + enabl

[Linux-zigbee-devel] Fwd: Re: [PATCH v2 net-next 05/12] at86rf230: rework transmit and receive handling

2014-06-27 Thread Varka Bhadram
Hi, On 06/27/2014 03:49 PM, Alexander Aring wrote: > + > +static void > +at86rf230_rx(struct at86rf230_local *lp, > + const u8 *data, u8 len) > +{ > + u8 lqi; > + struct sk_buff *skb; > + u8 rx_local_buf[AT86RF2XX_MAX_BUF]; > + > + memcpy(rx_local_buf, data, len); > +

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

2014-06-27 Thread Alexander Aring
On Fri, Jun 27, 2014 at 05:35:00PM +0530, Varka Bhadram wrote: > Hi Alex, > > > On 06/27/2014 04:16 PM, Alexander Aring wrote: > > + > > +static void > > +at86rf230_rx(struct at86rf230_local *lp, > > +const u8 *data, u8 len) > > const u8 len ? > len will be changed during runtime above

Re: [Linux-zigbee-devel] [PATCH v2 net-next 05/12] at86rf230: rework transmit and receive handling

2014-06-27 Thread Alexander Aring
On Fri, Jun 27, 2014 at 05:44:50PM +0530, Varka Bhadram wrote: > On 06/27/2014 03:49 PM, Alexander Aring wrote: > >+ > >+static void > >+at86rf230_rx(struct at86rf230_local *lp, > >+ const u8 *data, u8 len) > >+{ > >+u8 lqi; > >+struct sk_buff *skb; > >+u8 rx_local_buf[AT86RF2XX

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

2014-06-27 Thread Varka Bhadram
On 06/27/2014 05:52 PM, Alexander Aring wrote: > On Fri, Jun 27, 2014 at 05:35:00PM +0530, Varka Bhadram wrote: >> Hi Alex, >> >> >> On 06/27/2014 04:16 PM, Alexander Aring wrote: >>> + >>> +static void >>> +at86rf230_rx(struct at86rf230_local *lp, >>> +const u8 *data, u8 len) >> const u8 l

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

2014-06-27 Thread Alexander Aring
On Fri, Jun 27, 2014 at 06:00:58PM +0530, Varka Bhadram wrote: > On 06/27/2014 05:52 PM, Alexander Aring wrote: > >On Fri, Jun 27, 2014 at 05:35:00PM +0530, Varka Bhadram wrote: > >>Hi Alex, > >> > >> > >>On 06/27/2014 04:16 PM, Alexander Aring wrote: > >>>+ > >>>+static void > >>>+at86rf230_rx(str

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

2014-06-27 Thread Varka Bhadram
On 06/27/2014 06:07 PM, Alexander Aring wrote: > On Fri, Jun 27, 2014 at 06:00:58PM +0530, Varka Bhadram wrote: >> On 06/27/2014 05:52 PM, Alexander Aring wrote: >>> On Fri, Jun 27, 2014 at 05:35:00PM +0530, Varka Bhadram wrote: Hi Alex, On 06/27/2014 04:16 PM, Alexander Aring w

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

2014-06-27 Thread Alexander Aring
On Fri, Jun 27, 2014 at 06:09:31PM +0530, Varka Bhadram wrote: > On 06/27/2014 06:07 PM, Alexander Aring wrote: > >On Fri, Jun 27, 2014 at 06:00:58PM +0530, Varka Bhadram wrote: > >>On 06/27/2014 05:52 PM, Alexander Aring wrote: > >>>On Fri, Jun 27, 2014 at 05:35:00PM +0530, Varka Bhadram wrote: >

Re: [Linux-zigbee-devel] [PATCH net-next v2] 6lowpan: mac802154: fix coding style issues

2014-06-27 Thread Alexander Aring
On Fri, Jun 27, 2014 at 09:37:25AM +0530, Varka Bhadram wrote: > This patch fixed the coding style issues reported by checkpatch.pl > > following issues fixed: > CHECK: Alignment should match open parenthesis > WARNING: line over 80 characters > CHECK: Blank lines aren't necessar