Re: [PATCH v6 3/3] staging: iio: adc: ad7816: Use DMA-safe buffer for SPI read
From: nasser
Date: Sun Sep 13 2026 - 02:35:31 EST
Hi Jonathan,
Thank you so much for taking the time to review my patch and for your
detailed explanation. I truly appreciate it.
Your explanation makes perfect sense. I now understand that the real
issue is cacheline sharing, and why adding a dedicated buffer to the
struct is an overkill for a simple 2-byte read. I also looked into
spi_write_then_read() and saw how it safely handles the transfer by
allocating a bounce buffer under the hood.
I will drop the custom buffer and use spi_write_then_read() as you
guided me in the upcoming v7.
Thank you again for your patience and invaluable mentorship. It really
means a lot to me.
Best regards,
Abdelnasser