On Mon, Mar 23, 2020 at 03:17:46PM +0100, gregkh@xxxxxxxxxxxxxxxxxxx wrote:
The patch below does not apply to the 4.14-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <stable@xxxxxxxxxxxxxxx>. thanks, greg k-h ------------------ original commit in Linus's tree ------------------ From a500f3bd787f8224341e44b238f318c407b10897 Mon Sep 17 00:00:00 2001 From: Eugen Hristev <eugen.hristev@xxxxxxxxxxxxx> Date: Tue, 28 Jan 2020 12:57:39 +0000 Subject: [PATCH] iio: adc: at91-sama5d2_adc: fix differential channels in triggered mode The differential channels require writing the channel offset register (COR). Otherwise they do not work in differential mode. The configuration of COR is missing in triggered mode. Fixes: 5e1a1da0f8c9 ("iio: adc: at91-sama5d2_adc: add hw trigger and buffer support") Signed-off-by: Eugen Hristev <eugen.hristev@xxxxxxxxxxxxx> Cc: <Stable@xxxxxxxxxxxxxxx> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx>
This patch depended on f0c8d1f6dc8e ("iio: adc: at91-sama5d2_adc: fix channel configuration for differential channels") which is itself a stable tagged commit, so I took it too. Both depended on 073c662017f2 ("iio: adc: at91-sama5d2_adc: add support for DMA"). I've fixed them up to remove the DMA bits and queued for 4.14. -- Thanks, Sasha