From patchwork Wed Oct 19 08:28:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 4708 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp213815wrs; Wed, 19 Oct 2022 02:11:09 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5/7IB/hi0T0oZk4qWj5DfmQK19uC2MxHtjLQw1U54vEcOYzedYKlor3Q6B/IAzTj0a11KY X-Received: by 2002:a17:906:6791:b0:78d:4051:969f with SMTP id q17-20020a170906679100b0078d4051969fmr5941834ejp.171.1666170668860; Wed, 19 Oct 2022 02:11:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666170668; cv=none; d=google.com; s=arc-20160816; b=iT7/wtPRTytObsrIskfvDT6r9/L3tv+VmVnYGdJLWBKEVSJt1wzmj/s9mGOy6n9R3b jOdLU1xjVcNhqUC6wIVgp8RlBShB1bPouaam4ELUgV3CBnT8BFlEACk+WzDWWCHrjBl8 JpsRvbxg4nDdEV+X3cT1RA2xCiz1aqD9QiLl8KkB3xYaL4b7RPnSLO3uRDxFTciwPzU7 +JhLvocjepMRmAl4HMoeQLh09VoaN6MX9QKu4v8tenYoiR/pnx45cWaby4Ay/XZZwSXY wPhX4HF22FLBc9hpUN7GmQdrLmX8sohvhhkqo2DiUbYLH3HY4DJjdZYxKUsKyvdZLPYd 306A== 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=OyVUl6aIDu0TxLixFT5aVbs2IOvMixynq9fJ0P5Nms0=; b=rn2IR36OvBIhIJMQZb5MloxNEy3ybAEcvdBFRiN0lQr0B68P8uh6zXYk9faW6UQrw+ 0vzl0w0LO8HPkRlTbcUI9o+Ryvb4CU5673h2emENeGy+Y6VZCK+azem4JGfl/VaZV4nW vWZWWOCULEZoSlKmjnw4yQeKMrnYPNZzUOe381UoVzLCAstC78H9R84GVqB6KOe+PKQ9 jaqSeWQh6oaH+oWp3Z/2VoW633PlTU7f//G0xdCK3/bVGfHqOEooTwTpbEkT/wJgAOW9 QXeJ27eOdICrKpcckfnx3lJ3hd+P7mP8H57KVY6KjU+O3x4QPV+FAwBU33mWZdfN4rIa iKug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=peZXepM0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dt18-20020a170907729200b0078e19037657si13502211ejc.803.2022.10.19.02.10.42; Wed, 19 Oct 2022 02:11:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=peZXepM0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S232533AbiJSJG6 (ORCPT + 99 others); Wed, 19 Oct 2022 05:06:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232677AbiJSJEw (ORCPT ); Wed, 19 Oct 2022 05:04:52 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB166B1BA5; Wed, 19 Oct 2022 01:58:33 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CBB726187C; Wed, 19 Oct 2022 08:57:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E12BAC433D7; Wed, 19 Oct 2022 08:57:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666169842; bh=FMAZfIb4uv/rO5UtN9FlRGMqA84nATFrimSYhJ6tUdI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=peZXepM0WCigoEmPpTMMn/8ot3TrQlKVKnHnmrnExOFnVgpbpREQP0wCBCiD6XiPY Ko+Wm5RRfXG3QvGfEl0XzsOAXQhqOU6NLQp7bTKCNEynIs59EXZNl3WNTsRvouIwuv 8BC8TjcpPufisn9DFUsw2sSWCO1HqGkIQFQit0Mg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Johan Hovold , Manivannan Sadhasivam , Bjorn Andersson , Sasha Levin Subject: [PATCH 6.0 429/862] arm64: dts: qcom: sc8280xp-crd: disallow regulator mode switches Date: Wed, 19 Oct 2022 10:28:36 +0200 Message-Id: <20221019083308.916196759@linuxfoundation.org> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221019083249.951566199@linuxfoundation.org> References: <20221019083249.951566199@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747106575130703084?= X-GMAIL-MSGID: =?utf-8?q?1747106575130703084?= From: Johan Hovold [ Upstream commit 412737a60c846a6adb7f7571905c200da036815e ] Do not allow the RPMh regulators to switch to low-power mode with an exception for the UFS regulators (l7c and l3d) as UFS supports an idle mode. This specifically avoids having regulators be but in low-power mode when only some consumers specify loads while the actual total load really warrants high-power mode. Fixes: ccd3517faf18 ("arm64: dts: qcom: sc8280xp: Add reference device") Link: https://lore.kernel.org/all/YtkrDcjTGhpaU1e0@hovoldconsulting.com Signed-off-by: Johan Hovold Reviewed-by: Manivannan Sadhasivam Signed-off-by: Bjorn Andersson Link: https://lore.kernel.org/r/20220803121942.30236-2-johan+linaro@kernel.org Signed-off-by: Sasha Levin --- arch/arm64/boot/dts/qcom/sc8280xp-crd.dts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts b/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts index 45058ad0a1c8..6792e88b2c6c 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts +++ b/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts @@ -87,7 +87,6 @@ regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>; regulator-initial-mode = ; - regulator-allow-set-load; regulator-boot-on; regulator-always-on; }; @@ -97,7 +96,6 @@ regulator-min-microvolt = <912000>; regulator-max-microvolt = <912000>; regulator-initial-mode = ; - regulator-allow-set-load; }; vreg_l6b: ldo6 { @@ -105,7 +103,6 @@ regulator-min-microvolt = <880000>; regulator-max-microvolt = <880000>; regulator-initial-mode = ; - regulator-allow-set-load; regulator-boot-on; }; }; @@ -119,7 +116,6 @@ regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-initial-mode = ; - regulator-allow-set-load; }; vreg_l7c: ldo7 { @@ -135,7 +131,6 @@ regulator-min-microvolt = <3072000>; regulator-max-microvolt = <3072000>; regulator-initial-mode = ; - regulator-allow-set-load; }; }; @@ -158,7 +153,6 @@ regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>; regulator-initial-mode = ; - regulator-allow-set-load; }; vreg_l6d: ldo6 { @@ -166,7 +160,6 @@ regulator-min-microvolt = <880000>; regulator-max-microvolt = <880000>; regulator-initial-mode = ; - regulator-allow-set-load; }; vreg_l7d: ldo7 { @@ -174,7 +167,6 @@ regulator-min-microvolt = <3072000>; regulator-max-microvolt = <3072000>; regulator-initial-mode = ; - regulator-allow-set-load; }; vreg_l9d: ldo9 { @@ -182,7 +174,6 @@ regulator-min-microvolt = <912000>; regulator-max-microvolt = <912000>; regulator-initial-mode = ; - regulator-allow-set-load; }; }; };