Linux-IIO Archive mirror
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Cc: Lars-Peter Clausen <lars@metafoo.de>, Li peiyu <579lpy@gmail.com>,
	Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Jonathan Cameron <Jonathan.Cameron@huawei.com>,
	linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org,
	devicetree@vger.kernel.org,
	Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Subject: Re: [PATCH v3 0/3] iio: humidity: hdc3020: add power and reset management
Date: Sun, 10 Mar 2024 15:24:43 +0000	[thread overview]
Message-ID: <20240310152443.4cbd7c4e@jic23-huawei> (raw)
In-Reply-To: <20240303-hdc3020-pm-v3-0-48bc02b5241b@gmail.com>

On Sun, 03 Mar 2024 22:54:19 +0100
Javier Carrasco <javier.carrasco.cruz@gmail.com> wrote:

> This series adds power management for the hdc3020 humidity and
> temperature sensor as well as control over the reset signal the device
> provides.
> 
> The hdc3020 carries out measurements automatically, which is not
> necessary in low-power modes. Furthermore, if the low-power
> configuration turns off the device, proper initialization is required to
> account for the setup times and initial status register value.
> 
> This device provides an active low reset signal that must be handled if
> connected. This signal can be used by the driver to keep the device
> under minimal power consumption during low-power modes if the power
> supply stays active.
> 
> This series uses char-misc-next as basis to include the last additions
> to the driver to handle events [1] as well as the fix to include the
> entries in the Makefile and Kconfig files [2].
> 
> [1] https://lore.kernel.org/linux-iio/20240214085350.19382-1-dima.fedrau@gmail.com/
> [2] https://lore.kernel.org/linux-iio/20240121135123.71506-1-jic23@kernel.org/
> 
> Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Applied to the togreg-normal branch of iio.git and pushed out for 0-day to
see what it can find.  Note this is now 6.10 material and I'll be rebasing
on rc1 once available. It won't go into a tree next picks up until after that.

Thanks,

Jonathan

> ---
> Changes in v3:
> - Drop unnecessary casting to void in dev_set_drvdata.
> - Call devm_add_action_or_reset right after powering on.
> - Link to v2: https://lore.kernel.org/r/20240226-hdc3020-pm-v2-0-cec6766086e8@gmail.com
> 
> Changes in v2:
> - Trigger power off sequence if the power on sequence fails.
> - Check return value of hdc3020_power_on() in the probe.
> - Remove type casting for void pointer.
> - Link to v1: https://lore.kernel.org/r/20240220-hdc3020-pm-v1-0-d8e60dbe79e9@gmail.com
> 
> ---
> Javier Carrasco (3):
>       iio: humidity: hdc3020: add power management
>       dt-bindings: iio: humidity: hdc3020: add reset-gpios
>       iio: humidity: hdc3020: add reset management
> 
>  .../bindings/iio/humidity/ti,hdc3020.yaml          |   5 +
>  drivers/iio/humidity/hdc3020.c                     | 111 +++++++++++++++++----
>  2 files changed, 97 insertions(+), 19 deletions(-)
> ---
> base-commit: d4551c189d6e6a3fcf7f625bd4b273e770fad35a
> change-id: 20240217-hdc3020-pm-177983de3cab
> 
> Best regards,


      parent reply	other threads:[~2024-03-10 15:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-03 21:54 [PATCH v3 0/3] iio: humidity: hdc3020: add power and reset management Javier Carrasco
2024-03-03 21:54 ` [PATCH v3 1/3] iio: humidity: hdc3020: add power management Javier Carrasco
2024-03-03 21:54 ` [PATCH v3 2/3] dt-bindings: iio: humidity: hdc3020: add reset-gpios Javier Carrasco
2024-03-03 21:54 ` [PATCH v3 3/3] iio: humidity: hdc3020: add reset management Javier Carrasco
2024-03-10 15:24 ` 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=20240310152443.4cbd7c4e@jic23-huawei \
    --to=jic23@kernel.org \
    --cc=579lpy@gmail.com \
    --cc=Jonathan.Cameron@huawei.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=javier.carrasco.cruz@gmail.com \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=krzysztof.kozlowski@linaro.org \
    --cc=lars@metafoo.de \
    --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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).