Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4724640imw; Tue, 19 Jul 2022 12:00:16 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tsdU7gVrAz+fW407xtKDztO59c6Su+Bs6SDUxtfSn7Ghe32+I6V9Oy7u7zt3xnCnL95C4o X-Received: by 2002:a05:6402:c0b:b0:43a:25ff:ff08 with SMTP id co11-20020a0564020c0b00b0043a25ffff08mr46340459edb.148.1658257216585; Tue, 19 Jul 2022 12:00:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658257216; cv=none; d=google.com; s=arc-20160816; b=lVZCGri06kz3TxcmEE8LhGiKgxI+wkhjSsUCC+/wCeJ41OrKyJwHGHkhThdwbG4uqU R/6Z4LevlPECiPW9H1mPtERmXNjXm2IJxULMBaoNH1n+w1D4ckXZOWQjlEA+ZSUy8wZs Jqj07B2VniX5D3lpRuBveK1jUEr70cXv5XhAriwcdbpkLkegvMtKeTX5YBqvUQe5yQd6 BVuJLUCjjTtxi6eUCssNYggxMtFvw+F+TspNY2GK6mWyzyWp06jCzaqQLbjMCKw7NEd7 T9Aejp1iJw/IooChTaGNpOHFdC4PsLIhRew7EiQ3uyJi1MDWjelpDT9fZto6SHxDHsZs VMgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Zpo29MvasfiTpO+hCJwTY/XSpk51yka6wjXW4TfwPs8=; b=ryJhPXPAUstMB/lRZWuos3WdEnrymVpDcsZEMNJx6SdhWd4hYbQyBqSZuBDd/xO7Ne 50cmU2aPtUm2k8CUzaSWQG76ZD7Y0dsvNWP43g2Y+Px9t2Qo3BaY/LT4BChHhQmjYz/s 4ra+iAeNRALbwDGdotobsJlFO74PlTrgYPfVpygrqaaaCcLXBO4LspBA6PjzzfFTmZqj a9dMMmTd5hiX/fVonveiF15TyATtMHHBPne9Lo49IrKUCLC1l3AATcxZLcwwNn9ccOF4 au96vl1MNU/pNx797xd1r1vW5lEFBM0HjsawJazXNMR6DB6RQX+TIvAdwNo1d6dU/snL zRgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bHR7qoOr; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l17-20020a170906795100b0072b54bd4131si22190490ejo.521.2022.07.19.11.59.43; Tue, 19 Jul 2022 12:00:16 -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=@redhat.com header.s=mimecast20190719 header.b=bHR7qoOr; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234271AbiGSSuE (ORCPT + 99 others); Tue, 19 Jul 2022 14:50:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbiGSSuB (ORCPT ); Tue, 19 Jul 2022 14:50:01 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D1830564C4 for ; Tue, 19 Jul 2022 11:50:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1658256599; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Zpo29MvasfiTpO+hCJwTY/XSpk51yka6wjXW4TfwPs8=; b=bHR7qoOrAT2Dcwh8mewcuIZywJqMEioLpPDBBzjtpnOQaHW6WRqlJqUrpQTP/cn6GZWFVW C9j57b+8Cqtc3T6SJKB6YSlCZg6xoccjhZ0xDRp6JF49RGeruhzRXghMQu1ykXjCVNZj7B 263bV1hUvl9SdNf5wz5UjRQfBfhFJIw= Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-607-396V5F10OhGV8zYKt1u6Yw-1; Tue, 19 Jul 2022 14:49:57 -0400 X-MC-Unique: 396V5F10OhGV8zYKt1u6Yw-1 Received: by mail-qt1-f199.google.com with SMTP id fz9-20020a05622a5a8900b0031eef501518so4243604qtb.9 for ; Tue, 19 Jul 2022 11:49:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Zpo29MvasfiTpO+hCJwTY/XSpk51yka6wjXW4TfwPs8=; b=KwCoXvDOYrG7EvmaEe5NzoQy4AuIluB6Oif1FKb+o369TVALgtjSEAHXy5NEjQvZi9 Aopn68PTUbzVnoE0YMhVovg56vAE3yFL/uXv7aAcTKaS0XmrKxC8HwIHBz/rrHJfEbth /5bMHXoCpbCnzFz3Tp24nrNijSxKOqxAVDd3i+0S9PCg9y6bax+eTu7d09Ue8Ro7Ys05 RU+jjFk/dwxTvW3vvIAZ94WytD6VNEyv92IDJDcSBtpJrDmD3lkRii/x8vfsRv03CanW Gb/CgJm2TF28/H9XVbnJ3R3oHstU04eySxaAA6pZ3tdS/kFc1Ac2sCIqjiCheTIHd06q y/Ag== X-Gm-Message-State: AJIora/6kSGwRL3B2162ArOEur6UDR84oIMzFqXOuenkVj6IoXP0BKFv Du4n97vB7N4XGHJEnWrcWor4jfUNv4Wfxt2xYvryeVpXmzZoMay7l45RX3VhyINICp7Dn4p63j6 fmtfpgYb54OMeH1Q3stwdkq8w X-Received: by 2002:a05:622a:1a21:b0:2f1:f29e:40a with SMTP id f33-20020a05622a1a2100b002f1f29e040amr26798502qtb.235.1658256596428; Tue, 19 Jul 2022 11:49:56 -0700 (PDT) X-Received: by 2002:a05:622a:1a21:b0:2f1:f29e:40a with SMTP id f33-20020a05622a1a2100b002f1f29e040amr26798489qtb.235.1658256595987; Tue, 19 Jul 2022 11:49:55 -0700 (PDT) Received: from xps13 (c-98-239-145-235.hsd1.wv.comcast.net. [98.239.145.235]) by smtp.gmail.com with ESMTPSA id ec5-20020a05620a484500b006b59eacba61sm14223524qkb.75.2022.07.19.11.49.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Jul 2022 11:49:55 -0700 (PDT) Date: Tue, 19 Jul 2022 14:49:52 -0400 From: Brian Masney To: Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, agross@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, ahalaney@redhat.com, echanude@redhat.com Subject: Re: [PATCH] clk: qcom: sc8280xp: add parent to gcc_ufs_phy_axi_clk for sa8540p Message-ID: References: <20220623142837.3140680-1-bmasney@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.2.6 (2022-06-05) X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 Sat, Jul 16, 2022 at 09:54:43AM -0500, Bjorn Andersson wrote: > gcc_ufs_ref_clkref_clk isn't the parent of gcc_ufs_phy_axi_clk. > > But I presume that if this works, then you're just enabling the ufs > clkref clock, indirectly. Seems reasonable that you should be specifying > gcc_ufs_ref_clkref_clk as "ref_clk" instead. > > Could you please give that a go? Hey Bjorn, I assume you mean ref_aux on the phy with this patch: --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi @@ -1464,7 +1464,7 @@ ufs_mem_phy: phy@1d87000 { clock-names = "ref", "ref_aux"; clocks = <&rpmhcc RPMH_CXO_CLK>, - <&gcc GCC_UFS_PHY_PHY_AUX_CLK>; + <&gcc GCC_UFS_REF_CLKREF_CLK>; resets = <&ufs_mem_hc 0>; reset-names = "ufsphy"; This works on the sa8540p. I tried changing ref_clk on the ufs host controller from <&rpmhcc RPMH_CXO_CLK> to the new value and the board resets. Brian