Re: Trouble with allocating memory on platform driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]

  Powered by Linux