From: sashiko-bot@kernel.org
To: "Molnár Máté" <matemolnar88@gmail.com>
Cc: devicetree@vger.kernel.org, linux-input@vger.kernel.org,
mfd@lists.linux.dev, robh@kernel.org, conor+dt@kernel.org,
dmitry.torokhov@gmail.com, lee@kernel.org
Subject: Re: [PATCH v7 9/9] mfd: axp20x: Add the AXP192 power key cell
Date: Sun, 06 Dec 2026 03:18:47 +0000 [thread overview]
Message-ID: <sashiko-outbox-252111@kernel.org> (raw)
In-Reply-To: <20261206-axp192-v7-9-0200fc77da53@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] mfd: axp20x: axp192-pek binds wrong startup_time table (3000
ms vs 512 ms)
--
commit b429e0305e2c580e4921542de1958ebb7c2e1469
Author: Molnár Máté <matemolnar88@gmail.com>
mfd: axp20x: Add the AXP192 power key cell
This commit registers the axp192-pek MFD cell and its short and long press
IRQ resources for the AXP192 PMIC.
> diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c
> index 4d770e7187160..f9bf06ddbe09f 100644
> --- a/drivers/mfd/axp20x.c
> +++ b/drivers/mfd/axp20x.c
[ ... ]
> @@ -956,6 +962,10 @@ static const struct mfd_cell axp192_cells[] = {
> .of_compatible = "x-powers,axp192-usb-power-supply",
> .num_resources = ARRAY_SIZE(axp192_usb_power_supply_resources),
> .resources = axp192_usb_power_supply_resources,
> + }, {
> + .name = "axp192-pek",
> + .num_resources = ARRAY_SIZE(axp192_pek_resources),
> + .resources = axp192_pek_resources,
> },
> { .name = "axp20x-regulator" },
> };
[Severity: Medium]
Does binding axp192-pek expose the wrong startup_time table on AXP192?
In commit "Input: axp20x-pek: Add AXP192 support", axp192_info in
drivers/input/misc/axp20x-pek.c reuses the AXP20x startup_time table, where
idx 1 is 3000 ms. On AXP192, register 0x36 bits [7:6] encode 0b01 as
512 ms instead (128, 512, 1000, and 2000 ms).
As a result, reading the startup sysfs attribute reports 3000 ms instead of
512 ms for the hardware default, and writing 512 selects 128 ms while
writing 3000 programs 512 ms. Adding an AXP192-specific startup_time table
that maps idx 1 to 512 ms would fix this.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261206-axp192-v7-0-0200fc77da53@gmail.com?part=9
prev parent reply other threads:[~2026-12-06 3:18 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-06 3:08 [PATCH v7 0/9] Add the remaining AXP192 PMIC support Molnár Máté via B4 Relay
2026-12-06 3:08 ` [PATCH v7 1/9] dt-bindings: iio: adc: axp209: Add AXP192 compatible Molnár Máté via B4 Relay
2026-12-06 3:08 ` [PATCH v7 2/9] dt-bindings: power: axp20x-battery: " Molnár Máté via B4 Relay
2026-12-06 3:08 ` [PATCH v7 3/9] regulator: axp20x: Add support for AXP192 Molnár Máté via B4 Relay
2026-12-06 3:08 ` [PATCH v7 4/9] power: axp20x_battery: Add constant charge current table Molnár Máté via B4 Relay
2026-12-06 3:08 ` [PATCH v7 5/9] power: axp20x_battery: Support battery status without fuel gauge Molnár Máté via B4 Relay
2026-12-06 3:08 ` [PATCH v7 6/9] power: axp20x_battery: Add support for AXP192 Molnár Máté via B4 Relay
2026-12-06 3:08 ` [PATCH v7 7/9] power: axp20x_battery: Estimate AXP192 capacity from the OCV table Molnár Máté via B4 Relay
2026-12-06 3:09 ` [PATCH v7 8/9] Input: axp20x-pek: Add AXP192 support Molnár Máté via B4 Relay
2026-12-06 3:09 ` [PATCH v7 9/9] mfd: axp20x: Add the AXP192 power key cell Molnár Máté via B4 Relay
2026-12-06 3:18 ` sashiko-bot [this message]
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-252111@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=lee@kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=matemolnar88@gmail.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox