On Tue, 28 Jan 2014 23:40:41 +0400
Dmitry Eremin-Solenikov <dbarysh...@gmail.com> wrote:
> Never ever put spi transfer buffer onto the stack. It is not dma safe.
> Use kmalloc/kzalloc.

Noted. The GFP_DMA flag just confused for a few minutes, but looking at
some DMA Documentation, apparently all kmalloc() memory is safe. Good
to know. :)

> > +{
> > +   int rc;
> > +
> > +   if (channel == 0) {
> 
> if (page == 0) ?

Actually, no. According to datasheet page 97, channel 0 has
bit 2 of the register, which is SR_SUB_MODE, set to 0, while for the
others it'll be one. There's also a 100% bitrate increase when you go
from channel 0 to channels 1 through 10. The page influences the next
higher bit in the register, bit 3, which is the BPSK_QPSK switch.

------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable 
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
Linux-zigbee-devel mailing list
Linux-zigbee-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel

Reply via email to