Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3758885pxt; Tue, 10 Aug 2021 10:38:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOoq41GyqRzCURcRv4ybw7A0dqZAAnrf/7K1WHXYCGt0mC3zE5TVyeJA/HHqKvh80Pj2aW X-Received: by 2002:a17:906:b351:: with SMTP id cd17mr29586338ejb.36.1628617121707; Tue, 10 Aug 2021 10:38:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628617121; cv=none; d=google.com; s=arc-20160816; b=smefvUkzBd0Nl/7Wq5jM8nwVglcmdHcJc8bW+kG2O0aaVUS4RLWOeKq7T9nGllb9/V 5H9WQvFGS2hZJpgsK7T4sdIM/SGKXK00OoamrMzqzb9tO9cFx+TbWoWakx1BQARfrSnR uZzC/FF3+XeT7cd01niszm0Q2HZTVeKVoORmtKui57/hycpleZsuWWuLoMYN7OZAFhD2 DA3IUoVOvILRZDGWM6g3y/ENlNchCEqgZxmTN4qHFLDgMfxtEJ2etHwCBd2uWkhz86uj b7MQJ4Uex3H0Eh8VPZiHzKQFKq2KP8dzvZOOm8KcKz/ztnBQ2AUOhtTW4FaS34PGjmO7 xk/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=NkwKwzb+69WKFGLPxDRgFwL+R6bT2vGp0H1IknxlrBQ=; b=03hG4lLchszdPWtpv/uVcahVoBFv+Pz2/o+Pp60i2J8BMQyELi9mFmrgQlzBgFBrj4 XdZpLM4dbWVuNp5hZ68nA1KKL6/AJnR3eQoCwBd44tDl4oVtar+rGoFe+2rd4r9XYcUJ /f3ZeqqcbQXxkBwem/M4W0q4pdqN2M1eXAyD2+yvAELhR4oZIaNlUzmSfLQvceh+7CtJ Aq87jL0R5twS++W+CWdGmJt5EaXulHuuybYkECJgu6DV5cDvX0Na9PmtE0E7FwNp2Gog cvcpxN57VmYToipfy0bkbY1oH1LjmdQYPV0NehnVoxpPjGGxJelxDqnd7ue9IMuLdadT wsDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jE9SV6F5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y19si10111971edv.6.2021.08.10.10.38.16; Tue, 10 Aug 2021 10:38:41 -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=@linuxfoundation.org header.s=korg header.b=jE9SV6F5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233153AbhHJRft (ORCPT + 99 others); Tue, 10 Aug 2021 13:35:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:39322 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230397AbhHJReh (ORCPT ); Tue, 10 Aug 2021 13:34:37 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4E0F160F94; Tue, 10 Aug 2021 17:34:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1628616854; bh=STCnNq7jPMiGyCe9y4kyJgJihnvUsfArWd8j5F1UWfI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jE9SV6F5qiXYzx/HAHdcFjXqvuVs42ebm+kCGFMx6desZ3CPrUIz61VEN353+9Rpu tMdH73SMt2UaefY4nVX/X15lZ9FGWv3UnDMqdeCrz2V0MZPc5WhcV0HuUK29ObtXZd vkf8ZxaLtn96ioHb7XEikNjEF6ditcePpZl9cf/g= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "H. Nikolaus Schaller" , Tony Lindgren , Sasha Levin Subject: [PATCH 5.4 14/85] omap5-board-common: remove not physically existing vdds_1v8_main fixed-regulator Date: Tue, 10 Aug 2021 19:29:47 +0200 Message-Id: <20210810172948.689177141@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210810172948.192298392@linuxfoundation.org> References: <20210810172948.192298392@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: H. Nikolaus Schaller [ Upstream commit c68ef4ad180e09805fa46965d15e1dfadf09ffa5 ] 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). This regulator does not physically exist. I assume it was introduced as a wrapper around smps7_reg to provide a speaking signal name "vdds_1v8_main" as label. This fixed-regulator without real function was not an issue in driver code until Commit 98e48cd9283d ("regulator: core: resolve supply for boot-on/always-on regulators") introduced a new check for regulator initialization which makes Palmas regulator registration fail: [ 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 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. 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. Fixes: 98e48cd9283d ("regulator: core: resolve supply for boot-on/always-on regulators") Signed-off-by: H. Nikolaus Schaller Signed-off-by: Tony Lindgren Signed-off-by: Sasha Levin --- arch/arm/boot/dts/omap5-board-common.dtsi | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/arch/arm/boot/dts/omap5-board-common.dtsi b/arch/arm/boot/dts/omap5-board-common.dtsi index 68ac04641bdb..c7bf68c90ea8 100644 --- a/arch/arm/boot/dts/omap5-board-common.dtsi +++ b/arch/arm/boot/dts/omap5-board-common.dtsi @@ -30,14 +30,6 @@ regulator-max-microvolt = <5000000>; }; - vdds_1v8_main: fixedregulator-vdds_1v8_main { - compatible = "regulator-fixed"; - regulator-name = "vdds_1v8_main"; - vin-supply = <&smps7_reg>; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - }; - vmmcsd_fixed: fixedregulator-mmcsd { compatible = "regulator-fixed"; regulator-name = "vmmcsd_fixed"; @@ -487,6 +479,7 @@ regulator-boot-on; }; + vdds_1v8_main: smps7_reg: smps7 { /* VDDS_1v8_OMAP over VDDS_1v8_MAIN */ regulator-name = "smps7"; -- 2.30.2