* [PATCH v2] mfd: axp20x: set explicit ID for regulator cell if no IRQ line is present
@ 2025-07-01 16:36 Chen-Yu Tsai
2025-07-10 8:54 ` (subset) " Lee Jones
0 siblings, 1 reply; 2+ messages in thread
From: Chen-Yu Tsai @ 2025-07-01 16:36 UTC (permalink / raw)
To: Lee Jones
Cc: Chen-Yu Tsai, linux-sunxi, linux-arm-kernel, linux-kernel,
Andre Przywara, Chris Morgan, Vasily Khoruzhick
From: Chen-Yu Tsai <wens@csie.org>
Originally an explicit ID for the AXP313/AXP323 regulator was set to
avoid a conflict with the primary AXP717 PMIC on Allwinner A523 family
boards.
This didn't entirely work since on some or all of these boards, the
interrupt line on this secondary PMIC was left unconnected, and thus
the driver would fall back to the generic "no interrupt; only regulators"
case, which didn't have the explicit ID set, thus undoing the intended
fix.
Also set an explicit ID for the regulator cell in the no IRQ generic
fall back case. This fixes the conflict for the AXP717 + AXP313/AXP323
case. For the actual single PMIC with no IRQ connected case, the ID does
not affect functionality, only the device naming of the regulator cell,
and by extension the name and path under sysfs.
Fixes: 249abf9b1e25 ("mfd: axp20x: Set explicit ID for AXP313 regulator")
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
---
This is an alternative to
mfd: axp20x: Skip PEK on AXP313A/AXP323 if no interrupt line is available
which was deemed too fragile.
---
drivers/mfd/axp20x.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c
index 25c639b348cd..c5f0ebae327f 100644
--- a/drivers/mfd/axp20x.c
+++ b/drivers/mfd/axp20x.c
@@ -1231,9 +1231,8 @@ static const struct mfd_cell axp15060_cells[] = {
/* For boards that don't have IRQ line connected to SOC. */
static const struct mfd_cell axp_regulator_only_cells[] = {
- {
- .name = "axp20x-regulator",
- },
+ /* PMIC without IRQ line may be secondary PMIC */
+ MFD_CELL_BASIC("axp20x-regulator", NULL, NULL, 0, 1),
};
static int axp20x_power_off(struct sys_off_data *data)
--
2.39.5
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: (subset) [PATCH v2] mfd: axp20x: set explicit ID for regulator cell if no IRQ line is present
2025-07-01 16:36 [PATCH v2] mfd: axp20x: set explicit ID for regulator cell if no IRQ line is present Chen-Yu Tsai
@ 2025-07-10 8:54 ` Lee Jones
0 siblings, 0 replies; 2+ messages in thread
From: Lee Jones @ 2025-07-10 8:54 UTC (permalink / raw)
To: Lee Jones, Chen-Yu Tsai
Cc: Chen-Yu Tsai, linux-sunxi, linux-arm-kernel, linux-kernel,
Andre Przywara, Chris Morgan, Vasily Khoruzhick
On Wed, 02 Jul 2025 00:36:52 +0800, Chen-Yu Tsai wrote:
> Originally an explicit ID for the AXP313/AXP323 regulator was set to
> avoid a conflict with the primary AXP717 PMIC on Allwinner A523 family
> boards.
>
> This didn't entirely work since on some or all of these boards, the
> interrupt line on this secondary PMIC was left unconnected, and thus
> the driver would fall back to the generic "no interrupt; only regulators"
> case, which didn't have the explicit ID set, thus undoing the intended
> fix.
>
> [...]
Applied, thanks!
[1/1] mfd: axp20x: set explicit ID for regulator cell if no IRQ line is present
commit: c6c68f08d524ab76cc3cf6449a8cb235b8c3fc06
--
Lee Jones [李琼斯]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-07-10 8:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-07-01 16:36 [PATCH v2] mfd: axp20x: set explicit ID for regulator cell if no IRQ line is present Chen-Yu Tsai
2025-07-10 8:54 ` (subset) " Lee Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®