Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3755832pxt; Tue, 10 Aug 2021 10:34:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYZ84BESJdJCn6iUpKJtX8q5vGuufOhWRe7iJctuAe92Eq+FYqKMYRwgrXXer5z1yj4ouD X-Received: by 2002:a92:d9c2:: with SMTP id n2mr95429ilq.214.1628616848880; Tue, 10 Aug 2021 10:34:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628616848; cv=none; d=google.com; s=arc-20160816; b=rHLk5+t4YLKmv023TLtaQlw339GzpjjXFf/r1XexLl4dQxm5tjuAt3LJ7VEaopKdhx X4mrAy2eRLu9YF/NHKUyYkqJKmbBxO7YmzKwFuu23ZLOZw2eMDjg+EbUvSOhuQHfJMVC vf+SBwtbPuGfjbjViY/VhC+pVpqx9rHaTMYuPfikeUuNdVvwu/wsUR9XCW93SngKx/kX wuwace5WrXqurM8dajNP8rlsF4xt9TVc9PS9h8VwPj/BeXzFm+5PcZUzXbgRNulxx/Oq eqpU4H79NxO14J9Mko/TqSwrn69XCdq7H5lpjpsfSbn9CXH/yxC1oxr/+UUj+E9CbYto 3zkg== 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=bGRzYlxnXW0L38m6i9AfRYO3/UKh28u79eCAVpVnN58=; b=aZkUMAQB3Pm9F5PQiIb7bAsTF3jCWUWosF5FmEXNukp4wDS4c3YedT5Knl5XtmZUH1 YYUeHLH9H6E4LMTP/cXjqNAgJsARDu8woOOTNNn21JEz82KE/Cjf9uchYVlt0WOt/Lv9 WrS/jH+k0e9ZFuwzdidAl6p9ntxWywV8RdxlWSnGT+7JMVByzHpQo0WfKAN2DA1SBLDs 7JhaDdRtrVLonaDHHJ5OIsFFrIxwoRI/6WCJadFCMqT6D8XI7IG5yJa6r4a5ctiVmDrF aILyriITIetI0xo8eK1ReAzfFUo3U+L/v5+gX2xR/2xdDfUnW40s3e9gug56j6ywhRuS Fh0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hY98O2zD; 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 s9si12495432iow.57.2021.08.10.10.33.56; Tue, 10 Aug 2021 10:34:08 -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=hY98O2zD; 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 S231386AbhHJRcy (ORCPT + 99 others); Tue, 10 Aug 2021 13:32:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:33086 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231681AbhHJRcj (ORCPT ); Tue, 10 Aug 2021 13:32:39 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 31C0760F41; Tue, 10 Aug 2021 17:32:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1628616736; bh=ZaeTgSbcblZpw2uBjr5tV/Ys8V2VetTj8OPdiEElmzM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hY98O2zDPHY13KGRUygPNgMVFPIeH0cLnRznSCCHnKJOppoL7Z2hwHoaP4sKEcyQt rj1iCLESQrkYByVCl3zHGJW0IjIi0cq+4Z4/VBkFlDwKp7pu5nOGzlnFEjgt0uFc// CKOdxR3hUkmNLeSaLb7mVE3FDLmZ0zJJMFUzxmA4= 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 4.19 07/54] omap5-board-common: remove not physically existing vdds_1v8_main fixed-regulator Date: Tue, 10 Aug 2021 19:30:01 +0200 Message-Id: <20210810172944.427161703@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210810172944.179901509@linuxfoundation.org> References: <20210810172944.179901509@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 61a06f6add3c..d1cb9ba080b2 100644 --- a/arch/arm/boot/dts/omap5-board-common.dtsi +++ b/arch/arm/boot/dts/omap5-board-common.dtsi @@ -33,14 +33,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"; @@ -490,6 +482,7 @@ regulator-boot-on; }; + vdds_1v8_main: smps7_reg: smps7 { /* VDDS_1v8_OMAP over VDDS_1v8_MAIN */ regulator-name = "smps7"; -- 2.30.2