From: sashiko-bot@kernel.org
To: "Rillian Grant" <rillian.grant@gmail.com>
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: Sun, 11 Oct 2026 19:20:13 +0000 [thread overview]
Message-ID: <sashiko-outbox-167401@kernel.org> (raw)
In-Reply-To: <20261011191026.149338-3-rillian.grant@gmail.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] leds: missing hardware startup delay after asserting enable GPIO
- [Low] leds: non-standard commit message prefix used
--
commit e9482e46025f29c98cd459b067571fee928be4b6
Author: Rillian Grant <rillian.grant@gmail.com>
leds: flash: Add support for the TI LM3643 dual LED flash driver
This commit introduces support for the Texas Instruments LM3643 dual LED
flash driver over I2C. The chip provides torch and flash modes with
programmable current and timeouts via a shared synchronous boost converter.
> leds: flash: Add support for the TI LM3643 dual LED flash driver
[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: "?
> diff --git a/drivers/leds/flash/leds-lm3643.c b/drivers/leds/flash/leds-lm3643.c
> --- /dev/null
> +++ b/drivers/leds/flash/leds-lm3643.c
[ ... ]
> +static int lm3643_probe(struct i2c_client *client)
> +{
[ ... ]
> + hwen = devm_gpiod_get_optional(dev, "enable", GPIOD_OUT_HIGH);
> + if (IS_ERR(hwen))
> + return dev_err_probe(dev, PTR_ERR(hwen), "failed to get enable GPIO\n");
> +
> + chip = devm_kzalloc(dev, sizeof(*chip), GFP_KERNEL);
> + if (!chip)
> + return -ENOMEM;
> + i2c_set_clientdata(client, chip);
> +
> + chip->regmap = devm_regmap_init_i2c(client, &lm3643_regmap_config);
> + if (IS_ERR(chip->regmap))
> + return dev_err_probe(dev,
> + PTR_ERR(chip->regmap),
> + "failed to allocate register map\n");
> +
> + ret = regmap_read(chip->regmap, LM3643_REG_DEV_ID, &dev_id);
[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?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261011191026.149338-1-rillian.grant@gmail.com?part=2
next prev parent reply other threads:[~2026-10-11 19:20 UTC|newest]
Thread overview: 10+ 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 [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-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=sashiko-outbox-167401@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=lee@kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=rillian.grant@gmail.com \
--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