mcb30 / dw1000

DecaWave DW1000 Linux kernel driver
15 stars 8 forks source link

kernel: Do not DMA directly from read-only data sections #15

Open mcb30 opened 5 years ago

mcb30 commented 5 years ago

Not all SPI controllers seem to support DMA from data declared as "static const". Work around this problem by placing static data values either on the stack (for immediate spi_sync() calls) or within the allocated transmit/receive descriptor.

Debugged-by: Jonathan Muller jonathan.muller12@gmail.com Signed-off-by: Michael Brown mbrown@fensystems.co.uk