diff options
| author | Nuno Sa <[email protected]> | 2024-02-09 15:50:34 +0000 |
|---|---|---|
| committer | William Breathitt Gray <[email protected]> | 2024-02-16 23:51:00 +0000 |
| commit | c83ccdc9586b3e9882da9e27507c046751999d59 (patch) | |
| tree | b55ded02769aef6d1bfee67c39e24f863293ae32 /drivers/fpga/tests/fpga-mgr-test.c | |
| parent | Linux 6.8-rc1 (diff) | |
| download | kernel-c83ccdc9586b3e9882da9e27507c046751999d59.tar.gz kernel-c83ccdc9586b3e9882da9e27507c046751999d59.zip | |
counter: fix privdata alignment
Aligning to the L1 cache does not guarantee the same alignment as
kmallocing an object [1]. Furthermore, in some platforms, that
alignment is not sufficient for DMA safety (in case someone wants
to have a DMA safe buffer in privdata) [2].
Sometime ago, we had the same fixes in IIO.
[1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/base/devres.c#n35
[2]: https://lore.kernel.org/linux-iio/[email protected]/
Fixes: c18e2760308e ("counter: Provide alternative counter registration functions")
Signed-off-by: Nuno Sa <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: William Breathitt Gray <[email protected]>
Diffstat (limited to 'drivers/fpga/tests/fpga-mgr-test.c')
0 files changed, 0 insertions, 0 deletions
