Re: [PATCH v2] iio: ad_sigma_delta: Don't put SPI transfer buffer on the stack

2020-11-21 Thread Jonathan Cameron
On Thu, 19 Nov 2020 10:30:02 +0200 Alexandru Ardelean wrote: > On Sat, Nov 14, 2020 at 6:20 PM Jonathan Cameron wrote: > > > > On Fri, 13 Nov 2020 11:40:59 +0200 > > Alexandru Ardelean wrote: > > > > > From: Lars-Peter Clausen > > > > > > Use a heap allocated memory for the SPI transfer buff

Re: [PATCH v2] iio: ad_sigma_delta: Don't put SPI transfer buffer on the stack

2020-11-19 Thread Alexandru Ardelean
On Sat, Nov 14, 2020 at 6:20 PM Jonathan Cameron wrote: > > On Fri, 13 Nov 2020 11:40:59 +0200 > Alexandru Ardelean wrote: > > > From: Lars-Peter Clausen > > > > Use a heap allocated memory for the SPI transfer buffer. Using stack memory > > can corrupt stack memory when using DMA on some system

Re: [PATCH v2] iio: ad_sigma_delta: Don't put SPI transfer buffer on the stack

2020-11-14 Thread Jonathan Cameron
On Fri, 13 Nov 2020 11:40:59 +0200 Alexandru Ardelean wrote: > From: Lars-Peter Clausen > > Use a heap allocated memory for the SPI transfer buffer. Using stack memory > can corrupt stack memory when using DMA on some systems. > > This change moves the buffer from the stack of the trigger hand

[PATCH v2] iio: ad_sigma_delta: Don't put SPI transfer buffer on the stack

2020-11-13 Thread Alexandru Ardelean
From: Lars-Peter Clausen Use a heap allocated memory for the SPI transfer buffer. Using stack memory can corrupt stack memory when using DMA on some systems. This change moves the buffer from the stack of the trigger handler call to the heap of the buffer of the state struct. The size increases