]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
iio: adc: at91-sama5d2_adc: fix differential channels in triggered mode
authorEugen Hristev <eugen.hristev@microchip.com>
Tue, 28 Jan 2020 12:57:39 +0000 (12:57 +0000)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 3 Apr 2020 13:17:23 +0000 (15:17 +0200)
commit7c44d910f2dc1b8d273fae0b7291491dc2da9a4a
treec7e930dcd580e19de4a7f9ce6dee4e2b65903866
parent74027634602a7cbd4c2e613f74ad049ce0a606f0
iio: adc: at91-sama5d2_adc: fix differential channels in triggered mode

BugLink: https://bugs.launchpad.net/bugs/1869061
commit a500f3bd787f8224341e44b238f318c407b10897 upstream.

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@microchip.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
drivers/iio/adc/at91-sama5d2_adc.c