]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: temperature: ltc2983: make bulk write buffer DMA-safe
authorCosmin Tanislav <cosmin.tanislav@analog.com>
Thu, 3 Nov 2022 13:00:29 +0000 (15:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:26:26 +0000 (13:26 +0100)
commit02317ffa40f72244dd7bae64d6482c55ed89bcaf
treefed788ebc8a13a846050ac5e9454c82a0f8dde95
parent139abd4c626a6f7ce02789ed5f73aa2256e0542b
iio: temperature: ltc2983: make bulk write buffer DMA-safe

[ Upstream commit 5e0176213949724fbe9a8e4a39817edce337b8a0 ]

regmap_bulk_write() does not guarantee implicit DMA-safety,
even though the current implementation duplicates the given
buffer. Do not rely on it.

Fixes: f110f3188e56 ("iio: temperature: Add support for LTC2983")
Signed-off-by: Cosmin Tanislav <cosmin.tanislav@analog.com>
Link: https://lore.kernel.org/r/20221103130041.2153295-2-demonsingur@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/iio/temperature/ltc2983.c