Devicetree
 help / color / mirror / Atom feed
From: Rillian Grant <rillian.grant@gmail.com>
To: sashiko-reviews@lists.linux.dev
Cc: robh@kernel.org, conor+dt@kernel.org, linux-leds@vger.kernel.org,
	devicetree@vger.kernel.org, lee@kernel.org
Subject: Re: [PATCH v3 2/4] leds: flash: Add support for the TI LM3643 dual LED flash driver
Date: Tue, 13 Oct 2026 10:31:11 +0100	[thread overview]
Message-ID: <LwK5_fJASKu0tC1wo7o7Uw@gmail.com> (raw)
In-Reply-To: <sashiko-outbox-167401@kernel.org>

> [Severity: Low]
> This isn't a bug, but does this commit subject violate the subsystem naming
> conventions?
> 
> According to the LED subsystem guidelines, embedding subsystem subdirectory
> names like flash into the prefix hinders Git history categorization.
> Embedding implementation details can also create rigid and non-reusable
> drivers.
> 
> Could the driver name lm3643 be used in the prefix instead, such as
> "leds: lm3643: "?

Happy to switch to "leds: flash: lm3643:" across the series if there is
another revision, or for the maintainer to adjust when applying.

> [Severity: Medium]
> Does this sequence require a hardware startup delay after asserting the
> enable GPIO?
> 
> The lm3643_probe() function drives the HWEN GPIO high and then shortly after
> initiates an I2C regmap_read() to fetch the device ID. Failing to provide a
> programmatic delay (e.g., via usleep_range) might cause the I2C transfer to
> fail on platforms where the CPU executes the bus transaction before the
> hardware state machine and internal oscillator are fully initialized.
> 
> Could a small delay be added here to ensure the chip is ready for I2C
> traffic before the register read is attempted?

The LM3643 datasheet specifies no delay between HWEN high and I2C ready,
so I'd rather not add an arbitrary sleep.

-- 
Rillian Grant



  reply	other threads:[~2026-10-13  9:31 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-11 19:09 [PATCH v3 0/4] leds: flash: LM3643 dual LED flash driver Rillian Grant
2026-10-11 19:09 ` [PATCH v3 1/4] dt-bindings: leds: Document TI " Rillian Grant
2026-10-11 19:14   ` sashiko-bot
2026-10-12  9:51   ` Krzysztof Kozlowski
2026-10-11 19:09 ` [PATCH v3 2/4] leds: flash: Add support for the " Rillian Grant
2026-10-11 19:20   ` sashiko-bot
2026-10-13  9:31     ` Rillian Grant [this message]
2026-10-11 19:09 ` [PATCH v3 3/4] leds: flash: lm3643: Describe the LED of ACPI boards without LED nodes Rillian Grant
2026-10-11 19:20   ` sashiko-bot
2026-10-13  9:38     ` Rillian Grant
2026-10-11 19:09 ` [PATCH v3 4/4] leds: flash: lm3643: Describe the LED on the Lenovo ThinkPad X9-15 Gen 1 Rillian Grant
2026-10-11 19:15   ` sashiko-bot

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=LwK5_fJASKu0tC1wo7o7Uw@gmail.com \
    --to=rillian.grant@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=lee@kernel.org \
    --cc=linux-leds@vger.kernel.org \
    --cc=robh@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox