Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1068900pxb; Fri, 13 Nov 2020 03:28:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJyjlfK6mnzHn1klSmXZCnBbm2o4vj7Bq+yRGM99Qxf6F3zQWSwzgzKrxuH6uHKTmozSXQ8v X-Received: by 2002:a05:6402:1b19:: with SMTP id by25mr1966473edb.108.1605266888451; Fri, 13 Nov 2020 03:28:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605266888; cv=none; d=google.com; s=arc-20160816; b=TvEnKovhDuX/qKVXaZ0+yzWiIgfdbZAgsnvHPZvGvbu9FRHPzCIcOjYTz+Wat/scWG maBKzJarK06dezuYr3eXC/+jIWyf5wF53kTnCI4Qum7+g0jwiXj4I8mNzqbAmDWY7Lra TWKClOlN5sjbXqyOsVXyIhZmYJ+w3qQipuMRmA29kasKWTStAtqlDEQxcXbVBNFqSSpM /+A2+XtScubwwd/9no7jCKRoJk82GPz8jx1jgEHpCNudHnm3/XeGVICBQzPlbkB+bGsQ ZO0VxdsdCy9yGHHOQx4EmCNnK4LZloYtRQ4d6am5Ec7Of/2y+spv5sEirF8x8URybYxz B2Ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:references:cc :to:from:subject; bh=NIroyf8vL0gaFX/CHtdOZedCrd49dYomjVS5z6qeXUo=; b=DcPj1BfhixlJABQ/ZkhXZxi3Jmk8C5TWnuw46rCXp6ZjhklnGYpdQWpeCLzTsHl3y2 uom78h13YNDZqnBkhIt30RQYfill3MOiJxLYGjuGv+iOlFQLq6o19/ALQdaiMyx9DOmS JqcJzz/dVJX8LBEZSUt1/WmaEOlOMjb5UYxRYN8iefpHaZPvKABTcaQRYvBeFf5R0A0n dgXqj4KcF2zAKPtroJ8zy8/gvar8rn+5nrYg/ih9HOCPl6Gys9iuI9VR0mJbxZN0RUXc 5oELq7vTCPYlFuQlsrwt7xhPNMWi4M4GbfXaMlpjDk3v9p7qn80hOMz3p00Z0gToursS fx0A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r19si5230645ejc.668.2020.11.13.03.27.44; Fri, 13 Nov 2020 03:28:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726430AbgKMLXs (ORCPT + 99 others); Fri, 13 Nov 2020 06:23:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726380AbgKMLW4 (ORCPT ); Fri, 13 Nov 2020 06:22:56 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61633C0617A7 for ; Fri, 13 Nov 2020 03:22:56 -0800 (PST) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=[127.0.0.1]) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1kdXAL-0000Qs-Cn; Fri, 13 Nov 2020 12:22:53 +0100 Subject: Re: [PATCH RESEND 0/4] regulator: debugging and fixing supply deps From: Ahmad Fatoum To: =?UTF-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , Liam Girdwood , Mark Brown Cc: Pengutronix Kernel Team , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, "linux-stm32@st-md-mailman.stormreply.com" References: <0cb181b3-d257-b7a4-56e4-0d2bb04b0387@pengutronix.de> Message-ID: <49aaa901-041d-e803-2ec5-167d8bb6372f@pengutronix.de> Date: Fri, 13 Nov 2020 12:22:53 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.3.1 MIME-Version: 1.0 In-Reply-To: <0cb181b3-d257-b7a4-56e4-0d2bb04b0387@pengutronix.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: a.fatoum@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CC += linux-stm32 as other STM32MP1 boards are also affected. On 11/13/20 12:19 PM, Ahmad Fatoum wrote: > 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 # 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 |