Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1747228pxm; Thu, 24 Feb 2022 08:37:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJw6z33mGXt809skI6t6lfWLXgp0CG0JKgzZSRGeaq57jl4b7NnvlbHhQZujPmfpTfvdZeQ/ X-Received: by 2002:a17:902:9a96:b0:14f:ecc0:c21a with SMTP id w22-20020a1709029a9600b0014fecc0c21amr3405434plp.78.1645720659576; Thu, 24 Feb 2022 08:37:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645720659; cv=none; d=google.com; s=arc-20160816; b=JB9mcKP6o0CmMYq/O3eklhZGO0RKwTfMpYw8NYKt5hryvzEQtYlKBiaxYUSmkEWJgv F5me5TyEh2d0SWphJGAMGU8NvpiSfYm4r4pMBvq1qTHCh+5GwSSqDLRiPMvLTAcbyyjh AVW5orsZJKib/cDl+nXZItr2vqlkSb7Ooddd5VB/yxRCQolvhhSBjKgya3wHgh6s5Jl2 fIRad3L6/8b2OzbHMr6TgWGaGd+730a++R763cjPZalZaED5I2FCsC0Hf+NaVhxL4EfB CqwZwHhZuKWzIQpwrdXCpWARY4q1MDF4Uf2Y8wwlGOfKGNqZQTZ7nON+RhXlP04h6Cma 3e/Q== 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=VAU+x/FHA6Jlc8xXCTAj1x5xOvKQnNZlbxhMra3k1+0=; b=g5N7WnNL/jKmmIvzGAxQRlkxc8Bev5ReG6EYNjsTSBu5CY5FYM1lxCOz/XeXPulGIb m+6m6aHaAC5p8ian+I3JFEZksgy7QwCCC6bvscXH2fuTzhZirZsymosagCXX2fx/0F9v Z7yNzugO2gcJACI4L7AZWVDoSruIK/9BOVTPMQ1OPrB/29SWIwp9w2NthQauBkiA9U1d l7WiAQuulca29g73ERYFP7e/gMynEGifMGCT8s0SjbQ3xjaRX1m6riXzR0Vh2L8royE7 bWEwGnFByQFqwhczxQcVLDvzwYWTDpNZbQk4PFpHyETka2pLWGV+nVLzo3D/aMlP8T5R 3HvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=UgjMfNue; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id w7si3257869pgj.131.2022.02.24.08.37.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Feb 2022 08:37:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=UgjMfNue; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7533329DD40; Thu, 24 Feb 2022 08:20:54 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236547AbiBXPvF (ORCPT + 99 others); Thu, 24 Feb 2022 10:51:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233510AbiBXPvC (ORCPT ); Thu, 24 Feb 2022 10:51:02 -0500 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8847D144F7E; Thu, 24 Feb 2022 07:50:31 -0800 (PST) Received: by mail-wm1-x32b.google.com with SMTP id i19so103194wmq.5; Thu, 24 Feb 2022 07:50:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=VAU+x/FHA6Jlc8xXCTAj1x5xOvKQnNZlbxhMra3k1+0=; b=UgjMfNueviHEAJ5uQi9+BHYmwDK310ew8O/yaCEfOS6cdIaDmnZjRCenXTVSSTTOqs p860KcKtVd2JW6hEHzWGW8oxfEEpYFhZMERoS3au1eUOJYSCHn/+SGD90bsdTeMRJG5q gJpgfUG8KD1maVcSw/LEZg3f8wJ503IrFV6Y9wSvLgKghv+4EcZdb9t5N7wKqtb0JPPt UZ2ZdIug+TvDncdlAMk9qcm9uGUtCjUlBXA0cyTad91yjyG5dKnz63ragS/bG6d/pL8h MMrRSPq5WRSK0X319texLFLz53pNdxl4zKE8ol9r32eQxgYM3hoJUAQKAukHrd6g9I7t lKWw== 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; bh=VAU+x/FHA6Jlc8xXCTAj1x5xOvKQnNZlbxhMra3k1+0=; b=tk+gq3SdM+IsPJ/tf5mfJrwMLK0rm9zHvnowOeV94zhBbgfgV0aUVhY0ITbw9HTCPU eOJfnAb/R4uM6z9JPJVHbe6oqxt+YQ0BqxPAXztSo+9KK82jHl0mDDfcwGaiGaKnZgCB YtlGjlKvWZrWSinN7lmdeoh4idANFetm7021PdO+4hRsAERb6tSBvautUsw0Fv3SmSLk e8yOkCN+v3ZMJq2RBH7WDusE771t2mUOW8nJricQgEG1egAvB6OKZHf02BjxxPUnHAQW BIBhTWreJAsjqBd/6G1sHs0JECKeSRqdYMH3UkTBRrdcTBjznaGGqngGgr0yqeh2S+zV Qdjw== X-Gm-Message-State: AOAM533plDCHZiZgJg/UvAgwvwkplyNY+jR2KiT7Ed9UMUdgQH9MnqZb w2kTWu8m6YF7QBjljcwrsM0ENPwW4Xk= X-Received: by 2002:a05:600c:3046:b0:380:d5d3:930e with SMTP id n6-20020a05600c304600b00380d5d3930emr11229595wmh.12.1645717829865; Thu, 24 Feb 2022 07:50:29 -0800 (PST) Received: from Ansuel-xps.localdomain ([5.170.140.187]) by smtp.gmail.com with ESMTPSA id e9sm3001686wrx.3.2022.02.24.07.50.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Feb 2022 07:50:29 -0800 (PST) Date: Thu, 24 Feb 2022 16:50:25 +0100 From: Ansuel Smith To: Bjorn Andersson Cc: Andy Gross , Michael Turquette , Stephen Boyd , Rob Herring , Philipp Zabel , Taniya Das , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 07/16] clk: qcom: gcc-ipq806x: drop hardcoded pxo and cxo source clk Message-ID: References: <20220217235703.26641-1-ansuelsmth@gmail.com> <20220217235703.26641-8-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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, Feb 23, 2022 at 09:50:14PM -0600, Bjorn Andersson wrote: > On Thu 17 Feb 17:56 CST 2022, Ansuel Smith wrote: > > > We now define these clk in dts. Drop pxo and cxo hardcoded in the gcc > > probe function. > > > > As noted on the previous patch, this breaks booting with existing dtbs. > So I would like to split this with 1-2 releases in between to avoid any > problems. > > Reviewed-by: Bjorn Andersson > > on the change though. > > Regards, > Bjorn > Should I change this and register these clks only if they are not present? > > Signed-off-by: Ansuel Smith > > --- > > drivers/clk/qcom/gcc-ipq806x.c | 11 +---------- > > 1 file changed, 1 insertion(+), 10 deletions(-) > > > > diff --git a/drivers/clk/qcom/gcc-ipq806x.c b/drivers/clk/qcom/gcc-ipq806x.c > > index f6db7247835e..a4bf78fe8678 100644 > > --- a/drivers/clk/qcom/gcc-ipq806x.c > > +++ b/drivers/clk/qcom/gcc-ipq806x.c > > @@ -3119,23 +3119,14 @@ MODULE_DEVICE_TABLE(of, gcc_ipq806x_match_table); > > > > static int gcc_ipq806x_probe(struct platform_device *pdev) > > { > > - struct device *dev = &pdev->dev; > > struct regmap *regmap; > > int ret; > > > > - ret = qcom_cc_register_board_clk(dev, "cxo_board", "cxo", 25000000); > > - if (ret) > > - return ret; > > - > > - ret = qcom_cc_register_board_clk(dev, "pxo_board", "pxo", 25000000); > > - if (ret) > > - return ret; > > - > > ret = qcom_cc_probe(pdev, &gcc_ipq806x_desc); > > if (ret) > > return ret; > > > > - regmap = dev_get_regmap(dev, NULL); > > + regmap = dev_get_regmap(&pdev->dev, NULL); > > if (!regmap) > > return -ENODEV; > > > > -- > > 2.34.1 > > -- Ansuel