Linux GPIO subsystem development
 help / color / mirror / Atom feed
* [PATCH 0/4] Drive-by changes to axp20x drivers
@ 2026-09-21  9:41 Uwe Kleine-König
  2026-09-21  9:41 ` [PATCH 1/4] pinctrl: axp209: Drop check for disabled devices Uwe Kleine-König
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Uwe Kleine-König @ 2026-09-21  9:41 UTC (permalink / raw)
  To: Linus Walleij, Chen-Yu Tsai, Sebastian Reichel
  Cc: linux-gpio, linux-kernel, linux-pm

Hello,

while trying to help a Debian user debugging why USB doesn't work in the
installer on a bananapi, I discovered these patch opportunities. They
are only build tested.

The first patch touches a different subsystem than the other three, but
given that maintainership overlaps and the first two patches are
identical in spirit, I still created a single series only. The two
subsets are orthogonal, so can be picked up individually by their
respective subsystem maintainers (and please do so assuming you're happy
with the patches).

Best regards
Uwe

Uwe Kleine-König (4):
  pinctrl: axp209: Drop check for disabled devices
  power: supply: axp20x*: Drop check for disabled devices
  power: supply: axp20x_usb: Introduce a helper variable for &pdev->dev
  power: supply: axp20x_usb: Improve probe error reporting

 drivers/pinctrl/pinctrl-axp209.c        |  3 --
 drivers/power/supply/axp20x_ac_power.c  |  3 --
 drivers/power/supply/axp20x_battery.c   |  3 --
 drivers/power/supply/axp20x_usb_power.c | 50 ++++++++++++-------------
 4 files changed, 25 insertions(+), 34 deletions(-)


base-commit: 3f2425f5b5bbbdd991ca9cdfd5502e68d8895998
-- 
2.47.3


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/4] pinctrl: axp209: Drop check for disabled devices
  2026-09-21  9:41 [PATCH 0/4] Drive-by changes to axp20x drivers Uwe Kleine-König
@ 2026-09-21  9:41 ` Uwe Kleine-König
  2026-10-01  6:52   ` Linus Walleij
  2026-09-21 13:09 ` [PATCH 0/4] Drive-by changes to axp20x drivers Chen-Yu Tsai
  2026-10-04 17:46 ` (subset) " Sebastian Reichel
  2 siblings, 1 reply; 5+ messages in thread
From: Uwe Kleine-König @ 2026-09-21  9:41 UTC (permalink / raw)
  To: Linus Walleij, Chen-Yu Tsai; +Cc: linux-gpio, linux-kernel

Since commit 6b5c350648b8 ("mfd: mfd-core: Honour Device Tree's request
to disable a child-device") the mfd core checks for disabled devices, so
there is no use in doing that again in the mfd child driver.

Drop the check.

Signed-off-by: Uwe Kleine-König <ukleinek@debian.org>
---
 drivers/pinctrl/pinctrl-axp209.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/pinctrl/pinctrl-axp209.c b/drivers/pinctrl/pinctrl-axp209.c
index 2bd8487484a8..5539ce642b39 100644
--- a/drivers/pinctrl/pinctrl-axp209.c
+++ b/drivers/pinctrl/pinctrl-axp209.c
@@ -442,9 +442,6 @@ static int axp20x_pctl_probe(struct platform_device *pdev)
 	struct pinctrl_desc *pctrl_desc;
 	int ret;
 
-	if (!of_device_is_available(pdev->dev.of_node))
-		return -ENODEV;
-
 	if (!axp20x) {
 		dev_err(&pdev->dev, "Parent drvdata not set\n");
 		return -EINVAL;
-- 
2.47.3


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 0/4] Drive-by changes to axp20x drivers
  2026-09-21  9:41 [PATCH 0/4] Drive-by changes to axp20x drivers Uwe Kleine-König
  2026-09-21  9:41 ` [PATCH 1/4] pinctrl: axp209: Drop check for disabled devices Uwe Kleine-König
@ 2026-09-21 13:09 ` Chen-Yu Tsai
  2026-10-04 17:46 ` (subset) " Sebastian Reichel
  2 siblings, 0 replies; 5+ messages in thread
From: Chen-Yu Tsai @ 2026-09-21 13:09 UTC (permalink / raw)
  To: Uwe Kleine-König
  Cc: Linus Walleij, Sebastian Reichel, linux-gpio, linux-kernel,
	linux-pm

On Mon, Sep 21, 2026 at 5:42 PM Uwe Kleine-König <ukleinek@debian.org> wrote:
>
> Hello,
>
> while trying to help a Debian user debugging why USB doesn't work in the
> installer on a bananapi, I discovered these patch opportunities. They
> are only build tested.
>
> The first patch touches a different subsystem than the other three, but
> given that maintainership overlaps and the first two patches are
> identical in spirit, I still created a single series only. The two
> subsets are orthogonal, so can be picked up individually by their
> respective subsystem maintainers (and please do so assuming you're happy
> with the patches).
>
> Best regards
> Uwe
>
> Uwe Kleine-König (4):
>   pinctrl: axp209: Drop check for disabled devices
>   power: supply: axp20x*: Drop check for disabled devices
>   power: supply: axp20x_usb: Introduce a helper variable for &pdev->dev
>   power: supply: axp20x_usb: Improve probe error reporting

Whole series is

Reviewed-by: Chen-Yu Tsai <wens@kernel.org>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/4] pinctrl: axp209: Drop check for disabled devices
  2026-09-21  9:41 ` [PATCH 1/4] pinctrl: axp209: Drop check for disabled devices Uwe Kleine-König
@ 2026-10-01  6:52   ` Linus Walleij
  0 siblings, 0 replies; 5+ messages in thread
From: Linus Walleij @ 2026-10-01  6:52 UTC (permalink / raw)
  To: Uwe Kleine-König; +Cc: Chen-Yu Tsai, linux-gpio, linux-kernel

On Mon, Sep 21, 2026 at 11:42 AM Uwe Kleine-König <ukleinek@debian.org> wrote:

> Since commit 6b5c350648b8 ("mfd: mfd-core: Honour Device Tree's request
> to disable a child-device") the mfd core checks for disabled devices, so
> there is no use in doing that again in the mfd child driver.
>
> Drop the check.
>
> Signed-off-by: Uwe Kleine-König <ukleinek@debian.org>

This patch 1/4 applied to the pin control tree.

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: (subset) [PATCH 0/4] Drive-by changes to axp20x drivers
  2026-09-21  9:41 [PATCH 0/4] Drive-by changes to axp20x drivers Uwe Kleine-König
  2026-09-21  9:41 ` [PATCH 1/4] pinctrl: axp209: Drop check for disabled devices Uwe Kleine-König
  2026-09-21 13:09 ` [PATCH 0/4] Drive-by changes to axp20x drivers Chen-Yu Tsai
@ 2026-10-04 17:46 ` Sebastian Reichel
  2 siblings, 0 replies; 5+ messages in thread
From: Sebastian Reichel @ 2026-10-04 17:46 UTC (permalink / raw)
  To: Linus Walleij, Chen-Yu Tsai, Sebastian Reichel,
	Uwe Kleine-König
  Cc: linux-gpio, linux-kernel, linux-pm


On Mon, 21 Sep 2026 11:41:45 +0200, Uwe Kleine-König wrote:
> while trying to help a Debian user debugging why USB doesn't work in the
> installer on a bananapi, I discovered these patch opportunities. They
> are only build tested.
> 
> The first patch touches a different subsystem than the other three, but
> given that maintainership overlaps and the first two patches are
> identical in spirit, I still created a single series only. The two
> subsets are orthogonal, so can be picked up individually by their
> respective subsystem maintainers (and please do so assuming you're happy
> with the patches).
> 
> [...]

Applied, thanks!

[2/4] power: supply: axp20x*: Drop check for disabled devices
      commit: c9ed44ab230f4359cdb3a72263c65daf31bd8528
[3/4] power: supply: axp20x_usb: Introduce a helper variable for &pdev->dev
      commit: da54acbc2ff2470c49259a91a5f48c4b0cce09d7
[4/4] power: supply: axp20x_usb: Improve probe error reporting
      commit: f945606a8cb34c97d644ed487282f96641b05185

Best regards,
-- 
Sebastian Reichel <sebastian.reichel@collabora.com>


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-10-04 17:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-21  9:41 [PATCH 0/4] Drive-by changes to axp20x drivers Uwe Kleine-König
2026-09-21  9:41 ` [PATCH 1/4] pinctrl: axp209: Drop check for disabled devices Uwe Kleine-König
2026-10-01  6:52   ` Linus Walleij
2026-09-21 13:09 ` [PATCH 0/4] Drive-by changes to axp20x drivers Chen-Yu Tsai
2026-10-04 17:46 ` (subset) " Sebastian Reichel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox