linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] iio: adc: stm32-adc: add checks on adc state
@ 2022-06-20 15:47 Olivier Moysan
  2022-06-20 15:47 ` [PATCH 1/2] iio: adc: stm32-adc: make safe adc disable Olivier Moysan
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Olivier Moysan @ 2022-06-20 15:47 UTC (permalink / raw)
  To: Alexandre Torgue, Fabrice Gasnier, Jonathan Cameron,
	Lars-Peter Clausen, Maxime Coquelin, Olivier Moysan,
	Paul Cercueil, Wan Jiabing
  Cc: linux-arm-kernel, linux-iio, linux-kernel, linux-stm32

On ADC startup a calibration is launched.
A prerequisite for ADC calibration is to have ADC in disabled state.
After kernel boot, the ADC state may be unknown as the ADC may have been left enabled by boot stage.

Call ADC disable routine systematically before launching calibration.
Adapt ADC disable routine to perform disabling sequence according to current ADC state.

Olivier Moysan (2):
  iio: adc: stm32-adc: make safe adc disable
  iio: adc: stm32-adc: disable adc before calibration

 drivers/iio/adc/stm32-adc.c | 6 ++++++
 1 file changed, 6 insertions(+)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-06-25 13:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-20 15:47 [PATCH 0/2] iio: adc: stm32-adc: add checks on adc state Olivier Moysan
2022-06-20 15:47 ` [PATCH 1/2] iio: adc: stm32-adc: make safe adc disable Olivier Moysan
2022-06-21 15:38   ` Fabrice Gasnier
2022-06-20 15:47 ` [PATCH 2/2] iio: adc: stm32-adc: disable adc before calibration Olivier Moysan
2022-06-21 15:39   ` Fabrice Gasnier
2022-06-25 13:28 ` [PATCH 0/2] iio: adc: stm32-adc: add checks on adc state Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).