From patchwork Wed Oct 19 08:28:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 5528 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp337655wrs; Wed, 19 Oct 2022 06:49:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4DbA/5D6TLyZqw1XW/aVlbtoBrDpJhmkJh6UkPuB7UqlR9g7GmC3WiPsgCmBybC/CtHA51 X-Received: by 2002:a05:6a00:804:b0:563:264a:f5e5 with SMTP id m4-20020a056a00080400b00563264af5e5mr8806843pfk.62.1666187396184; Wed, 19 Oct 2022 06:49:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666187396; cv=none; d=google.com; s=arc-20160816; b=yQCLW21mvGZ5oxgsVZdYGG+sGaVVJV/7Q9CM2QucE/pWjMVb1cnibrEdOFmZKTX4xl ac81Hxhf4tifOkCaV/mjiCNTZJdSQ2JWFPztP4q4GbUWYJsHXzmILzzaiTisZOqulEH9 lCKZm6oLuFMRrypKE2ouhuJrFrkJjeLlZzWUKrHWGsqMFX8q4XdpeMw88BDt7eSXCkd8 MLOwPLFzf+CjXRY1iLGgRNVGzZxzDzF4+yFzfYwn+GpoypZly/DEV+0Jhv7Ho7Ytg7A5 rYeYhSSK0z3jIa+vi0IGQ2n1/YPhkOy94EIVWS0WZ+vwhMzwXtPzmTjQXyXioWlgjbtq HEtQ== 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=0EKhw3Kb3yx5lkpaShWvlv3OqGdcYTcW50js7mrNnms=; b=EIrm24XE5ECAOH1aQ16Zh+h7jDy+HxM4Vg3gks/5IfoIYy3pEZuRBpENuJSA6HRSt+ i7LlEzqvmtSKKcomNGeZjF2v0PUJsNV/wnxLYir8TSREBitbK32UUHV6whRM5jwL3CSe C/cnhK5pJTi+67/eQiuO+pWwhpkHKxK7JG8PV+JszgSPG/pIpW3859KYvdAWT11nEvL9 x5UklW3kuuUQL6VDiJVUaPDDZJjkrrn6FD6syKSOXnZsF0R0QawhMC21xfza5nOGDE++ JqfGvZcNJMbPVKTj8CN8JJvrU/7OnozPIlI51bHI2oUG1XO1TjFCP5w8M9TBZuLXPIo2 bATA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=V3oVgBI3; 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 17-20020a630f51000000b00450200a1087si17202476pgp.61.2022.10.19.06.49.41; Wed, 19 Oct 2022 06:49:56 -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=V3oVgBI3; 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 S233646AbiJSNsn (ORCPT + 99 others); Wed, 19 Oct 2022 09:48:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233486AbiJSNrQ (ORCPT ); Wed, 19 Oct 2022 09:47:16 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03153895D6; Wed, 19 Oct 2022 06:32:28 -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 ams.source.kernel.org (Postfix) with ESMTPS id ACAC2B8241F; Wed, 19 Oct 2022 08:57:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 218C6C433D6; Wed, 19 Oct 2022 08:57:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666169847; bh=bYETwzBYvYBK+ZkJLVh9pj7tY31tMnUd7N/uOtigN4c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=V3oVgBI3Ic0y9JZDTtu7fQG9zbjbOPyMSMdHckY0WMSsAnk4wVdIzgUJaowpkViX8 upc3I56yd2Zjn8FPYPipZPHO929bhs4+i1B6/gjcxKNae4ipYuxlzU6JZhblu0HThP iKfyrtO4Qc568NepeBvvkWolXInwE7WQcvzST4t0= 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 431/862] arm64: dts: qcom: sa8295p-adp: disallow regulator mode switches Date: Wed, 19 Oct 2022 10:28:38 +0200 Message-Id: <20221019083309.012193920@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?1747124115466494299?= X-GMAIL-MSGID: =?utf-8?q?1747124115466494299?= From: Johan Hovold [ Upstream commit 2a6164cef63cae77edbd9deef844b1774886fcb7 ] Do not allow the RPMh regulators to switch to low-power mode with an exception for the UFS regulators (l3c, l6c, l10c and l17c) 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: 519183af39b2 ("arm64: dts: qcom: add SA8540P and ADP") 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-4-johan+linaro@kernel.org Signed-off-by: Sasha Levin --- arch/arm64/boot/dts/qcom/sa8295p-adp.dts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sa8295p-adp.dts b/arch/arm64/boot/dts/qcom/sa8295p-adp.dts index 9398f0349944..ca5f5ad32ce5 100644 --- a/arch/arm64/boot/dts/qcom/sa8295p-adp.dts +++ b/arch/arm64/boot/dts/qcom/sa8295p-adp.dts @@ -35,7 +35,6 @@ regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1208000>; regulator-initial-mode = ; - regulator-allow-set-load; }; vreg_l5a: ldo5 { @@ -43,7 +42,6 @@ regulator-min-microvolt = <912000>; regulator-max-microvolt = <912000>; regulator-initial-mode = ; - regulator-allow-set-load; }; vreg_l7a: ldo7 { @@ -51,7 +49,6 @@ regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-initial-mode = ; - regulator-allow-set-load; }; vreg_l13a: ldo13 { @@ -59,7 +56,6 @@ regulator-min-microvolt = <3072000>; regulator-max-microvolt = <3072000>; regulator-initial-mode = ; - regulator-allow-set-load; }; }; @@ -72,7 +68,6 @@ regulator-min-microvolt = <912000>; regulator-max-microvolt = <912000>; regulator-initial-mode = ; - regulator-allow-set-load; }; vreg_l2c: ldo2 { @@ -80,7 +75,6 @@ regulator-min-microvolt = <3072000>; regulator-max-microvolt = <3072000>; regulator-initial-mode = ; - regulator-allow-set-load; }; vreg_l3c: ldo3 { @@ -96,7 +90,6 @@ regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1208000>; regulator-initial-mode = ; - regulator-allow-set-load; }; vreg_l6c: ldo6 { @@ -112,7 +105,6 @@ regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-initial-mode = ; - regulator-allow-set-load; }; vreg_l10c: ldo10 { @@ -141,7 +133,6 @@ regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>; regulator-initial-mode = ; - regulator-allow-set-load; }; vreg_l7g: ldo7 { @@ -149,7 +140,6 @@ regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-initial-mode = ; - regulator-allow-set-load; }; vreg_l8g: ldo8 { @@ -157,7 +147,6 @@ regulator-min-microvolt = <880000>; regulator-max-microvolt = <880000>; regulator-initial-mode = ; - regulator-allow-set-load; }; }; };