Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3149198lqp; Tue, 26 Mar 2024 00:16:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVeFIsYtPNP0MVY1P2JgsrOIjAd3NLu3zei39x6ntkY5VLsCFzI7dyF1LtPP3dmEi1nv+iLbWXcJw46758yJuXUBIMFqV55/jDsKBuetg== X-Google-Smtp-Source: AGHT+IEBIe7PE0a5bvepS1JOYADn+PhNTjP78LgcJ1LYfj/ys39wEMBQNSYuZ9JRNv+E1di2vi57 X-Received: by 2002:a05:6102:1143:b0:476:db4a:817e with SMTP id j3-20020a056102114300b00476db4a817emr224516vsg.20.1711437377493; Tue, 26 Mar 2024 00:16:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711437377; cv=pass; d=google.com; s=arc-20160816; b=l7pqOBoLf9f29M3vARVWrQoFTQGnb5lRKK1KwnAjO12K9cZaQdNCV/nuWy+2oOXxAl EsLU4huo2nCZ09wB2s5RX6n7evHLtZIzDN+X4Ie7I1knoKx4F2ss24KINYvxLcmmeuka hZGLPaAQV+43qiiUswMu20GsgbxjmUmhqli6KBlAS+Bk9OOEXeIrxdIPerYGKrkKBZJ2 P/IrrpNzn7PoFTQtdSl0yRvZS6KxuT3qXLIJgYQnJlFeYACodhKaSr96w56ZgOhBACZO DxeUas+UV2WzlHKYR/3sFKjgsTO9ocewtrLs9afTcD+yoMFeLYUhp0OL6W3R6X8obM6S Vozg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=vdU0x8EVizhUnTma4f+vJ2j3gFXmXabvI6O8Y/YBhSs=; fh=IBSUmDpfs8XdCgZ278Kbfz3iJMoQ9CUD3zfmm2l9B4c=; b=wOGyzVeo9B1l9i1zMI1YCLqGZowOViofv3svTtAJxzyp5hfE2XbomKluSKfYv4bMiZ cj4AwzDUo5j7sBY/a2mV2rhjUgucAayb7V2TMQnyEplgEvVgeSehA9djkKJPLSgY5ZlN rIL/umq+ajL3w5p2xfiMTt6tQGdc6IPGuECJD19sfyvEeqdUsvFNrEeTaW58/m4ho/xr WfbnIL+yN9GFrUnukSsao/zHvfKOaYDHFd25VFVWPqtSkFcEDJKjwBLCmd4b0Hz5Mmv8 sZXK3LxC1HTAlGcUQTEd1y5QQH1bn+F/xTjUgPEgyVtR9/t6CBeEVgSCcG3CMvFNtU4J AqUg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=vIMWFDwh; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-118448-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118448-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h25-20020a37de19000000b00789eb878549si6835279qkj.777.2024.03.26.00.16.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 00:16:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-118448-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=vIMWFDwh; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-118448-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118448-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 24BD21C2921D for ; Tue, 26 Mar 2024 07:16:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 36C4313049C; Tue, 26 Mar 2024 07:16:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="vIMWFDwh" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 54DDC1272BB; Tue, 26 Mar 2024 07:16:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711437370; cv=none; b=el+gHC39rZ05ZKFW+TlExneS+vTiZMdAoCA9I/vC3xcrodiXWWDNXRjDChPesB+glwwL7ubVtLOZnSUVO5tUFzG1kFGKB0DEmpE19dWalYVR3ZIQysash1dKwEPD5ytO9/u8viSnDek6ws3KarGTE/NfCKgoAe1Lmopl4FDlVdg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711437370; c=relaxed/simple; bh=zwqUSfI04UE8e5qP1oXh410r6hlhmfLlE5LjHLpMUbE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=nWTle9+obwFLWb5gFs4DrFuCIPZYbxC4HUVnCBoK3yRMrP5WrFG0zCu9gKXw5FOp0trLtcbXNjT9aSk760TIwyYDqWFlIYAebvg5FQe5Y0MUUUSQnAUx9gABKibG9ItCG2rZ18Q6uwNNUiX6nJ7B1o8MxbFkD6V5lFO+CKgjbYA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=vIMWFDwh; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DB6FEC433C7; Tue, 26 Mar 2024 07:16:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711437369; bh=zwqUSfI04UE8e5qP1oXh410r6hlhmfLlE5LjHLpMUbE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=vIMWFDwhVPa+AymD1PUhQa0EGJOt0Y28K72VuYZk6N35biR5xUlqug8ViKFoPU6j7 UyHo2nGkr/hkrI/yuMNiRC9QIpoa+77oeoDNHYhx4l1+1OJozc6BODvfTZ1Yp+mbq0 FG34nIuhSMCbv3GKygo7Uw8YfNobAFIwnX/NeYMFc1PiM6QOYps8pYrH6+lRb5psoS alL/8h3NEcKV7QGxFTB4zzgj0R0VYSmeGqgjvRvthlm5TY90tQvVl68zGfmOsYCOQ8 7BCZx2dGI1HUCGFPSWBlUyy2fQ448N+eKEB8K1sZUtDyvB7ZK9nMNcThX0NmiDbYAP JQUyd3S1uHVKA== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1rp12e-000000003rK-3eXh; Tue, 26 Mar 2024 08:16:16 +0100 Date: Tue, 26 Mar 2024 08:16:16 +0100 From: Johan Hovold To: Mark Brown Cc: Johan Hovold , Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Liam Girdwood , Dmitry Baryshkov , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] clk: qcom: gdsc: treat optional supplies as optional Message-ID: References: <20240325081957.10946-1-johan+linaro@kernel.org> <9b2a7e9f-dbb2-4acb-91a7-fcc64d5cfabd@sirena.org.uk> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="AptyjpU+c6gakW3J" Content-Disposition: inline In-Reply-To: <9b2a7e9f-dbb2-4acb-91a7-fcc64d5cfabd@sirena.org.uk> --AptyjpU+c6gakW3J Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 25, 2024 at 02:01:16PM +0000, Mark Brown wrote: > On Mon, Mar 25, 2024 at 09:19:57AM +0100, Johan Hovold wrote: > > Since commit deebc79b28d6 ("clk: qcom: gpucc-sc8280xp: Add external > > supply for GX gdsc") the GDSC supply must be treated as optional to > > avoid warnings like: > >=20 > > gpu_cc-sc8280xp 3d90000.clock-controller: supply vdd-gfx not found, us= ing dummy regulator > >=20 > > on SC8280XP. >=20 > Can this device actually run with the supply physically disconnected? The gpucc-sc8280xp driver is used for both sc8280xp and a couple of derivative platforms. AFAIU only the latter use this supply, but the driver unfortunately currently cannot tell which platform it runs on and requests the vdd-gfx unconditionally. An alternative would have been to add new compatible strings for the derivate platforms and only request the regulator for those as I mentioned here: https://lore.kernel.org/all/ZgFGCGgbY-4Xd_2k@hovoldconsulting.com/ Johan --AptyjpU+c6gakW3J Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQQHbPq+cpGvN/peuzMLxc3C7H1lCAUCZgJ2PAAKCRALxc3C7H1l COOZAQCADSO0a33chhR+oOiBI4673E6MYzdBUKplSq2EznJXGgEAnKuJVq1IoKvU 7jBOzeZ9Jr5Ks3R5/kkSKD0ziDDbJQ4= =DfH8 -----END PGP SIGNATURE----- --AptyjpU+c6gakW3J--