Re: [Linux-zigbee-devel] [RFC] at86rf230: straighten out RX vs. TX synchronization

2011-06-17 Thread Werner Almesberger
Dmitry Eremin-Solenikov wrote: > Thanks for the patch. Is it based on real issue, or just clear thought? Just on - hopefully clear - thought :) What I'm after is trimming struct at86rf230_local before splitting the driver into the AT86RF230-specific part and communication (SPI, USB, etc.) specifi

Re: [Linux-zigbee-devel] [RFC] at86rf230: straighten out RX vs. TX synchronization

2011-06-17 Thread Dmitry Eremin-Solenikov
Hello, Thanks for the patch. Is it based on real issue, or just clear thought? I'd like to see a problematic case/description/log/etc. please. Werner Almesberger wrote: > The is_tx flag did not protect adequately against races when switching > from receiving to transmitting. This patch removes t

[Linux-zigbee-devel] [RFC] at86rf230: straighten out RX vs. TX synchronization

2011-06-15 Thread Werner Almesberger
The is_tx flag did not protect adequately against races when switching from receiving to transmitting. This patch removes the unnecessary spinlock and enforces proper synchronization along the interrupt processing chain (source, handler, and worker), before entering transmit mode. The mechanism fo