Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp3683999rwi; Wed, 2 Nov 2022 01:46:09 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5hpAgaA65HM3Cf07j2c2fBYJdoF9MM+JGjkZy3YZtF6HJ1CeTIPAetP6bYBRBa1EkF/DtH X-Received: by 2002:a17:902:f54f:b0:186:c3af:b558 with SMTP id h15-20020a170902f54f00b00186c3afb558mr23186650plf.143.1667378769452; Wed, 02 Nov 2022 01:46:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667378769; cv=none; d=google.com; s=arc-20160816; b=jaJ6KR4YshYFwMBfjgUAVvDuqWnWdT5nlt6MkRWprZBaplx4IddsM8N+WHxkO2Y1mM c+Mq2ULWY3YbncGbGEuzpUB0OqPJEULNnukhSb6aSpR9xmxOW6mfXXp7B4KV6+j1tcfA HMsAdKIe2+6yXByHPbg+10SKAmRv2Hw3r8HZg9SU8E1dsPaIKZLsOtgMduotk3uf35F2 fTrfwxSoop/eUKGsiq2Tgvk2p358zjfE4+x/3EMnsgsM7fgMGntmshWkmmOJrMGn2S/O XBzX9CYqbWqfic99+ydrtKUDQOJPosrNPb8AH50/SvF84dxeMlR638e4/d+cHuAq1mfQ P74w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=THQdL3u0yM6um5YdH1SEDmhIXhZ2/RuUxU9eBHdU0Ho=; b=xi9aeIEpRfQAPHJE3gVBNaqBB/D6L5dlDKr16jj8ixPiYMe680jZ3pP9wEx/gCrs7I XibNLwqU2e1fupn00W8khkHOdGOhWXFW9663HZatrfRqzf+NCILHVl0E31vqKG1LZJBs yH1agQDCjkPwWSnNf9aq6t8apmlW17z9jDZE7VmGhrYTPJuqIrd7uUH1aCptgJn4Zy/2 7Ti671wUxMNFav83aLUGqWPTLgVybouDgjFDndvT1h6PK/B1nO1qXmN0NXoidCQZikHM dmwVtW8nOyJ23KTBh5Teka/2gjs0vMjrleBTUnfK+QyqiDr9AXfJT4RislFEww7O9Nc5 nlPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hIuPC2Z6; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s1-20020a170903200100b00172cb948c68si13053251pla.227.2022.11.02.01.45.56; Wed, 02 Nov 2022 01:46:09 -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=@kernel.org header.s=k20201202 header.b=hIuPC2Z6; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229676AbiKBINk (ORCPT + 96 others); Wed, 2 Nov 2022 04:13:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229695AbiKBINf (ORCPT ); Wed, 2 Nov 2022 04:13:35 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF5D22704; Wed, 2 Nov 2022 01:13:34 -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 79A8961847; Wed, 2 Nov 2022 08:13:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE4FBC433D6; Wed, 2 Nov 2022 08:13:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667376813; bh=lpAAsFlmTm/LavhinI8aX5Gdc5BT8bM0i9kKwT4V+1w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hIuPC2Z6WOE7ysPjJJVdG8KR0j/MNsk4CrhiMJRXT5ylfRXHUF2Y8fSsX+x8YbWp6 VGE4quuJQRTkn8vYSu2r5xFoKYQ7LuMFnx+ZyPVKLHVBxvT4ptjl8Ytf8M9BX3HrRC gZ6dbe86s2xt7pVAsnbY5nkZ/iPnxgrVg3vgRLm4ZX8cc1XAqbY15QmajrPpcQv5q3 LyGyQb/0vIx9E7v2hwa1vPJco2+9RSF0mhX6+F5MRXN7lkU36LZKzVAVDGc0Jw2mwn 3ZTTlmkr/bkgBUZ+eSlZoz2ze+EpJVTroFda+N/tuCMxVNM11J4UWcGr1EbvBVBthe EXId+ts+RhnqQ== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1oq8s9-0002XH-Ph; Wed, 02 Nov 2022 09:13:17 +0100 Date: Wed, 2 Nov 2022 09:13:17 +0100 From: Johan Hovold To: Shazad Hussain Cc: Stephen Boyd , andersson@kernel.org, bmasney@redhat.com, Andy Gross , Konrad Dybcio , Michael Turquette , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] clk: qcom: gcc-sc8280xp: add cxo as parent for gcc_ufs_ref_clkref_clk Message-ID: References: <20221030142333.31019-1-quic_shazhuss@quicinc.com> <20221101182402.32CE5C433C1@smtp.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-8.2 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 On Wed, Nov 02, 2022 at 01:28:48PM +0530, Shazad Hussain wrote: > On 11/2/2022 12:46 PM, Johan Hovold wrote: > > On Tue, Nov 01, 2022 at 11:23:59AM -0700, Stephen Boyd wrote: > >> Quoting Shazad Hussain (2022-10-30 07:23:33) > >>> Since 'commit f3aa975e230e ("arm64: dts: qcom: sc8280xp: correct ref > >> > >> So we should have a Fixes tag for this commit? Or really back to the > >> beginning of the driver? > >> > >>> clock for ufs_mem_phy")' we need to explicitly make cxo as parent to > >>> gcc_ufs_ref_clkref_clk to have an independent vote from ufs_mem_phy. > > > > The commit message is slightly misleading as this affects the other UFS > > PHY as well. > > > > If CX is indeed a parent of this clock then the issue has been there > > since the clock driver was added. (And otherwise, the PHY binding may > > need to be amended instead.) > CX is not the actual parent of this clk. GCC_UFS_REF_CLKREF_CLK is an > external clk to the device, which needs to be voted. If we use the > GCC_UFS_REF_CLKREF_CLK as ref clk, we don't have explicit vote for CX > from ufs_mem_phy. > > If no client votes for CX,(very unlikely) then it's won't be ON for > ufs_mem_phy as well right ! So to maintain the voting to CX, we make > this as parent to ref clk. Right, but if the PHYs really requires CX and it is not an ancestor of the refclk then this should be described by the binding (and not be hidden away in the clock driver). Johan