Trouble with allocating memory on platform driver

s.achterop at s.achterop at
Fri Apr 17 04:47:33 EDT 2020

On 4/15/20 11:29 AM, s.achterop at wrote:
> On 4/4/20 5:21 PM, s.achterop at 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:

     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.


More information about the Kernelnewbies mailing list