Linux IIO development
 help / color / mirror / Atom feed
* [PATCH 0/2] iio: adc: ad_sigma_delta: misc fixes/improvements
@ 2024-01-17 12:41 Nuno Sa
  2024-01-17 12:41 ` [PATCH 1/2] iio: adc: ad_sigma_delta: ensure proper DMA alignment Nuno Sa
  2024-01-17 12:41 ` [PATCH 2/2] iio: adc: ad_sigma_delta: allow overwriting the IRQ flags Nuno Sa
  0 siblings, 2 replies; 5+ messages in thread
From: Nuno Sa @ 2024-01-17 12:41 UTC (permalink / raw)
  To: linux-iio
  Cc: Lars-Peter Clausen, Michael Hennerich, Jonathan Cameron,
	Renato Lui Geh, Fabrizio Lamarque

The first patch is for ensuring proper alignment for the sigma_delta
buffers so they can be safely used in DMA context. I'm adding a fixes tag
on it but I'm not sure if there's any urgency in backporting it so up to
you Jonathan :).

The second patch is about allowing the IRQ trigger type to be specified
in firmware.

The sigma delta ADCs have a fun history around this as they initially
forced the IRQF_TRIGGER_LOW flag and then changed to IRQF_TRIGGER_FALLING
as that is what is stated in the datasheet. However, as seen in [1], in
some platforms we can verify that IRQF_TRIGGER_LOW is the one flag that
makes things work.

Apart from the above, and as seen in similar patches, respecting the
firmware configuration is what makes sense. 

[1]: https://lore.kernel.org/all/CAPJMGm4GaSjD6bdqMwCr2EVZGenWzT-nCCf3BMRaD1TSfAabpA@mail.gmail.com/

---
Nuno Sa (2):
      iio: adc: ad_sigma_delta: ensure proper DMA alignment
      iio: adc: ad_sigma_delta: allow overwriting the IRQ flags

 drivers/iio/adc/ad_sigma_delta.c       | 7 ++++++-
 include/linux/iio/adc/ad_sigma_delta.h | 4 +++-
 2 files changed, 9 insertions(+), 2 deletions(-)
---
base-commit: 801590b27bfbdb6721f85e2c3af70e627e52c8d5
change-id: 20240115-dev_sigma_delta_no_irq_flags-2425795e2a00
--

Thanks!
- Nuno Sá


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

end of thread, other threads:[~2024-01-21 16:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-17 12:41 [PATCH 0/2] iio: adc: ad_sigma_delta: misc fixes/improvements Nuno Sa
2024-01-17 12:41 ` [PATCH 1/2] iio: adc: ad_sigma_delta: ensure proper DMA alignment Nuno Sa
2024-01-21 16:19   ` Jonathan Cameron
2024-01-17 12:41 ` [PATCH 2/2] iio: adc: ad_sigma_delta: allow overwriting the IRQ flags Nuno Sa
2024-01-21 16:22   ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox