]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: adc: ti-ads8688: Fix alignment for DMA safety
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 8 May 2022 17:56:18 +0000 (18:56 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:41:28 +0000 (14:41 +0200)
commit1a76328af2097b2c7e7a0c958a1f37dc75cdefb4
treeba56ecfef34fa3283fd608774f12ee66f9b0cea3
parent42f48ed3678292d5d12ddf01f254bd6f2543f7fe
iio: adc: ti-ads8688: Fix alignment for DMA safety

[ Upstream commit a2105d87eb8eb03591515df10102e04a1c9e0e46 ]

____cacheline_aligned is an insufficient guarantee for non-coherent DMA
on platforms with 128 byte cachelines above L1.  Switch to the updated
IIO_DMA_MINALIGN definition.

Fixes: 3e87e7838328 ("iio: adc: Add TI ADS8688")
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Acked-by: Nuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20220508175712.647246-39-jic23@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/iio/adc/ti-ads8688.c