Trouble with allocating memory on platform driver
s.achterop at rug.nl
s.achterop at rug.nl
Fri Apr 17 04:47:33 EDT 2020
On 4/15/20 11:29 AM, s.achterop at rug.nl wrote:
> On 4/4/20 5:21 PM, s.achterop at 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/alloctest.c
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
More information about the Kernelnewbies
mailing list