linux-leds.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Eddie James <eajames@linux.ibm.com>
To: linux-leds@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, pavel@ucw.cz,
	openbmc@lists.ozlabs.org, joel@jms.id.au, patrick@stwcx.xyz,
	Eddie James <eajames@linux.ibm.com>
Subject: [PATCH v2 0/2] leds: pca955x: Add HW blink support
Date: Thu,  7 Apr 2022 13:39:39 -0500	[thread overview]
Message-ID: <20220407183941.36555-1-eajames@linux.ibm.com> (raw)

This series adds support for blinking using the PCA955x chip, falling
back to software blinking if another LED on the chip is already blinking
at a different rate, or if the requested rate isn't representable with
the PCA955x.

Changes since v1:
 - Rework the blink function to fallback to software blinking if the
   period is out of range of the chip's capabilities or if another LED
   on the chip is already blinking at a different rate.
 - Add the cleanup patch

Eddie James (2):
  leds: pca955x: Clean up and optimize
  leds: pca955x: Add HW blink support

 drivers/leds/leds-pca955x.c | 340 +++++++++++++++++++++++++-----------
 1 file changed, 236 insertions(+), 104 deletions(-)

-- 
2.27.0


             reply	other threads:[~2022-04-07 18:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-07 18:39 Eddie James [this message]
2022-04-07 18:39 ` [PATCH v2 1/2] leds: pca955x: Clean up and optimize Eddie James
2022-04-08 11:11   ` Andy Shevchenko
2022-04-11 15:17     ` Eddie James
2022-04-07 18:39 ` [PATCH v2 2/2] leds: pca955x: Add HW blink support Eddie James
2022-04-08 11:19   ` Andy Shevchenko
2022-04-11 16:06     ` Eddie James

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=20220407183941.36555-1-eajames@linux.ibm.com \
    --to=eajames@linux.ibm.com \
    --cc=joel@jms.id.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-leds@vger.kernel.org \
    --cc=openbmc@lists.ozlabs.org \
    --cc=patrick@stwcx.xyz \
    --cc=pavel@ucw.cz \
    /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 NNTP newsgroup(s).