From: Lee Jones <lee@kernel.org>
To: Bastien Curutchet <bastien.curutchet@bootlin.com>
Cc: Riku Voipio <riku.voipio@iki.fi>, Pavel Machek <pavel@ucw.cz>,
linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
Herve Codina <herve.codina@bootlin.com>,
Christopher Cordahi <christophercordahi@nanometrics.ca>
Subject: Re: [PATCH v3 0/4] leds: pca9532: Use hardware for blinking LEDs
Date: Thu, 25 Jul 2024 10:09:11 +0100 [thread overview]
Message-ID: <20240725090911.GD501857@google.com> (raw)
In-Reply-To: <20240711120129.100248-1-bastien.curutchet@bootlin.com>
On Thu, 11 Jul 2024, Bastien Curutchet wrote:
> Hi all,
>
> This series aims to use hardware more often to blink LEDs.
>
> The pca9532_set_blink() rejects asymmetric delays. So the core's software
> fallback is almost always used when we want to blink a LED. Removing
> this restriction revealed some conflicts between setting brightness and
> blinking as the same PWM (PWM0) configuration is used by all LEDs for
> both brightness and blinking.
>
> Make use of the second available PWM (PWM1) to blink LEDs. This PWM1 was
> reserved for beepers so hardware blinking is explicitly disabled if at
> least one LED is used to drive a beeper to avoid conflicts.
>
> Tested with PCA9532
>
> Changes in v2:
> * Add defines to get rid of magic numbers
> * Replace every 'led' by 'LED'
> * Use dev_err() when returning errors
> * Remove unused struct pca9532_data from patch 2 to add it on patch 3
> where it's actually used
>
> Changes in v3 (in PATCH 2/4):
> * Drop dev_err() messages for comments
> * Replace a -EINVAL with a -EBUSY
>
> [v1] : https://lore.kernel.org/all/20240527125940.155260-1-bastien.curutchet@bootlin.com/
> [v2] : https://lore.kernel.org/all/20240617143910.154546-1-bastien.curutchet@bootlin.com/
>
> Bastien Curutchet (4):
> leds: pca9532: Use defines to select PWM instance
> leds: pca9532: Use PWM1 for hardware blinking
> leds: pca9532: Explicitly disable hardware blink when PWM1 is
> unavailable
> leds: pca9532: Change default blinking frequency to 1Hz
This set was applied on the 20th June.
Please rebase and send follow-ups.
--
Lee Jones [李琼斯]
prev parent reply other threads:[~2024-07-25 9:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-11 12:01 [PATCH v3 0/4] leds: pca9532: Use hardware for blinking LEDs Bastien Curutchet
2024-07-11 12:01 ` [PATCH v3 1/4] leds: pca9532: Use defines to select PWM instance Bastien Curutchet
2024-07-11 12:01 ` [PATCH v3 2/4] leds: pca9532: Use PWM1 for hardware blinking Bastien Curutchet
2024-07-11 12:01 ` [PATCH v3 3/4] leds: pca9532: Explicitly disable hardware blink when PWM1 is unavailable Bastien Curutchet
2024-07-11 12:01 ` [PATCH v3 4/4] leds: pca9532: Change default blinking frequency to 1Hz Bastien Curutchet
2024-07-25 9:09 ` Lee Jones [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=20240725090911.GD501857@google.com \
--to=lee@kernel.org \
--cc=bastien.curutchet@bootlin.com \
--cc=christophercordahi@nanometrics.ca \
--cc=herve.codina@bootlin.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=pavel@ucw.cz \
--cc=riku.voipio@iki.fi \
--cc=thomas.petazzoni@bootlin.com \
/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.