10 Commits

Author SHA1 Message Date
Robert Zaage
5815ee3908 fixed eventfd_signal for kernels >= 6.8 2024-04-25 14:05:42 -07:00
Robert Zaage
09385d4858 Fixes #14 and #15 by replacing the version-based check for DMA_BUF necessity. Solves incompatibility with backports in 5.1x.x (RedHat/Debian) kernels. 2023-09-05 12:26:30 -07:00
Chris Bradbury
8aca235839 Amend use of class_create() for kernels >= 6.4
The function signature for `class_create()` was changed in kernels >= 6.4.x to only accept a single argument (see kernel commit #dcfbb67).

This change will conditionally modify how `class_create()` is called depending on the kernel version.
2023-08-14 18:03:32 -07:00
Jan Kiszka
5993718586 Import DMA_BUF symbol namespace for kernels >= 5.16
Needed since 16b0314aa746 upstream.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
2022-02-21 21:48:42 -08:00
Waqar Hameed
f047773516 Fix DMA address truncation in gasket_coherent_buffer
`ulong` may not be sufficiently wide for addresses returned by the DMA
API. For example, a 32-bit platform can still have DMA addresses larger
than 32-bit. By using the correct type `dma_addr_t` we fix this
truncation.

Change-Id: Ibdf6456fdf12d889296e580de2acb910527ce0aa
Signed-off-by: Waqar Hameed <waqarh@axis.com>
2021-10-05 10:46:01 -07:00
Michael Brooks
b0049c17dc More Makefile Fixes
The Makefile wasn't in the appropriate format for DKMS. While it did
work on the Coral Dev Board, it failed on other devices.

Tested:
Coral Dev Board, x86 Debian Machine
2021-06-14 14:40:53 -07:00
Michael Brooks
2faefe1e9f Fix makefile, bump versions of modules/deb
* The Makefile configuration was using kernel macros instead of obj-m,
so it wasn't building properly.
* Bump gasket and apex module versions for better DKMS installs.
* Bump Debian package version.
2021-06-11 07:54:18 -07:00
Jan Kiszka
4021786186 staging: gasket: Fix inclusion of spinlock.h
linux/rwlock.h is a no-no for direct inclusion. This remains unnoticed
when building against mainline due to prior inclusion of the correct
header, linux/spinlock.h, but breaks over the PREEMPT-RT kernel.

Would have likely been caught earlier by maintainer reviews if the
driver was developed upstream.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Change-Id: Ibc98c9017895e8991633ea4fe23171b507537525
2021-06-03 10:09:12 -07:00
Michael Brooks
1eeffd9635 Move source to src folder, add gitignore
Change-Id: Ie033078aa57e7cd7c7ce3c1d3d1f0057c8c2cf24
2021-06-03 10:03:45 -07:00
Leonid Lobachev
9a7e1e3acf Add makefile, update changelog.
Change-Id: I1b85001572b1c1f3318e32309bb10fd5aea488dd
2021-06-03 10:03:45 -07:00