linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] iio: stm32-adc: fix a race with dma and irq
@ 2019-09-17 12:38 Fabrice Gasnier
  2019-09-17 12:38 ` [PATCH v2 1/2] iio: adc: stm32-adc: move registers definitions Fabrice Gasnier
  2019-09-17 12:38 ` [PATCH v2 2/2] iio: adc: stm32-adc: fix a race when using several adcs with dma and irq Fabrice Gasnier
  0 siblings, 2 replies; 4+ messages in thread
From: Fabrice Gasnier @ 2019-09-17 12:38 UTC (permalink / raw)
  To: jic23
  Cc: lars, alexandre.torgue, linux-iio, pmeerw, linux-kernel,
	mcoquelin.stm32, knaack.h, fabrice.gasnier, linux-stm32,
	linux-arm-kernel

This series fixes a race condition observed when using several ADCs with DMA
and irq.
There's a precusor patch to the fix. It keeps registers definitions as a whole
block, to ease readability and allow simple (readl) access path to EOC bits in
stm32-adc-core driver.

---
Changes in v2:
- Add a precursor patch to follow Jonathan's comment on readability

Fabrice Gasnier (2):
  iio: adc: stm32-adc: move registers definitions
  iio: adc: stm32-adc: fix a race when using several adcs with dma and
    irq

 drivers/iio/adc/stm32-adc-core.c |  70 +++++++++++---------
 drivers/iio/adc/stm32-adc-core.h | 137 +++++++++++++++++++++++++++++++++++++++
 drivers/iio/adc/stm32-adc.c      | 109 -------------------------------
 3 files changed, 177 insertions(+), 139 deletions(-)

-- 
2.7.4


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2019-09-21 18:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-17 12:38 [PATCH v2 0/2] iio: stm32-adc: fix a race with dma and irq Fabrice Gasnier
2019-09-17 12:38 ` [PATCH v2 1/2] iio: adc: stm32-adc: move registers definitions Fabrice Gasnier
2019-09-17 12:38 ` [PATCH v2 2/2] iio: adc: stm32-adc: fix a race when using several adcs with dma and irq Fabrice Gasnier
2019-09-21 18:02   ` 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).