From patchwork Tue May 31 05:17:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 12865073 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A6A30C433EF for ; Tue, 31 May 2022 05:17:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236600AbiEaFRs (ORCPT ); Tue, 31 May 2022 01:17:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232815AbiEaFRr (ORCPT ); Tue, 31 May 2022 01:17:47 -0400 Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 442AE3F883; Mon, 30 May 2022 22:17:45 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 1AB5A320097D; Tue, 31 May 2022 01:17:44 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 31 May 2022 01:17:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm2; t=1653974263; x=1654060663; bh=OgiPG+U4zIk0Jt48BHpc6497A JSnBBy/ITnA0OSv0KQ=; b=jDNq31pf9JIwx/Ez6zeDEd6l20nYTE6tSmtAofj1t ADUnPrKV8D8lHH3BcPQonnGR/XoKWk5OCtvCPgBNIFDlKm3dBgW4xDLiGwbj5xJN ZIOXrQOwDLeXgKu4pmRthvYBix6BtNJDDXLAxxdobv4BBReLvkNqpgna1XOW8JSM pNq8ujWqSyJyNorSxT/XXbHMEJfM/0w1qWgoak+o8du0bTYyC/1pXFyE6fU6m+50 lI1h6aJtX+STtvJNaDJPwbN/TOhg7z38gnSJJdo5jMpvWPIo6H9Y2DrQcyIjtL7P l9feJT/xmylLE1Z4Bwu8KJO8TGbnxkkVz6xk1tU/oZe+Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1653974263; x=1654060663; bh=OgiPG+U4zIk0Jt48BHpc6497AJSnBBy/ITn A0OSv0KQ=; b=dT9ynzy/BYuC0zOib12EdO8r4BqtZJobMQ4cONDsCd6uGw99ifF x7QKwhG4cSCPdxJonQWO5ylhNVPkcJv6tTJfemrZsb70NexpauR0E8gJ8onbyb8K uJa+jyX1oaT8Hcucv1TIfoJiWwSuFZQrpbXZEln25jpl/kgC45HjPP8Qj+jDrdBR XKJ7XXB7073TdtkC6AQbdrpwzdn1Cql6EqMWqnx4Nm4avuJ5rIlW7NwLU2Q94+oj nrLi2C5z+NDiryQRZfF5VN/IE7Ts2IIc09BOKpqRTAqOE4lCjbTPRmQvHw2yjaAS UwML7H84QbvPff/pcBK5muWazR2ZYNX//rw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrkeejgdelfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgvlhcu jfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtffrrg htthgvrhhnpeekveelhfejueelleetvdejvdeffeetgeelheeujeffhefgffefkeehhffh keekgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hsrghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 31 May 2022 01:17:42 -0400 (EDT) From: Samuel Holland To: Michael Turquette , Stephen Boyd Cc: Jernej Skrabec , Chen-Yu Tsai , Maxime Ripard , Samuel Holland , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] clk: fixed: Remove Allwinner A10 special-case logic Date: Tue, 31 May 2022 00:17:41 -0500 Message-Id: <20220531051742.43273-1-samuel@sholland.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org This compatible is part of the legacy sunxi clock support, and has not been used since commit 6b48644b1d29 ("ARM: gr8: Convert to CCU") in October 2016. Since supporting this compatible adds some overhead to generic clock code, let's clean it up. Signed-off-by: Samuel Holland --- drivers/clk/clk-fixed-factor.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/drivers/clk/clk-fixed-factor.c b/drivers/clk/clk-fixed-factor.c index 54942d758ee6..e6b36247c16b 100644 --- a/drivers/clk/clk-fixed-factor.c +++ b/drivers/clk/clk-fixed-factor.c @@ -210,16 +210,10 @@ struct clk_hw *devm_clk_hw_register_fixed_factor(struct device *dev, EXPORT_SYMBOL_GPL(devm_clk_hw_register_fixed_factor); #ifdef CONFIG_OF -static const struct of_device_id set_rate_parent_matches[] = { - { .compatible = "allwinner,sun4i-a10-pll3-2x-clk" }, - { /* Sentinel */ }, -}; - static struct clk_hw *_of_fixed_factor_clk_setup(struct device_node *node) { struct clk_hw *hw; const char *clk_name = node->name; - unsigned long flags = 0; u32 div, mult; int ret; @@ -237,11 +231,8 @@ static struct clk_hw *_of_fixed_factor_clk_setup(struct device_node *node) of_property_read_string(node, "clock-output-names", &clk_name); - if (of_match_node(set_rate_parent_matches, node)) - flags |= CLK_SET_RATE_PARENT; - hw = __clk_hw_register_fixed_factor(NULL, node, clk_name, NULL, 0, - flags, mult, div, false); + 0, mult, div, false); if (IS_ERR(hw)) { /* * Clear OF_POPULATED flag so that clock registration can be From patchwork Tue May 31 05:17:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 12865074 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CA55AC433EF for ; Tue, 31 May 2022 05:18:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243952AbiEaFRu (ORCPT ); Tue, 31 May 2022 01:17:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243946AbiEaFRt (ORCPT ); Tue, 31 May 2022 01:17:49 -0400 Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04F1E33E9D; Mon, 30 May 2022 22:17:48 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 8D3593200972; Tue, 31 May 2022 01:17:46 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Tue, 31 May 2022 01:17:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1653974266; x=1654060666; bh=F8 1xGIS8G0ZOmU4a6natt6mMHiJ7p/1Yr5bda54vx6o=; b=dsydNz1c/NPBbEDv1i NOjssi2PZgYkfBBevF2sF53gV4MU2WED4+iUqD29YHpbnnWFVyEw5hz/ajGSsPuu AmKMqhcBRXO8DqAIK+XMNMsqTmEAIt4qHQtYbl/WyGPLMdT6cShX/zooBoBDcEAe QA/wT9jQDF+bKQGu8OLJk0qewgNhP29mxzAMULtbqGsyLtVTCsderMLZoWRD7+Sg fg5hk5n4LiQhNf2RKQiv9asUWmeL1e7qsYjBzLCc9HiuKcI+zqNLgryWUfis3w7L N0f785Eqzv4KeJ9/+tjMKKXXIJAfNUN6kQdZwtrPtpoinClzdwDyxsMuhGh+UY5p BxvA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1653974266; x=1654060666; bh=F81xGIS8G0ZOm U4a6natt6mMHiJ7p/1Yr5bda54vx6o=; b=vBzQWTO/xZlpP2VsUQ3Gzk6j3L0Bd pNRynyAZVzDxturF1GkLURCbfHBunQj26SumVm2Prk6rec0ZIxYZG5v29ishJ469 Yxy1HRC6Na7hdEs6JdMOvj+y5zuimaW1jS2vYkhA6zpWyXgmJIiJeAixZ1XpgnGc vgkzT1q9Uida0h99jpjUdopDkyR5wHSPbggu1JdJQbVux2QfpR/mAaErPfnSaWF0 BrsceqAMIJENzscuKlIrl4TuWlGE4jx1trlOA4EWVx6HSX3tdcRpkXoowEgMDaqb i/fOBx9rHNn5Zl3XsGm5NsFtIpYAbW0ybXCCnULpEmTq5/zIddW9dmZ0A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrkeejgdelgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgv lhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtf frrghtthgvrhhnpedukeetueduhedtleetvefguddvvdejhfefudelgfduveeggeehgfdu feeitdevteenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 31 May 2022 01:17:45 -0400 (EDT) From: Samuel Holland To: Michael Turquette , Stephen Boyd Cc: Jernej Skrabec , Chen-Yu Tsai , Maxime Ripard , Samuel Holland , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org Subject: [PATCH 2/2] dt-bindings: clock: fixed-factor: Drop Allwinner A10 compatible Date: Tue, 31 May 2022 00:17:42 -0500 Message-Id: <20220531051742.43273-2-samuel@sholland.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220531051742.43273-1-samuel@sholland.org> References: <20220531051742.43273-1-samuel@sholland.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org This compatible is part of the legacy sunxi clock support, and has not been used since commit 6b48644b1d29 ("ARM: gr8: Convert to CCU") in October 2016. Now that the code for this compatible has been removed, let's drop the compatible. Signed-off-by: Samuel Holland Acked-by: Rob Herring --- Documentation/devicetree/bindings/clock/fixed-factor-clock.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/Documentation/devicetree/bindings/clock/fixed-factor-clock.yaml b/Documentation/devicetree/bindings/clock/fixed-factor-clock.yaml index f415845b38dd..0b02378a3a0c 100644 --- a/Documentation/devicetree/bindings/clock/fixed-factor-clock.yaml +++ b/Documentation/devicetree/bindings/clock/fixed-factor-clock.yaml @@ -13,7 +13,6 @@ maintainers: properties: compatible: enum: - - allwinner,sun4i-a10-pll3-2x-clk - fixed-factor-clock "#clock-cells":