Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp156573pxv; Wed, 14 Jul 2021 00:34:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxC94KvVr9imDLIg/UFFIDNMAQf62AcFBwmuF9/tr9rEUKx6a1vaYBMve5dEX7IjrhDG2WW X-Received: by 2002:aa7:c782:: with SMTP id n2mr11724474eds.77.1626248086350; Wed, 14 Jul 2021 00:34:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626248086; cv=none; d=google.com; s=arc-20160816; b=S8kT4hKV0FvKcs1s0KLcUlR56jAOGd+uLONxezR4hN+Bl1K/qk6whkqhyJ5vDbmM99 IClsjIsT0ZfGL6kc37Zo3cLuKkECTCk9zDuDQvTSQF+ern9NQe8gZucRpaRwR+4JlldC HE+ej73wVaPhqvFARBXI35qEtOTUfYYjwPdmbOOaY3RJNPkgU8gb3bPW5AEMVK3YXoqn FExm5Hdnq8g467ocClyK5dOKPXdZ6fnseiE65KGr9nRq9gRaXPlJvFiWuaONZpNLVBoA oUZDmv5GMNnwB4Sga3KRERIt2NKQwu6k3LM2eGDVXowgkmtF/1/BCJi2jst3wuNPxyOs w4Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=frxvPn/3DRth+yPvylduwkc8X0PJDf65B+98vS/70Xg=; b=NwFeti+WqnmBo4lkrzEOAar84xbgBOoiXG8tNbiVgDbPxoOLo9IuF+CLh7OoZDQ3iO fkewZeOpt94I9EXR/Am88nBczazXmrC40MN5MggYG2PKCh6rizy7i4mGhoKvOE/rIpt+ DWCvJ1JYFCTgUm1J0TVzUsBo4FItO93q+qDcIB8Ij2Up570ROMOt6RWzVf+Z+GbpdH44 J7gU+amJew3H7pXuR7/gvW8mkZ2HIySzsVlS/osYUt9TxqDwJzlO0F6VEGYci9muoB14 NyBKeFVUxsFbnbai/0ENQXPcp7Ls0s7n6yJ2uJh5Fsfd57maBaIWATYVwh+x5qF8BxlG uoog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@goldelico.com header.s=strato-dkim-0002 header.b=ZndagKNz; 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 cd8si2205956ejb.430.2021.07.14.00.34.23; Wed, 14 Jul 2021 00:34:46 -0700 (PDT) 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; dkim=pass header.i=@goldelico.com header.s=strato-dkim-0002 header.b=ZndagKNz; 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 S238254AbhGNHgH (ORCPT + 99 others); Wed, 14 Jul 2021 03:36:07 -0400 Received: from mo4-p01-ob.smtp.rzone.de ([85.215.255.52]:11483 "EHLO mo4-p01-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238139AbhGNHgG (ORCPT ); Wed, 14 Jul 2021 03:36:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1626247974; s=strato-dkim-0002; d=goldelico.com; h=To:References:Message-Id:Cc:Date:In-Reply-To:From:Subject:Cc:Date: From:Subject:Sender; bh=frxvPn/3DRth+yPvylduwkc8X0PJDf65B+98vS/70Xg=; b=ZndagKNz7g4Gi0NcO/UrgxtqKefxPP9S8RAAUKLfpUQ1qDIIpQI8szpFftUGPjCDsp Pr9EYfECFXE/XRgvIRFMewg1dBoWCNffoCGqD/6hq3snA4wPEGWZjZ8+uz5pkQS79ewN dwWPCj1rTGBPozSlBihN1My9VTtNobvjMJpP2z30ZgNLXDlcoaiXHDNhUhn3t44ghcBG 1OAJl5+kFDFCMBcCT4RYfLrr1VfWgAoVfF8bFEHWi5C7RcV9jg1ShcuuVu3OYHB8VdlO +TkDN4/KQuWTGWQm9ZMeOJjdj3ZoSAKzzJjHk6aj1jbzdWSBXuZrIvEppy6NEGuU3i0B vZww== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMgPgp8VKxflSZ1P34KBj4Qpw9iZeHWElw43tlAA=" X-RZG-CLASS-ID: mo00 Received: from imac.fritz.box by smtp.strato.de (RZmta 47.28.1 DYNA|AUTH) with ESMTPSA id h06665x6E7WszQZ (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Wed, 14 Jul 2021 09:32:54 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.21\)) Subject: Re: [PATCH v2] omap5-board-common: remove not physically existing vdds_1v8_main fixed-regulator From: "H. Nikolaus Schaller" In-Reply-To: Date: Wed, 14 Jul 2021 09:32:52 +0200 Cc: linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, letux-kernel@openphoenux.org, kernel@pyra-handheld.com, devicetree@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: <27948BF2-82E3-4140-A194-F938F3A64863@goldelico.com> References: To: Tony Lindgren , Graeme Gregory , Liam Girdwood , Mark Brown , Nishanth Menon , peter.ujfalusi@gmail.com, =?utf-8?Q?Beno=C3=AEt_Cousson?= , Rob Herring X-Mailer: Apple Mail (2.3445.104.21) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Any comments? > Am 01.07.2021 um 16:00 schrieb H. Nikolaus Schaller = : >=20 > This device tree include file describes a fixed-regulator > connecting smps7_reg output (1.8V) to some 1.8V rail and > consumers (vdds_1v8_main). >=20 > This regulator does not physically exist. >=20 > I assume it was introduced as a wrapper around smps7_reg > to provide a speaking signal name "vdds_1v8_main" as label. >=20 > This fixed-regulator without real function was not an issue > in driver code until >=20 > Commit 98e48cd9283d ("regulator: core: resolve supply for = boot-on/always-on regulators") >=20 > introduced a new check for regulator initialization which > makes Palmas regulator registration fail: >=20 > [ 5.407712] ldo1: supplied by vsys_cobra > [ 5.412748] ldo2: supplied by vsys_cobra > [ 5.417603] palmas-pmic 48070000.i2c:palmas@48:palmas_pmic: failed = to register 48070000.i2c:palmas@48:palmas_pmic regulator >=20 > The reason is that the supply-chain of regulators is too > long and goes from ldo3 through the virtual vdds_1v8_main > regulator and then back to smps7. This adds a cross-dependency > of probing Palmas regulators and the fixed-regulator which > leads to probe deferral by the new check and is no longer > resolved. >=20 > Since we do not control what device tree files including this > one reference (either &vdds_1v8_main or &smps7_reg or both) > we keep both labels for smps7 for compatibility. >=20 > Fixes: 98e48cd9283d ("regulator: core: resolve supply for = boot-on/always-on regulators") > Signed-off-by: H. Nikolaus Schaller > --- > arch/arm/boot/dts/omap5-board-common.dtsi | 9 +-------- > 1 file changed, 1 insertion(+), 8 deletions(-) >=20 > diff --git a/arch/arm/boot/dts/omap5-board-common.dtsi = b/arch/arm/boot/dts/omap5-board-common.dtsi > index d8f13626cfd1..3a8f10231475 100644 > --- a/arch/arm/boot/dts/omap5-board-common.dtsi > +++ b/arch/arm/boot/dts/omap5-board-common.dtsi > @@ -30,14 +30,6 @@ vsys_cobra: fixedregulator-vsys_cobra { > regulator-max-microvolt =3D <5000000>; > }; >=20 > - vdds_1v8_main: fixedregulator-vdds_1v8_main { > - compatible =3D "regulator-fixed"; > - regulator-name =3D "vdds_1v8_main"; > - vin-supply =3D <&smps7_reg>; > - regulator-min-microvolt =3D <1800000>; > - regulator-max-microvolt =3D <1800000>; > - }; > - > vmmcsd_fixed: fixedregulator-mmcsd { > compatible =3D "regulator-fixed"; > regulator-name =3D "vmmcsd_fixed"; > @@ -487,6 +479,7 @@ smps6_reg: smps6 { > regulator-boot-on; > }; >=20 > + vdds_1v8_main: > smps7_reg: smps7 { > /* VDDS_1v8_OMAP over = VDDS_1v8_MAIN */ > regulator-name =3D "smps7"; > --=20 > 2.31.1 >=20