mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Matt Moeller via B4 Relay <devnull+matthew.moeller.kinze.com@kernel.org>
To: Lee Jones <lee@kernel.org>, Pavel Machek <pavel@kernel.org>,
	 Griffin Kroah-Hartman <griffin@kroah.com>,
	Daniel Mack <daniel@zonque.org>,
	 Jean-Jacques Hiblot <jjhiblot@traphandler.com>
Cc: linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org,
	 stable@vger.kernel.org, Matt Moeller <matthew.moeller@kinze.com>
Subject: [PATCH 1/2] leds: is31fl32xx: Fix the IS31FL3293 reset register
Date: Wed, 02 Dec 2026 11:34:54 -0600	[thread overview]
Message-ID: <20261202-for-upstream-v1-1-709b6da8706b@kinze.com> (raw)
In-Reply-To: <20261202-for-upstream-v1-0-709b6da8706b@kinze.com>

From: Matt Moeller <matthew.moeller@kinze.com>

The IS31FL3293 datasheet (Rev. A, 09/22/2022) lists the Reset Register
at 3Fh; there is no register at 3Ch. Writing the 0xc5 magic to 0x3c
does nothing, so is31fl3293_reset() leaves the chip in whatever state
it was in before probe.

That matters when a bootloader has already set the chip up. On our
board U-Boot turns the status LED on in current-level mode (register
0x02 = 0x2a, current level registers at 0xff); the chip then ignores the
PWM registers this driver writes, and the LED stays white whatever
brightness is set.

Write the magic to 0x3f. On that board, writing 0xc5 to 0x3c leaves
every register as it was, and writing it to 0x3f returns them to their
default values (register 0x02 = 0x00), after which the brightness set
through sysfs reaches the outputs.

The problem was found and this fix written with help from Claude
(Anthropic), and tested on hardware.

Fixes: a18983b95a61 ("leds: is31f132xx: Add support for is31fl3293")
Cc: stable@vger.kernel.org
Signed-off-by: Matt Moeller <matthew.moeller@kinze.com>
---
 drivers/leds/leds-is31fl32xx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/leds/leds-is31fl32xx.c b/drivers/leds/leds-is31fl32xx.c
index 513ada8445b4..2abc2d2fb29b 100644
--- a/drivers/leds/leds-is31fl32xx.c
+++ b/drivers/leds/leds-is31fl32xx.c
@@ -45,7 +45,7 @@
 #define IS31FL3293_CL_REG 0x10
 #define IS31FL3293_COLOR_UPDATE_REG 0x27
 #define IS31FL3293_COLOR_UPDATE_MAGIC 0xc5
-#define IS31FL3293_RESET_REG 0x3c
+#define IS31FL3293_RESET_REG 0x3f
 #define IS31FL3293_RESET_MAGIC 0xc5
 #define IS31FL3293_MAX_MICROAMP 20000
 

-- 
2.53.0



  reply	other threads:[~2026-12-02 17:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02 17:34 [PATCH 0/2] leds: Fix IS31FL3293 reset and leds-group-multicolor overflow Matt Moeller via B4 Relay
2026-12-02 17:34 ` Matt Moeller via B4 Relay [this message]
2026-12-02 17:34 ` [PATCH 2/2] leds: rgb: leds-group-multicolor: Fix overflow with high max_brightness Matt Moeller via B4 Relay

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=20261202-for-upstream-v1-1-709b6da8706b@kinze.com \
    --to=devnull+matthew.moeller.kinze.com@kernel.org \
    --cc=daniel@zonque.org \
    --cc=griffin@kroah.com \
    --cc=jjhiblot@traphandler.com \
    --cc=lee@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-leds@vger.kernel.org \
    --cc=matthew.moeller@kinze.com \
    --cc=pavel@kernel.org \
    --cc=stable@vger.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

all inboxes | Powered by JetHome®