[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0cb181b3-d257-b7a4-56e4-0d2bb04b0387@pengutronix.de>
Date: Fri, 13 Nov 2020 12:19:24 +0100
From: Ahmad Fatoum <a.fatoum@...gutronix.de>
To: Michał Mirosław <mirq-linux@...e.qmqm.pl>,
Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>
Cc: linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
Pengutronix Kernel Team <kernel@...gutronix.de>
Subject: Re: [PATCH RESEND 0/4] regulator: debugging and fixing supply deps
Hello Michał,
On 11/13/20 1:20 AM, Michał Mirosław wrote:
> It turns out that commit aea6cb99703e ("regulator: resolve supply
> after creating regulator") exposed a number of issues in regulator
> initialization and introduced a memory leak of its own. One uncovered
> problem was already fixed by cf1ad559a20d ("regulator: defer probe when
> trying to get voltage from unresolved supply"). This series fixes the
> remaining ones and adds a two debugging aids to help in the future.
>
> The final patch adds a workaround to preexisting problem occurring with
> regulators that have the same name as its supply_name. This worked
> before by accident, so might be worth backporting. The error message is
> left on purpose so that these configurations can be detected and fixed.
>
> (The first two patches are resends from Nov 5).
>
> (Series resent because of wrong arm-kernel ML address.)
lxa-mc1 (STM32MP1 board with STPMIC) now manages to boot again with following
new warning:
stpmic1-regulator 5c002000.i2c:stpmic@33:regulators: Supply for VREF_DDR
So for the whole series,
Tested-by: Ahmad Fatoum <a.fatoum@...gutronix.de> # stpmic1
Thanks!
Ahmad
>
> Michał Mirosław (4):
> regulator: fix memory leak with repeated set_machine_constraints()
> regulator: debug early supply resolving
> regulator: avoid resolve_supply() infinite recursion
> regulator: workaround self-referent regulators
>
> drivers/regulator/core.c | 40 ++++++++++++++++++++++++----------------
> 1 file changed, 24 insertions(+), 16 deletions(-)
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Powered by blists - more mailing lists