Thread (13 messages) 13 messages, 5 authors, 2021-07-25

Re: [PATCH v2 2/2] iio: accel: Add driver support for ADXL355

From: Mark Brown <broonie@kernel.org>
Date: 2021-07-23 17:48:01
Also in: linux-iio, lkml

On Fri, Jul 23, 2021 at 06:44:04PM +0100, Jonathan Cameron wrote:
Mark Brown [off-list ref] wrote:
quoted
quoted
@Mark.  This has come up a few times recently.  Are we now safe to assume
that regmap will always copy data when used with SPI and hence we no
longer need to ensure DMA safe buffers?     
quoted
Only for single register I/O, I'd not assume that for things like raw
I/O.
Thanks for the confirmation.  So in this driver that means we
need DMA safe buffers for the regmap_bulk_ calls.  Easiest approach
is probably to use a __cacheline_aligned buffer at the end of the
iio_priv() structure.
Yeah, it might be fine depending on the bus/format type but it's not
something you can generally assume.

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help