Skip to content

iio: adc: ad9467: add debugFS test mode support

Nuno Sa b4-sent linux-iio 2 versions – Applied

Status from this message: Applied to the togreg branch of iio.git and pushed out as

Get series with b4
b4 am 20240802-dev-iio-backend-add-debugfs-v2-0-4cb62852f0d0@analog.com change-id 20240709-dev-iio-backend-add-debugfs-ef7cd2007073

Versions newest first · linked by author and title

  1. v2 Latest8 patches 3 repliesApplied
  2. v19 patches 7 repliesApplied

Changes in v2 from the cover letter

* Patch 1:
- New patch;

* Patch 2:
- Added backendY directory with the direct_reg_access and name

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/8iio: backend: introduce struct iio_backend_infodrivers/iio/adc/adi-axi-adc.c drivers/iio/dac/adi-axi-dac.c drivers/iio/industrialio-backend.c +1 more+28 -80 replies
2/8iio: backend: add debugFs interfaceDocumentation/ABI/testing/debugfs-iio-backend MAINTAINERS drivers/iio/industrialio-backend.c +1 more+180 -00 replies
3/8iio: backend: add a modified prbs23 supportinclude/linux/iio/backend.h+2 -00 replies
4/8iio: adc: adi-axi-adc: support modified prbs23drivers/iio/adc/adi-axi-adc.c+4 -00 replies
5/8iio: adc: adi-axi-adc: split axi_adc_chan_status()drivers/iio/adc/adi-axi-adc.c+14 -50 replies
6/8iio: adc: adi-axi-adc: implement backend debugfs interfacedrivers/iio/adc/adi-axi-adc.c+41 -00 replies
7/8iio: adc: ad9467: add backend test mode helpersdrivers/iio/adc/ad9467.c+42 -250 replies
8/8iio: adc: ad9467: add digital interface test to debugfsdrivers/iio/adc/ad9467.c+188 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/8] iio: adc: ad9467: add debugFS test mode support

This is the second version of the series. I ended up trying the new directory route and think it does look nice and more future proof. Biggest change is the first patch where we now pass an info like structure to devm_iio_backend_register(). Again, this is likely also a more future proof approach and we would likely need it sooner or later (one usage I see is for backends to pass in some constant information that could be consumed from frontends when doing backend_get())

v1:
* https://lore.kernel.org/linux-iio/20240709-dev-iio-backend-add-debugfs-v1-0-fb4b8f2373c7@analog.com/

v2:
* Patch 1:
- New patch;

* Patch 2:
- Added backendY directory with the direct_reg_access and name

    attributes;

- Get the backend name directly from the backend driver;
- Get the backend index from backend-names FW property;
- Added debugfs-iio-backend to the ABI docs.

---
Nuno Sa (8):
iio: backend: introduce struct iio_backend_info
iio: backend: add debugFs interface
iio: backend: add a modified prbs23 support
iio: adc: adi-axi-adc: support modified prbs23
iio: adc: adi-axi-adc: split axi_adc_chan_status()
iio: adc: adi-axi-adc: implement backend debugfs interface
iio: adc: ad9467: add backend test mode helpers
iio: adc: ad9467: add digital interface test to debugfs

 Documentation/ABI/testing/debugfs-iio-backend |  20 ++
 MAINTAINERS                                   |   1 +
 drivers/iio/adc/ad9467.c                      | 255 +++++++++++++++++++++++---
 drivers/iio/adc/adi-axi-adc.c                 |  71 ++++++-
 drivers/iio/dac/adi-axi-dac.c                 |   7 +-
 drivers/iio/industrialio-backend.c            | 155 +++++++++++++++-
 include/linux/iio/backend.h                   |  28 ++-
 7 files changed, 499 insertions(+), 38 deletions(-)

---
base-commit: 168bed989d651794d03638e1f7f7b5a800a6f425
change-id: 20240802-dev-iio-backend-add-debugfs-0b13bb5a5b37 --

Thanks!
- Nuno Sá