April 17, 2020
8:47 a.m.
On 4/15/20 11:29 AM, s.achterop@rug.nl wrote:
On 4/4/20 5:21 PM, s.achterop@rug.nl wrote:
Hello list,
Trying to create a device driver for a raspberry pi zero (BCM2835) to control a gpio and an spi device. This eventually will be done in a FIQ interrupt handler. A simplified version of this batradio-driver can be found at: https://github.com/SietseAchterop/Batradio/blob/master/batradio_module/alloc...
I found a working solution. I actually don't know what I am doing but it works. Before the call to dma_zalloc_coherent I added: pdev->dev.coherent_dma_mask = 0xffffffff; Now it works. Regards, Sietse