All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Linus Walleij" <linusw@kernel.org>
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v3 2/2] ARM: dts: ux500: Use AB8505 charger compatible
Date: Fri, 25 Sep 2026 09:08:11 +0000	[thread overview]
Message-ID: <20260925090811.818CC1F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260925-ab8500-charger-dt-v3-2-f80b8d295e2d@kernel.org>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] power: supply: ab8500_charger probe fails on AB8505 due to missing interrupts
--

commit 200a7cf6b0fcab2522c0b09962c1e5a2bbf1cd85
Author: Linus Walleij <linusw@kernel.org>

ARM: dts: ux500: Use AB8505 charger compatible

Identify the AB8505 charger using its variant-specific compatible and
retain the AB8500 compatible as a fallback. Remove the nonexistent AB8500
main charger interrupts from the AB8505 charger node.

> diff --git a/arch/arm/boot/dts/st/ste-ab8505.dtsi b/arch/arm/boot/dts/st/ste-ab8505.dtsi
> index 131c82508e820..4c9a8418f225a 100644
> --- a/arch/arm/boot/dts/st/ste-ab8505.dtsi
> +++ b/arch/arm/boot/dts/st/ste-ab8505.dtsi
> @@ -137,13 +137,9 @@ ab8500_btemp {
>  				};
>  
>  				ab8500_charger {
> -					compatible = "stericsson,ab8500-charger";
> -					interrupts = <10 IRQ_TYPE_LEVEL_HIGH>,
> -						     <11 IRQ_TYPE_LEVEL_HIGH>,
> -						     <0 IRQ_TYPE_LEVEL_HIGH>,
> -						     <107 IRQ_TYPE_LEVEL_HIGH>,
> -						     <106 IRQ_TYPE_LEVEL_HIGH>,
> -						     <14 IRQ_TYPE_LEVEL_HIGH>,
> +					compatible = "stericsson,ab8505-charger",
> +						     "stericsson,ab8500-charger";
> +					interrupts = <14 IRQ_TYPE_LEVEL_HIGH>,

[Severity: High]
Will this cause the probe function to fail on the AB8505 platform?

Looking at ab8500_charger_probe() in drivers/power/supply/ab8500_charger.c,
it unconditionally iterates over the statically sized 14-element
ab8500_charger_irq array:

	for (i = 0; i < ARRAY_SIZE(ab8500_charger_irq); i++) {
		irq = platform_get_irq_byname(pdev, ab8500_charger_irq[i].name);
		if (irq < 0)
			return irq;

Since this patch removes five of these expected interrupts (such as
MAIN_CH_UNPLUG_DET) from the device tree node, platform_get_irq_byname()
will return a negative error code and abort the probe.

[ ... ]

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260925-ab8500-charger-dt-v3-0-f80b8d295e2d@kernel.org?part=2

  reply	other threads:[~2026-09-25  9:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-25  8:59 [PATCH v3 0/2] power: supply: Correct AB8505 charger device tree Linus Walleij
2026-09-25  8:59 ` [PATCH v3 1/2] dt-bindings: power: supply: ab8500: Add AB8505 charger Linus Walleij
2026-09-25  9:09   ` sashiko-bot
2026-09-25 16:22     ` Linus Walleij
2026-09-25  8:59 ` [PATCH v3 2/2] ARM: dts: ux500: Use AB8505 charger compatible Linus Walleij
2026-09-25  9:08   ` sashiko-bot [this message]
2026-09-25 16:23     ` Linus Walleij
2026-10-04 17:46 ` (subset) [PATCH v3 0/2] power: supply: Correct AB8505 charger device tree Sebastian Reichel

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=20260925090811.818CC1F000FF@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linusw@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 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.