Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1765161pxm; Thu, 24 Feb 2022 08:58:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJx1Q56Adz2X3ts3PEtIAwQEoR5KXWNtoQ8ZLpCmSEp5qL+TCwYJrBpKdmcPVzv7ERWrqkPt X-Received: by 2002:a17:90a:9517:b0:1bc:81ef:79cd with SMTP id t23-20020a17090a951700b001bc81ef79cdmr3674289pjo.164.1645721900191; Thu, 24 Feb 2022 08:58:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645721900; cv=none; d=google.com; s=arc-20160816; b=Lsdhw3k7tfyR0UKSKjMFdE55D1r7vJY9lqxTJqpkc23FvEVomnv8oSog77iDAfWfcF 4R4euinkXKcH6wA6hiRarIDVUykKv4PqDjxRvCqYO+LveeRrESO+kI0Ripo7e1PENS3j 3zvkHEmfde5YL3t1E9ACYoF+SrleJPLjwIu413QSJ0cC80QPRS6LDn3Qsp7/d2zoPY2N ZUn/UrJCdV5UYwVhRHuG9HY+JpjZ7YHjgrQAx5TlBZg3MexhH9R+SMDlit2G5RkCXX7/ HCg6S/RcjbNNb5ysc1wgeFkbZS9P2R9UYfKpo7Cx+i+874U4zeF7llefMrr+Pa3QwSIG cTuA== 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=UtvGHwpTPxnNK4df830HsbQ5tqR9fciM9/AXkb63doE=; b=a2mA4h1OQRWMs4rXpzqD+nbIOekHVZTFsntm5W8mRU8EEZcgmY2eRMHWqLccNio+Bx U/WsK7wm07K0rIaG9HTaLtr4vPV1xowTf+d7TjMTucF+ICbw6HnaooYwwgeBO6JV4hVd 1d4VFT4rImAuRSe+tMGsCAzo0WZD7K3nWQdd/dExpzJbPFdUj20t+VLokBI8TndILYFy r8lVhaCqsFMXh3VNHLICbCHaj2jDXSWoO+fRQLIy0+dykN3fDLaBnZlF22pCYoC9d/OS BySKAlG645LKYCZPGO47KSI3iBJl3u42qwsdK0409LgRLi5Zq7Z84jmLwjSfcnt9wPAu iECg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ezsfkKAm; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id o12si3318727pgu.842.2022.02.24.08.58.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Feb 2022 08:58:20 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ezsfkKAm; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4224217BC61; Thu, 24 Feb 2022 08:32:54 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229844AbiBXQbm (ORCPT + 99 others); Thu, 24 Feb 2022 11:31:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229674AbiBXQbk (ORCPT ); Thu, 24 Feb 2022 11:31:40 -0500 Received: from mail-oi1-x22e.google.com (mail-oi1-x22e.google.com [IPv6:2607:f8b0:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9E7628D386 for ; Thu, 24 Feb 2022 08:31:00 -0800 (PST) Received: by mail-oi1-x22e.google.com with SMTP id i5so3284851oih.1 for ; Thu, 24 Feb 2022 08:31:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=UtvGHwpTPxnNK4df830HsbQ5tqR9fciM9/AXkb63doE=; b=ezsfkKAm3SoATQ8pbdZnOmKRIPKE6xVK9TxybTM5YRuqZBED0GKI+NSlQKXYJNU6a9 wUhfHlw1PQYC9gUeoQbyNVCKCxFtT6ARNpmAz0vNLaysBNBKvGynHBIoc6aFC6oIQenf fLbC9wytOC33ipG/dDymdMC8C962u/ItTirw3NV39yarM02FPLSk0q4W8hk6vJYIcQT6 xXB7Sp+1WoiBxpxytz/VKqSH8llpk12Q0WCpLXGFQd/aV+63jfag7c029qhb0DFsjE4z Kj3OqWnAVTlniXK45mmZO5L3RoNpOtjKeX7D8Fa12mJX5E4hxgutUXHVapL7kAQm5u9I LuFg== 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=UtvGHwpTPxnNK4df830HsbQ5tqR9fciM9/AXkb63doE=; b=Nzn6+2syRfViEqnVJCQKmQwMLKvaaiJeDZux1w0C3uo2IE8nq8WGopaAeqbRUraIAu 7LJ/bSTnGfM97NIxuV16bGOU0x8qcrnzAZLKStp1dxV8EiFZS9WgOJDJSIv1ZqKpG7jW tK+rJ6x6TYGgH8zbkfvp2hNMhX5sr0A24PVwMVtyyhBwROTPVgGyoxC4AyaXy5anzn0k itfcGVLBYM7Q3ooorIR19opzf+nrNfrm6NkYp9SGD4M4i/syn3AoQOAl8W825i4Y3BBv u1LmfgIkC3r5Ja5bsBmueZPJGrJWDJQ/h3Y5X91h8/dBtOzKHWka0OSTIzoLNrd/k0ga Ua+g== X-Gm-Message-State: AOAM531nCo3AaV0cZtUkljjbrZg1mu/UQctCImx0uu55C6GX/Hbger0u P0akUO5Vn4ueZq+jQ5pBKuKWHurz5Rc5AA== X-Received: by 2002:a05:6870:4410:b0:d3:1505:36c8 with SMTP id u16-20020a056870441000b000d3150536c8mr6822284oah.300.1645719214522; Thu, 24 Feb 2022 08:13:34 -0800 (PST) Received: from ripper ([2600:1700:a0:3dc8:205:1bff:fec0:b9b3]) by smtp.gmail.com with ESMTPSA id g18sm1365629otp.17.2022.02.24.08.13.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Feb 2022 08:13:33 -0800 (PST) Date: Thu, 24 Feb 2022 08:15:32 -0800 From: Bjorn Andersson To: Ansuel Smith 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=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 Thu 24 Feb 07:50 PST 2022, Ansuel Smith wrote: > 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? > The .fw_name will match against clock-names to resolve a phandle to e.g. &pxo_board and if not found should fall back to matching by .name and finding these clocks. So I don't see a conflict in keeping them around. Once we know that the dts change is in place I think we should merge this as is. Regards, Bjorn > > > 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