Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6823002rwb; Tue, 15 Nov 2022 04:18:23 -0800 (PST) X-Google-Smtp-Source: AA0mqf4F+Kez5UK6nXhH42HjcpTUpgs4RnlKI1goLonrN1aQi2q0b72mZ+nKHAns0VgJmOdIlu5L X-Received: by 2002:a17:907:6ea5:b0:78d:9b8b:93cc with SMTP id sh37-20020a1709076ea500b0078d9b8b93ccmr13972805ejc.529.1668514703282; Tue, 15 Nov 2022 04:18:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668514703; cv=none; d=google.com; s=arc-20160816; b=PXtJAfOuNMflo36zodqkp7GANri8PdByLsNBIQMDAFVOUOveTHtUSlwqoyhCDnNaQx /bOvVo6gUP2zl7JIrd1pjWhkFI88zrKm/TtMmE9QrAam2gz/y0lWffkYWO/q+W55IL98 cHa9VCpJ988U784ZsNqdj6+Rxa3+vx+22HpGS+GfYk2D+SlS6v8+/mZxmMqMXNyp8t2W SwNipOU9xDhhnCjYmfp1KEtFpO0dT1toxLRgwZIoLVF7C6/6qsi8gAE7IiQx/2xh0KNo mwZK5LqNFarbpo779VWWW60DXughYtMolBUJw9p1r99d/ATqIE79fwiOpKfE+qTqsJFl nIjg== 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=I7Q4z0ryjM4sbU9uVrfhnXSbM4O2996Bza/E+QMiLc4=; b=BrNAGhLuyA49uJ41HGVnmcqWEtcbt1ZPuJAV6yyr9OelYEy59Mv3uBLChNe85l369s XTuNsZrZvL5RAa0j8OVfw810gec2J1ySm54QbqNsVRox8IPBUZO3fXlAhf3pJkWwB3Hw Rd9ZuLXP0mZgObYmpBLw01khZI4C5b/7/G8F+nbm0RI3RykGHapXoHA5XWXgA2qatfCC 2E/kE+6vBKRAUnpsK9RFA6s0gX7+p9NlUWj2/FXr1pnxwoXzKVWq1wtrhNCiy9lbGT2k qfjmjGubCuDDaFLiIMfyECkRUBH23B3VOdT73Of/5/t0w4UgfiC/lx6E2ZTqrHtWuK0A 2wWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=X4X2MSR0; 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 e19-20020a056402191300b004571c47b13csi13553078edz.418.2022.11.15.04.17.57; Tue, 15 Nov 2022 04:18:23 -0800 (PST) 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=X4X2MSR0; 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 S237426AbiKOMIr (ORCPT + 89 others); Tue, 15 Nov 2022 07:08:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230269AbiKOMIo (ORCPT ); Tue, 15 Nov 2022 07:08:44 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EA7C19D; Tue, 15 Nov 2022 04:08:43 -0800 (PST) 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 EBA34616F4; Tue, 15 Nov 2022 12:08:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4A03BC433C1; Tue, 15 Nov 2022 12:08:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668514122; bh=36O5ZVGHwpudvTRB6K/ShaxuTdaYXWLBRiw6cKRjPQw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=X4X2MSR0/9alcGjFPpwcz6tiznvVr/oN7cY9afoKsqW+iiKJPfJahQC0Ge0WPq8at a8TNIxpjSLw/+c67G39RfdhcBSdnd7VeTYJET09y3C1HlNjK8Vk6/qu/hgPgFMbKCV MG1ldcnOs5G6/4FyqdRqRFCX1/jaoULEqnDW3374uoTkccIGDYXNQsPej+6c0YKx+W 7cGt9Od2NFrA5j5m9IDMXPucZLRs+utfCkYN+SaE2ZJpJCLxUw1wMkd35um/ddZts1 59EuAtn/vguxDPEiyGhz6dB8o9xsOvRcBMYjyTSJGIkJs5W4FVYiimnHp7Z7zXSkcz GEzKDcbzVBRng== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1ouujb-0000HE-7s; Tue, 15 Nov 2022 13:08:11 +0100 Date: Tue, 15 Nov 2022 13:08:11 +0100 From: Johan Hovold To: Shazad Hussain Cc: andersson@kernel.org, sboyd@kernel.org, bmasney@redhat.com, agross@kernel.org, mturquette@baylibre.com, Konrad Dybcio , Vinod Koul , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] clk: qcom: gcc-sc8280xp: add cxo as parent for three ufs ref clks Message-ID: References: <20221115102217.6381-1-quic_shazhuss@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221115102217.6381-1-quic_shazhuss@quicinc.com> X-Spam-Status: No, score=-7.1 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 Tue, Nov 15, 2022 at 03:52:17PM +0530, Shazad Hussain wrote: > Added parent_data as CXO for three UFS reference clocks named, > gcc_ufs_ref_clkref_clk, gcc_ufs_card_clkref_clk and > gcc_ufs_1_card_clkref_clk. The commit message should explain why this is needed rather than just state what is being done. For example, something along the lines of The three UFS reference clocks gcc_ufs_ref_clkref_clk, gcc_ufs_card_clkref_clk and gcc_ufs_1_card_clkref_clk are all sourced from CXO. Update the clock driver to describe this. should do. > Fixes: d65d005f9a6c ("clk: qcom: add sc8280xp GCC driver") > Link: https://lore.kernel.org/lkml/Y2Tber39cHuOSR%2FW@hovoldconsulting.com/ > Signed-off-by: Shazad Hussain Tested-by: Johan Hovold And with a tweaked commit message you can also add: Reviewed-by: Johan Hovold >--- > Changes since v1: > - Renamed patch subject. Did not include Brian's T-b comment. > - Added parent data for two ufs phy ref clocks. > > v1 of this patch can be found at > https://lore.kernel.org/all/20221030142333.31019-1-quic_shazhuss@quicinc.com/ > > used below patches for verification on next-20221114 > https://lore.kernel.org/lkml/20221104092045.17410-2-johan+linaro@kernel.org/ > https://lore.kernel.org/lkml/20221104092045.17410-3-johan+linaro@kernel.org/ > https://lore.kernel.org/lkml/20221111113732.461881-1-thierry.reding@gmail.com/ > > drivers/clk/qcom/gcc-sc8280xp.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/clk/qcom/gcc-sc8280xp.c b/drivers/clk/qcom/gcc-sc8280xp.c > index a18ed88f3b82..b3198784e1c3 100644 > --- a/drivers/clk/qcom/gcc-sc8280xp.c > +++ b/drivers/clk/qcom/gcc-sc8280xp.c > @@ -5364,6 +5364,8 @@ static struct clk_branch gcc_ufs_1_card_clkref_clk = { > .enable_mask = BIT(0), > .hw.init = &(const struct clk_init_data) { > .name = "gcc_ufs_1_card_clkref_clk", > + .parent_data = &gcc_parent_data_tcxo, > + .num_parents = 1, > .ops = &clk_branch2_ops, > }, > }, > @@ -5432,6 +5434,8 @@ static struct clk_branch gcc_ufs_card_clkref_clk = { > .enable_mask = BIT(0), > .hw.init = &(const struct clk_init_data) { > .name = "gcc_ufs_card_clkref_clk", > + .parent_data = &gcc_parent_data_tcxo, > + .num_parents = 1, > .ops = &clk_branch2_ops, > }, > }, > @@ -5848,6 +5852,8 @@ static struct clk_branch gcc_ufs_ref_clkref_clk = { > .enable_mask = BIT(0), > .hw.init = &(const struct clk_init_data) { > .name = "gcc_ufs_ref_clkref_clk", > + .parent_data = &gcc_parent_data_tcxo, > + .num_parents = 1, > .ops = &clk_branch2_ops, > }, > }, Johan