Linux IIO development
 help / color / mirror / Atom feed
* [PATCH v3 0/2] iio: adc: ad7173: fix non-const info struct
@ 2025-01-10 17:40 David Lechner
  2025-01-10 17:40 ` [PATCH v3 1/2] iio: adc: ad7173: remove special handling for irq number David Lechner
  2025-01-10 17:40 ` [PATCH v3 2/2] iio: adc: ad7173: don't make copy of ad_sigma_delta_info struct David Lechner
  0 siblings, 2 replies; 4+ messages in thread
From: David Lechner @ 2025-01-10 17:40 UTC (permalink / raw)
  To: Jonathan Cameron, Dumitru Ceclan
  Cc: Michael Hennerich, Nuno Sa, Michael Walle, Andy Shevchenko,
	linux-iio, linux-kernel, Uwe Kleine-König, Guillaume Ranquet,
	David Lechner

While working ad7124, Uwe pointed out a bug in the ad7173 driver.
static struct ad_sigma_delta_info ad7173_sigma_delta_info was not const
and was being modified during driver probe, which could lead to race
conditions if two instances of the driver were probed at the same time.

The fix from v2 has already been picked up, so these are the remaining
patches that can now be applied since the fix has made it's way back
into the iio/togreg branch.

---
Changes in v3:
- Dropped first patch that was already applied.
- Fixed compile error due to spurious rebasing artifact.
- Rebased on top of latest iio tree and resolved conflicts.
- Link to v2: https://lore.kernel.org/r/20241127-iio-adc-ad7313-fix-non-const-info-struct-v2-0-b6d7022b7466@baylibre.com

Changes in v2:
- Fixed chip name in a few places.
- Add new simpler patch for "fix" that gets backported.
- Rebase other patches on this and incorporate feedback.
- Link to v1: https://lore.kernel.org/r/20241122-iio-adc-ad7313-fix-non-const-info-struct-v1-0-d05c02324b73@baylibre.com

---
David Lechner (2):
      iio: adc: ad7173: remove special handling for irq number
      iio: adc: ad7173: don't make copy of ad_sigma_delta_info struct

 drivers/iio/adc/ad7173.c               | 487 +++++++++++++++++----------------
 drivers/iio/adc/ad_sigma_delta.c       |   5 +-
 include/linux/iio/adc/ad_sigma_delta.h |   2 -
 3 files changed, 255 insertions(+), 239 deletions(-)
---
base-commit: 56ea2bb4297338aa1c185696b287d384ec27c0d4
change-id: 20241122-iio-adc-ad7313-fix-non-const-info-struct-92e59b91ee2e

Best regards,
-- 
David Lechner <dlechner@baylibre.com>


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

end of thread, other threads:[~2025-01-12 10:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-10 17:40 [PATCH v3 0/2] iio: adc: ad7173: fix non-const info struct David Lechner
2025-01-10 17:40 ` [PATCH v3 1/2] iio: adc: ad7173: remove special handling for irq number David Lechner
2025-01-12 10:37   ` Jonathan Cameron
2025-01-10 17:40 ` [PATCH v3 2/2] iio: adc: ad7173: don't make copy of ad_sigma_delta_info struct David Lechner

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