From: sashiko-bot@kernel.org
To: "Svyatoslav Ryhel" <clamor95@gmail.com>
Cc: linux-leds@vger.kernel.org, devicetree@vger.kernel.org,
mfd@lists.linux.dev, dri-devel@lists.freedesktop.org,
robh@kernel.org, conor+dt@kernel.org, lee@kernel.org
Subject: Re: [PATCH v8 4/4] mfd: aat2870: Add support for VIN and IN-LDO power supplies
Date: Fri, 04 Dec 2026 06:19:53 +0000 [thread overview]
Message-ID: <sashiko-outbox-249205@kernel.org> (raw)
In-Reply-To: <20261204060605.20688-5-clamor95@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] mfd: aat2870: combines MFD and regulator supply changes in one
commit
--
commit 2458ac83db273f6f53662923eee50f2fd8a3f3f6
Author: Svyatoslav Ryhel <clamor95@gmail.com>
mfd: aat2870: Add support for VIN and IN-LDO power supplies
This commit enables the vin supply in the AAT2870 MFD core driver and
wires up the in-ldo supply for the AAT2870 LDO regulators.
> diff --git a/drivers/mfd/aat2870-core.c b/drivers/mfd/aat2870-core.c
> index f5409dd91efb3..9017960ee73b1 100644
> --- a/drivers/mfd/aat2870-core.c
> +++ b/drivers/mfd/aat2870-core.c
[ ... ]
> @@ -307,6 +308,10 @@ static int aat2870_i2c_probe(struct i2c_client *client)
>
> aat2870->reg_cache = aat2870_regs;
>
> + ret = devm_regulator_get_enable(&client->dev, "vin");
> + if (ret)
> + return dev_err_probe(&client->dev, ret, "Failed to enable regulator\n");
> +
> aat2870->en_pin = devm_gpiod_get_optional(&client->dev, "enable",
> GPIOD_OUT_HIGH);
> if (IS_ERR(aat2870->en_pin))
> diff --git a/drivers/regulator/aat2870-regulator.c b/drivers/regulator/aat2870-regulator.c
> index c2d67f99498e5..aea9a5526a110 100644
> --- a/drivers/regulator/aat2870-regulator.c
> +++ b/drivers/regulator/aat2870-regulator.c
> @@ -105,6 +105,7 @@ static const unsigned int aat2870_ldo_voltages[] = {
> #define AAT2870_LDO(ids, match, vsel, vmask) { \
> .name = #ids, \
> .of_match = (match), \
> + .supply_name = "in-ldo", \
> .id = AAT2870_ID_##ids, \
> .n_voltages = ARRAY_SIZE(aat2870_ldo_voltages), \
> .volt_table = aat2870_ldo_voltages, \
[Severity: Low]
As reported by Lee Jones on v7 [1], should this commit be split into
separate MFD and regulator patches?
The vin-supply lookup in aat2870_i2c_probe() and the in-ldo .supply_name
entry in AAT2870_LDO have no build or functional dependency on each
other.
Even though the regulator hunk depends on commit "mfd: aat2870: Convert
to use OF bindings", splitting them lets the MFD and regulator
maintainers review and take the changes independently.
[1] https://lore.kernel.org/r/20261126124719.GJ38590@joneslee-macbookpro.roam.internal
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204060605.20688-1-clamor95@gmail.com?part=4
next prev parent reply other threads:[~2026-12-04 6:19 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 6:06 [PATCH v8 0/4] mfd: aat2870: Convert to use OF bindings Svyatoslav Ryhel
2026-12-04 6:06 ` [PATCH v8 1/4] dt-bindings: leds: Document Skyworks AAT2870 Svyatoslav Ryhel
2026-12-04 6:14 ` sashiko-bot
2026-12-04 6:06 ` [PATCH v8 2/4] backlight: aat2870: Derive brightness steps from max current Svyatoslav Ryhel
2026-12-04 6:06 ` [PATCH v8 3/4] mfd: aat2870: Convert to use OF bindings Svyatoslav Ryhel
2026-12-04 6:26 ` sashiko-bot
2026-12-05 8:46 ` Svyatoslav Ryhel
2026-12-04 6:06 ` [PATCH v8 4/4] mfd: aat2870: Add support for VIN and IN-LDO power supplies Svyatoslav Ryhel
2026-12-04 6:19 ` sashiko-bot [this message]
2026-12-05 8:44 ` Svyatoslav Ryhel
2026-12-04 6:26 ` [PATCH v8 0/4] mfd: aat2870: Convert to use OF bindings 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-249205@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=clamor95@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=lee@kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=mfd@lists.linux.dev \
--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 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.