[Linux-zigbee-devel] [PATCH] 6lowpan: Sync default hardware address of lowpan links to their wpan

2013-10-05 Thread Alan Ott
When a lowpan link to a wpan device is created, set the hardware address of the lowpan link to that of the wpan device. Signed-off-by: Alan Ott --- net/ieee802154/6lowpan.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c index c85e71e..f

Re: [Linux-zigbee-devel] [PATCH] 6lowpan: Sync default hardware address of lowpan links to their wpan

2013-10-05 Thread Alexander Aring
Hi Alan, On Sat, Oct 05, 2013 at 05:38:00PM -0400, Alan Ott wrote: > When a lowpan link to a wpan device is created, set the hardware address > of the lowpan link to that of the wpan device. > > Signed-off-by: Alan Ott > --- > net/ieee802154/6lowpan.c | 3 +++ > 1 file changed, 3 insertions(+)

Re: [Linux-zigbee-devel] [PATCH] 6lowpan: Sync default hardware address of lowpan links to their wpan

2013-10-05 Thread Alan Ott
On 10/05/2013 08:24 PM, Alexander Aring wrote: > Hi Alan, > > On Sat, Oct 05, 2013 at 05:38:00PM -0400, Alan Ott wrote: >> When a lowpan link to a wpan device is created, set the hardware address >> of the lowpan link to that of the wpan device. >> >> Signed-off-by: Alan Ott >> --- >> net/ieee802

Re: [Linux-zigbee-devel] [PATCH] 6lowpan: Sync default hardware address of lowpan links to their wpan

2013-10-05 Thread Alexander Aring
On Sat, Oct 05, 2013 at 09:01:52PM -0400, Alan Ott wrote: > On 10/05/2013 08:24 PM, Alexander Aring wrote: > >Hi Alan, > > > >On Sat, Oct 05, 2013 at 05:38:00PM -0400, Alan Ott wrote: > >>When a lowpan link to a wpan device is created, set the hardware address > >>of the lowpan link to that of the

[Linux-zigbee-devel] [PATCH v2 2/2] 6lowpan: Sync default hardware address of lowpan links to their wpan

2013-10-05 Thread Alan Ott
When a lowpan link to a wpan device is created, set the hardware address of the lowpan link to that of the wpan device. Signed-off-by: Alan Ott --- net/ieee802154/6lowpan.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c index 8f56b2b..f

[Linux-zigbee-devel] [PATCH v2 0/2] 6lowpan default hardware address

2013-10-05 Thread Alan Ott
Alexander Aring suggested that devices desired to be linked to 6lowpan be checked for actually being of type IEEE802154, since IEEE802154 devices are all that are supported by 6lowpan at present. Alan Ott (2): 6lowpan: Only make 6lowpan links to IEEE802154 devices 6lowpan: Sync default hardwar

[Linux-zigbee-devel] [PATCH v2 1/2] 6lowpan: Only make 6lowpan links to IEEE802154 devices

2013-10-05 Thread Alan Ott
Refuse to create 6lowpan links if the actual hardware interface is of any type other than ARPHRD_IEEE802154. Signed-off-by: Alan Ott Suggested-by: Alexander Aring --- net/ieee802154/6lowpan.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan

[Linux-zigbee-devel] [PATCH v1 0/3] Fix race conditions in mrf24j40 interrupts

2013-10-05 Thread Alan Ott
After testing with the betas of this patchset, it's been rebased and is ready for inclusion. David Hauweele noticed that the mrf24j40 would hang arbitrarily after some period of heavy traffic. Two race conditions were discovered, and the driver was changed to use threaded interrupts, since the en

[Linux-zigbee-devel] [PATCH v1 2/3] mrf24j40: Use threaded IRQ handler

2013-10-05 Thread Alan Ott
Eliminate all the workqueue and interrupt enable/disable. Signed-off-by: Alan Ott --- drivers/net/ieee802154/mrf24j40.c | 27 +++ 1 file changed, 7 insertions(+), 20 deletions(-) diff --git a/drivers/net/ieee802154/mrf24j40.c b/drivers/net/ieee802154/mrf24j40.c index 66

[Linux-zigbee-devel] [PATCH v1 1/3] mrf24j40: Move INIT_COMPLETION() to before packet transmission

2013-10-05 Thread Alan Ott
This avoids a race condition where complete(tx_complete) could be called before tx_complete is initialized. Signed-off-by: Alan Ott --- drivers/net/ieee802154/mrf24j40.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ieee802154/mrf24j40.c b/drivers/net/ieee8

[Linux-zigbee-devel] [PATCH v1 3/3] mrf24j40: Use level-triggered interrupts

2013-10-05 Thread Alan Ott
The mrf24j40 generates level interrupts. There are rare cases where it appears that the interrupt line never gets de-asserted between interrupts, causing interrupts to be lost, and causing a hung device from the driver's perspective. Switching the driver to interpret these interrupts as level-trig