All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Davíð Steinn Geirsson" <david@dsg.is>, linux-hwmon@vger.kernel.org
Subject: Re: [PATCH 4/4] hwmon: (adt7475) Expose fan control via PWM framework
Date: Sat, 14 Nov 2026 00:51:35 +0000	[thread overview]
Message-ID: <sashiko-outbox-213956@kernel.org> (raw)
In-Reply-To: <20261114004110.328050-5-david@dsg.is>

> Register the PWM outputs with the PWM framework when the node has
> "#pwm-cells", so that generic consumers such as pwm-fan can drive them,
> for example as thermal cooling devices. This follows the ADT7470
> driver. A failure to register the PWM chip fails the probe. Without
> CONFIG_PWM, no PWM chip is registered. Unlike ADT7470, the driver does
> not warn about "#pwm-cells" without CONFIG_PWM: fan-N children use the
> property too, so its presence does not imply a PWM consumer.
> CONFIG_PWM is bool, so no Kconfig dependency is needed.
> 
> The binding also documents "#pwm-cells" without a PWM consumer: fan-N
> child nodes reference the chip itself to configure a channel at probe.
> Device trees that do this keep working unchanged. Registering the PWM
> chip does not touch the hardware, and requesting a channel only marks
> it as held. Nothing changes for a channel until a consumer applies a
> waveform to it.
> [ ... ]
>   exist.
> 
> Document the PWM provider in adt7475.rst.
> 
> Signed-off-by: Davíð Steinn Geirsson <david@dsg.is>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261114004110.328050-1-david@dsg.is?part=4


      reply	other threads:[~2026-11-14  0:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-14  0:41 [PATCH 0/4] hwmon: (adt7475) Add thermal sensor and PWM provider support Davíð Steinn Geirsson
2026-11-14  0:41 ` [PATCH 1/4] dt-bindings: hwmon: adt7475: Add #thermal-sensor-cells Davíð Steinn Geirsson
2026-11-14  0:49   ` sashiko-bot
2026-11-14  0:41 ` [PATCH 2/4] hwmon: (adt7475) Convert to hwmon_device_register_with_info() Davíð Steinn Geirsson
2026-11-14  0:41 ` [PATCH 3/4] hwmon: (adt7475) Add thermal zone sensor support Davíð Steinn Geirsson
2026-11-14  0:46   ` sashiko-bot
2026-11-14  0:41 ` [PATCH 4/4] hwmon: (adt7475) Expose fan control via PWM framework Davíð Steinn Geirsson
2026-11-14  0:51   ` sashiko-bot [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=sashiko-outbox-213956@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=david@dsg.is \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.