Skip to content

Commit 01fcf12

Browse files
committed
iio: adc: ad7923: Fix undersized rx buffer.
Fixes tag is where the max channels became 8, but timestamp space was missing before that. Fixes: 851644a ("iio: adc: ad7923: Add support for the ad7908/ad7918/ad7928") Signed-off-by: Jonathan Cameron <[email protected]> Cc: Daniel Junho <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Cc: <[email protected]>
1 parent a1caeeb commit 01fcf12

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/iio/adc/ad7923.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,10 @@ struct ad7923_state {
5959
/*
6060
* DMA (thus cache coherency maintenance) requires the
6161
* transfer buffers to live in their own cache lines.
62+
* Ensure rx_buf can be directly used in iio_push_to_buffers_with_timetamp
63+
* Length = 8 channels + 4 extra for 8 byte timestamp
6264
*/
63-
__be16 rx_buf[4] ____cacheline_aligned;
65+
__be16 rx_buf[12] ____cacheline_aligned;
6466
__be16 tx_buf[4];
6567
};
6668

0 commit comments

Comments
 (0)