Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3150770lqp; Tue, 26 Mar 2024 00:20:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWpGvOdDdiTrvwg2HFsPU71WQqblE/oaEhchdmus08b/XbJdtQglmvBAuj6UuVLsq/Hw1l4r8HWBbF8Myku7i3B4K+l2qiOVJpuYQB2/A== X-Google-Smtp-Source: AGHT+IEB5iSLQZBlrRl8KXR0HGgCvQbcaphGX4i9whGHFFem002jXkjqKJYmxkHVGE7WBY5BkgFT X-Received: by 2002:a05:620a:5aca:b0:78a:3eb8:42f9 with SMTP id xb10-20020a05620a5aca00b0078a3eb842f9mr2253773qkn.10.1711437643134; Tue, 26 Mar 2024 00:20:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711437643; cv=pass; d=google.com; s=arc-20160816; b=IlfiDaVcqZMD3Y+LWd9RCbJHHfxSZlUbrVS7SCd4SCra5pAG0SkcqQW1RPZlIGoRpj KO0EX+kNm/tS08sYC3qofvL7V7BUqLP0Fo/yeyiWYxU4zmy7fxWwjNzsdHdGNi/s/FsC cN+UmHpptiaXm0z2GTrOrMz8fCyB2i7ZH/b+frkv0DZQdSqgas1awopnua64xBZZnso6 PXZdCgno2dHTc0E0kh5QW2qGnAWGXpMIZWOzDBvEB0cptQgqR//QfurPKkLvmQgp3CJw 3qxm4UbeKgtgzpEuRnlKJHKyxp/PVwVzEHFqQg1/IXoFmSNLaWAj3RZcCyi+Tvs4Gg/c FpYg== 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=IMxHDl+Pxk7wgDsAyTwJSJ90T/+CNm0dPcamoQrBG6k=; fh=NnCCg0jjI2IXGAa8MpqJMk3tD8ShTTq7MskmrqsmuDg=; b=aX72SsRUdIVzRKQ9nL33r1yJw9PXZfYDBWgXW5svuwpiC9N1+pWWF5YtKMZiEdjNkH tiwdVC3ZuKPwUz6GhfBzazoZbNACNlr75GtaL2c3bl/iEzeIliTROomD/+00S2hrwlyn 49M5i4t42ajr/BbhezXQldSU55QqRGNfDIxYkxqN15l4qk9Gj4NDKQDtnPwDlwCTNkWV tu1tVsLK3aDvrJ72Dm+MdKS3UpDY56DfUjFL6NUMp7EIb9YtzznJVPTNGeLG6hQByvZr TtlcIJtfXbovT28xE4wyZtmaNy1FbJFkVjc+U1cfGkWrR1IR+rlJAOjF25l0dHkQir2P NzFw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=twIZF4GI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-118452-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118452-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 u14-20020a05620a454e00b007873204bc3esi7480652qkp.645.2024.03.26.00.20.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 00:20:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-118452-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=twIZF4GI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-118452-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118452-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 CBFD01C2B39A for ; Tue, 26 Mar 2024 07:20:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 853EA130A66; Tue, 26 Mar 2024 07:20:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="twIZF4GI" 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 A8C5F12AAE6; Tue, 26 Mar 2024 07:20:36 +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=1711437636; cv=none; b=BBUS3roB5W6eL4yogbU6ViNWuYRUZdODa5UgGl9RvRsCR2beCzb2cwu5acQTkI+4FrC6tLOLvI7ro3THRPMo/TAzcyVvIW49QgwiNp0O4uXy9h7jPQtCsVIFpbH8VHxGdqqgKMezZadg6d1m0QdmvMuY6McE04Hc+EFgtXBaVjE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711437636; c=relaxed/simple; bh=uoegLIh5X4sgw1rU5EW0C+2z4l/NiMQ0WtwqQt0Gm34=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=dcMMRTyXO3zgbI0Et6Hdt9wtTjVwGnfURT0M0H3Tk66HNLtw3rNKDNzWvrtWG1QtThiDrgJK601LIpqptSVPcfOJJyj65ry+5K0OATCjoAQMnG/CTbdI76Gq6W6EoUxX/f1AFaThNKGWSjSNlHsPYMLSMEGzKhHtn+uUnohUeJQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=twIZF4GI; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 73C11C433F1; Tue, 26 Mar 2024 07:20:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711437636; bh=uoegLIh5X4sgw1rU5EW0C+2z4l/NiMQ0WtwqQt0Gm34=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=twIZF4GI+sIazGTb9Rnt9qxoYa58vGbFUQFQQvUzCKwRFocUlwVWE7EopZ1kCamLu IU+SYNuNH6C/haJtSOl23MgskmUtrp9DdsC88mgYQND4mWx0LQP0dzS43O+/ZC48Kt OCMtit2Qr2upOSO9sChvl89gL8DdGGdto19QCkkr75XB4qdvbA8/RmGBN/CgvcE+yP 4PF62F0HGowuiG9AqDa4BoUwogutWQnHNcMn5zob1pMjOrHeodzovjsv6PkD4jFJlC eiARKYE/qNI9sFmeukAexJB7j7sk7VWfdlwc6cuSQ96T9nxT+l7sFXgPVvDrIv0W1f UuR+wZUM0kWdg== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1rp16x-000000005dX-2s5V; Tue, 26 Mar 2024 08:20:43 +0100 Date: Tue, 26 Mar 2024 08:20:43 +0100 From: Johan Hovold To: Konrad Dybcio Cc: Dmitry Baryshkov , Mark Brown , Johan Hovold , Bjorn Andersson , Michael Turquette , Stephen Boyd , Liam Girdwood , 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: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Mon, Mar 25, 2024 at 08:21:24PM +0100, Konrad Dybcio wrote: > On 25.03.2024 3:10 PM, Dmitry Baryshkov wrote: > > On Mon, 25 Mar 2024 at 16:01, 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: > >>> > >>> gpu_cc-sc8280xp 3d90000.clock-controller: supply vdd-gfx not found, using dummy regulator > >>> > >>> on SC8280XP. > >> > >> Can this device actually run with the supply physically disconnected? > > > > On SC8280XP this is supplied via power-domain instead of the supply. > > I think Dmitry is asking about this bit: AFAICT, Dmitry did not ask anything. > if (ret != -ENODEV) > return ret; > > which is basically repeating the difference that _optional makes Not sure what you meant by this either. This is how the regulator subsystem works. Johan