From: Jonathan Cameron <jic23@kernel.org>
To: Cosmin Tanislav <demonsingur@gmail.com>
Cc: cosmin.tanislav@analog.com, Lars-Peter Clausen <lars@metafoo.de>,
Michael Hennerich <Michael.Hennerich@analog.com>,
Rob Herring <robh+dt@kernel.org>,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
Linus Walleij <linus.walleij@linaro.org>,
Bartosz Golaszewski <brgl@bgdev.pl>,
linux-gpio@vger.kernel.org
Subject: Re: [PATCH v11 0/3] Add AD74413R driver
Date: Sun, 5 Dec 2021 17:07:13 +0000 [thread overview]
Message-ID: <20211205170713.3ddf0434@jic23-huawei> (raw)
In-Reply-To: <20211205114045.173612-1-cosmin.tanislav@analog.com>
On Sun, 5 Dec 2021 13:40:42 +0200
Cosmin Tanislav <demonsingur@gmail.com> wrote:
> V1 -> V2
> * sign off using company email
>
> V2 -> V3
> * replace gpo config firmware flag with flag specifying whether gpo is in
> comparator mode
> * create two separate gpiochips, one output-only gpiochip for GPO pins not
> in comparator mode and one input-only for the value of digital input
> channels
> * wire up all gpo functionalities using pinconf
> * keep number of characters per line under 80
> * rework locking
> * do not invalidate other chip revisions
> * do not set indio device parent
> * print probe error for refin regulator
> * move conversion from range register value to range / offset / raw offset
> into separate function
> * module.h -> mod_devicetable.h
> * use generic firmware interface functions
> * add comment regarding cache alignment
> * add comment regarding ADC channels buffered read setup
> * un-inline comment regarding 100us delay for conversion start
> * inline return statements
> * remove assignments to val2 where not necessary
> * local_channels -> chans
> * index -> i
> * channel_config -> config
> * IIO_ALTVOLTAGE -> IIO_VOLTAGE
> * .info_mask_shared_by_type_available -> .info_mask_separate_available
> * remove unlikely probe error messages
> * use an array indexed by channel function for retrieving iio channels
> * count iio channels while parsing
> * move HART rate rejection outside of setter
> * move channel function validation outside of setter
> * use SPI messages for read and write
> * validate DAC code earlier
> * simplify switches to only handle existing iio channels
> * pass indio_dev into functions needing access to it
> * pass spi into devm_regmap_init
> * dt-bindings: sort compatibles
> * dt-bindings: remove driver word from description
> * dt-bindings: remove refin supply description
> * dt-bindings: specify channel function default value
> * dt-bindings: remove maxItems from scalar value
>
> V3 -> v4
> * remove double gpo from macro name
> * reset at probe
> * config -> chip_info and store chip name inside chip info
> * cacheline align every DMA buffer
> * simplify generation of adc samples message by caching xfer, tx_buf and
> rx_buf
> * use mask itself for writing the value of channel enable and gpo data
> * move reg read and write transfers to the same buffers and use local
> variables for transfers
> * merge the two for loops handling gpio configuration
> * let firmware decide irq edge
> * remove INDIO_BUFFER_SOFTWARE already set by iio framework
> * do not set trigger device parent
> * return dev_err_probe for regulator error case
> * do not set cs_change to 0 when not needed
> * do not set spi device drvdata as it is not needed
> * fix bug regarding wrong channels being created for resistance input,
> digital input, and current input with hart
> * use voltage input channels spec for high impedance mode
> * put () around macro parameters
> * merge AD74413R_CHANNEL macro into its uses
> * remove unused switch case scope
> * inline return IIO_VAL_INT
> * use {get,put}_unaligned_be16
> * use proper types for reg and val
> * move default case handling into switch statements
> * pass driver state into regmap functions
> * use genmask for generating a 16bit max value
> * alphanumeric order for part numbers
> * dt-bindings: remove $ref from ohms value
>
> V4 -> V5
> * dt-bindings: include headers necessary
> * dt-bindings: add IRQ_TYPE_EDGE_FALLING to interrupt flags
> * dt-bindings: ohm -> ohms
> * dt-bindings: spi0 -> spi
>
> V5 -> V6
> * fix warnings regarding overflows
>
> V6 -> V7
> * remove extra cache-line alignment
> * adi,rsense-resistance-ohms -> shunt-resistor-micro-ohms
> * dt-bindings: add product page links
>
> V7 -> V8
> * also check DAC code lower bound
> * fix checkpath --strict complaints
> * add comment regarding mutex lock usage
> * propagate error when converting adc result to resistance
>
> V8 -> V9
> * fix spelling mistake
> * undo propagate error when converting adc result to resistance
> * return void from adc result to resistance function
> * limit max adc value when doing resistance calculation to avoid
> a potential division-by-zero case
>
> V9 -> V10
> * pick up Reviewed-By tags
> * fix odd alignment in header
> * add dev_err_probe to irq request error path
>
> V10 -> V11
> * fix compile error
Applied with one minor tweak to regmap_config which should have been marked
static and turned up in my build tests.
Applied to the togreg branch of iio.git and pushed out initially as testing
to see if 0-day finds anything.
Thanks,
Jonathan
>
> Cosmin Tanislav (3):
> iio: add addac subdirectory
> dt-bindings: iio: add AD74413R
> iio: addac: add AD74413R driver
>
> .../bindings/iio/addac/adi,ad74413r.yaml | 158 ++
> MAINTAINERS | 9 +
> drivers/iio/Kconfig | 1 +
> drivers/iio/Makefile | 1 +
> drivers/iio/addac/Kconfig | 20 +
> drivers/iio/addac/Makefile | 7 +
> drivers/iio/addac/ad74413r.c | 1475 +++++++++++++++++
> include/dt-bindings/iio/addac/adi,ad74413r.h | 21 +
> 8 files changed, 1692 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml
> create mode 100644 drivers/iio/addac/Kconfig
> create mode 100644 drivers/iio/addac/Makefile
> create mode 100644 drivers/iio/addac/ad74413r.c
> create mode 100644 include/dt-bindings/iio/addac/adi,ad74413r.h
>
prev parent reply other threads:[~2021-12-05 17:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-05 11:40 [PATCH v11 0/3] Add AD74413R driver Cosmin Tanislav
2021-12-05 11:40 ` [PATCH v11 1/3] iio: add addac subdirectory Cosmin Tanislav
2021-12-05 11:40 ` [PATCH v11 2/3] dt-bindings: iio: add AD74413R Cosmin Tanislav
2021-12-05 11:40 ` [PATCH v11 3/3] iio: addac: add AD74413R driver Cosmin Tanislav
2021-12-05 17:07 ` Jonathan Cameron [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211205170713.3ddf0434@jic23-huawei \
--to=jic23@kernel.org \
--cc=Michael.Hennerich@analog.com \
--cc=brgl@bgdev.pl \
--cc=cosmin.tanislav@analog.com \
--cc=demonsingur@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=lars@metafoo.de \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox