From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F22B0C433F5 for ; Wed, 22 Dec 2021 12:55:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=lYHDE7kC+TW02XWCeh2jMdbORZbBn9fOyH1OlnPoCqw=; b=zeRGvPwI4LyED0 IyNDpOWt9ZFd0B/Q1TECLuDbeoTkeo2z0t/8XG5UMk/AbDkbD51AhKGEx5ZS1wQwwsll+I995kn3X 8U3aon5yQTps8zmsy4tjDWcpHNmG31AC9v8x1eaZaqU16p7Y9UOzT6IN9+rO/IiiX4DOkiDPe1tyu tpwI9fd+VrpRpF89nNjaGQVmNKGH1dhR81x0jyUA/MGqivtjhGykI3FAIwL4sd/ttNer5ar0l3V9k JteA6vTK2SEjwvIqEfHCBeKxCDE9IHtFanL62LwwIiQhhFLkBf60vV5RlHnoVVhEJxjujgpbbtW6i ekE73Esq9u/BS15P7Yvg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n018O-00AM8e-6v; Wed, 22 Dec 2021 12:54:20 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n018I-00AM6a-Ho; Wed, 22 Dec 2021 12:54:17 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8C5E5D6E; Wed, 22 Dec 2021 04:54:12 -0800 (PST) Received: from [10.57.34.58] (unknown [10.57.34.58]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2B1563F5A1; Wed, 22 Dec 2021 04:54:11 -0800 (PST) Message-ID: Date: Wed, 22 Dec 2021 12:54:06 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Thunderbird/91.4.1 Subject: Re: [PATCH 3/4] soc: rockchip: power-domain: Add regulator support Content-Language: en-GB To: Sascha Hauer , Mark Brown Cc: linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Heiko Stuebner , Michael Riesch , kernel@pengutronix.de References: <20211217130919.3035788-1-s.hauer@pengutronix.de> <20211217130919.3035788-4-s.hauer@pengutronix.de> <20211220094435.GU6003@pengutronix.de> <20211222104036.GY6003@pengutronix.de> From: Robin Murphy In-Reply-To: <20211222104036.GY6003@pengutronix.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211222_045414_730880_E9F7C188 X-CRM114-Status: GOOD ( 17.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 2021-12-22 10:40, Sascha Hauer wrote: > On Mon, Dec 20, 2021 at 12:53:58PM +0000, Mark Brown wrote: >> On Mon, Dec 20, 2021 at 10:44:35AM +0100, Sascha Hauer wrote: >> >>> Well, all true and on one specific board the regulator is indeed not >>> optional. However, on all other power domains that don't need a >>> regulator and all other boards and all other SoCs this driver is used we >>> now get: >> >> This seems unlikely to be board specific, if the chip requires power the >> chip requires power. If there are power domains that don't take >> external supplies then they shouldn't be requesting any regulators and >> should be fixed. >> >>> [ 0.185588] rk-power-domain rk-power-domain.8: supply power not found, using dummy regulator >> >> It seems vanishingly unlikely that the SoC takes a single supply called >> "power" shared by everything in the SoC but that is what the code >> appears to be requesting - the power domains should be requesting the >> supplies they actually use, and as ever the supplies should be named >> such that someone looking at the schematic can hook them up. The >> general recommendation is to use the names used in the datasheet. > > Ok. I'll change the patch in a way that only for the GPU power domain on > rk3568 a supply is requested. That's the one power domain I know that a > regulator is needed. I'm sure there are more, if not on rk3568 then > probably on other SoCs the driver handles. Once we notice that other > domains need a supply we'll have to add the supply name to driver data > for that domain. Certainly RK3399 (and I guess RK3288 too) suffers from the same priority-inversion issue of being unaware that VD_GPU needs power before PD_GPU can be successfully turned on to probe the GPU to claim and enable the regulator (via "mali-supply" for DVFS purposes) that needed to be on in the first place. Currently all the boards are bodging around this with "regulator-always-on" (e.g. commit 06b2818678d9). Thanks, Robin. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel