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 8/9] Input: axp20x-pek: Add AXP192 support
Date: Sun, 06 Dec 2026 03:21:50 +0000 [thread overview]
Message-ID: <sashiko-outbox-252114@kernel.org> (raw)
In-Reply-To: <20261206-axp192-v7-8-0200fc77da53@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] Input: axp20x-pek: wrong startup_time table used for
axp192_info
--
commit cdefc58fa41ce85f7aa8b01d02fa130c1b3b21dd
Author: Molnár Máté <matemolnar88@gmail.com>
Input: axp20x-pek: Add AXP192 support
This commit adds an axp192-pek variant that reports each short-press or
long-press interrupt as a complete KEY_POWER press/release sequence, and
initializes axp20x_pek->info before registering the input device.
> diff --git a/drivers/input/misc/axp20x-pek.c b/drivers/input/misc/axp20x-pek.c
> index a02cdabcf22b1..739da57ca08cf 100644
> --- a/drivers/input/misc/axp20x-pek.c
> +++ b/drivers/input/misc/axp20x-pek.c
[ ... ]
> @@ -78,6 +83,14 @@ static const struct axp20x_info axp20x_info = {
> .shutdown_mask = AXP20X_PEK_SHUTDOWN_MASK,
> };
>
> +static const struct axp20x_info axp192_info = {
> + .startup_time = startup_time,
> + .startup_mask = AXP20X_PEK_STARTUP_MASK,
> + .shutdown_time = shutdown_time,
> + .shutdown_mask = AXP20X_PEK_SHUTDOWN_MASK,
> + .press_events_only = true,
> +};
[Severity: Medium]
Does the shared startup_time table match AXP192's hardware encoding?
In startup_time[], idx 1 (0b01) maps to 3000 ms, whereas on AXP192
register 0x36 bits [7:6] = 0b01 is 512 ms (the reset default) and there
is no 3000 ms setting. Reading startup reports 3000 ms instead of 512
ms, and writing 512 programs 128 ms while writing 3000 programs 512 ms.
Defining a dedicated axp192_startup_time table mapping idx 0..3 to 128,
512, 1000, and 2000 ms (like axp221_startup_time) would match the AXP192
encoding.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261206-axp192-v7-0-0200fc77da53@gmail.com?part=8
next prev parent reply other threads:[~2026-12-06 3:21 UTC|newest]
Thread overview: 16+ 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:22 ` sashiko-bot
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:24 ` sashiko-bot
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:23 ` sashiko-bot
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:24 ` sashiko-bot
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:21 ` sashiko-bot [this message]
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
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-252114@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