From patchwork Thu Sep 3 04:00:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 11752337 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 82AAB739 for ; Thu, 3 Sep 2020 04:00:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 623BB2078E for ; Thu, 3 Sep 2020 04:00:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=sholland.org header.i=@sholland.org header.b="Kav0Y9YA"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="toW4nqzL" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726025AbgICEAX (ORCPT ); Thu, 3 Sep 2020 00:00:23 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:54209 "EHLO out2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725843AbgICEAT (ORCPT ); Thu, 3 Sep 2020 00:00:19 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 6240B5C01CF; Thu, 3 Sep 2020 00:00:18 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Thu, 03 Sep 2020 00:00:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm3; bh=kGU1vj1XbPmI3 GbcVRuOLRdT/UokAk5NkRE0C6HEpFU=; b=Kav0Y9YAS9HFWVGY9Hn5elC31ASXJ 9gbkssJLzdj5Qm2qyEiBhoXUq24qOVyMNcZhnx/cZGnkzNAmDCpAQOKihKoIOOR/ h91eOk6R2usm4twMvrMzUf4qqEHDQjsaBir31fFirv72huZ8gLU4OXOjqjjRKP2R Jz59EYEMY0ofVCMeNnVMcIBGJBUFF4/+Rs8UEhfJCw7x4IlfE3uRbXRyp1b0tdqC Iwkc9JoHnMKIBFn9qj7LFvZWCIph8sxaPgu/sL4Ak75m3wVcAdXhFk7wMBdzJ6Hh Ga1wi3g6FNMHilksK6tKrEo056ZKdn/XkPfF9Xcro3EGGKcWgT1n0DwTw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=kGU1vj1XbPmI3GbcVRuOLRdT/UokAk5NkRE0C6HEpFU=; b=toW4nqzL c/GhCWcPpZP8p4/r5ScvQmZiSDreftq3W4cXwSdqsVmt7N+hL7ztRiJPUy9Jh+ZA urATG6M1L1bamLFk65/A23LwjOKfXKRLnaTNyS50uoKVKAOuE9289k7zqMp+vfkD e6uqkXwOfdRfV0QbyQvdTlm4r1MGO3CQ6nUie73nUTL76J2Xaw88C826S2z9emAH O9hwBehCzRgBB8g5WIFSfh9wq8C6AeE4BNLENhE7c5qDjNT7dKfdlA+6YCKvPZtb dcEukayYBrPr3GxKsV5yTM4/nmTqPDzub9pxJAWMZZaVnwVcbwNS/0vrM2idBshV DYKaZM/x63Gf6A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrudegtddgjeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgv lhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtf frrghtthgvrhhnpeduhfejfedvhffgfeehtefghfeiiefgfeehgfdvvdevfeegjeehjedv gfejheeuieenucfkphepjedtrddufeehrddugeekrdduhedunecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepshgrmhhuvghlsehshhholhhlrghn ugdrohhrgh X-ME-Proxy: Received: from titanium.stl.sholland.net (70-135-148-151.lightspeed.stlsmo.sbcglobal.net [70.135.148.151]) by mail.messagingengine.com (Postfix) with ESMTPA id 6773630600A3; Thu, 3 Sep 2020 00:00:17 -0400 (EDT) From: Samuel Holland To: Stephen Boyd , Michael Turquette , Andy Gross , Bjorn Andersson , Maxime Ripard Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Samuel Holland Subject: [PATCH RESEND 2/2] Revert "clk: qcom: Support 'protected-clocks' property" Date: Wed, 2 Sep 2020 23:00:15 -0500 Message-Id: <20200903040015.5627-3-samuel@sholland.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200903040015.5627-1-samuel@sholland.org> References: <20200903040015.5627-1-samuel@sholland.org> MIME-Version: 1.0 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Now that protected-clocks is handled in the clk core, this driver-specific implementation is redundant. This reverts commit b181b3b801da8893c8eb706e448dd5111b02de60. Signed-off-by: Samuel Holland --- drivers/clk/qcom/common.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/drivers/clk/qcom/common.c b/drivers/clk/qcom/common.c index 60d2a78d1395..6e150fd32dbe 100644 --- a/drivers/clk/qcom/common.c +++ b/drivers/clk/qcom/common.c @@ -194,22 +194,6 @@ int qcom_cc_register_sleep_clk(struct device *dev) } EXPORT_SYMBOL_GPL(qcom_cc_register_sleep_clk); -/* Drop 'protected-clocks' from the list of clocks to register */ -static void qcom_cc_drop_protected(struct device *dev, struct qcom_cc *cc) -{ - struct device_node *np = dev->of_node; - struct property *prop; - const __be32 *p; - u32 i; - - of_property_for_each_u32(np, "protected-clocks", prop, p, i) { - if (i >= cc->num_rclks) - continue; - - cc->rclks[i] = NULL; - } -} - static struct clk_hw *qcom_cc_clk_hw_get(struct of_phandle_args *clkspec, void *data) { @@ -272,8 +256,6 @@ int qcom_cc_really_probe(struct platform_device *pdev, cc->rclks = rclks; cc->num_rclks = num_clks; - qcom_cc_drop_protected(dev, cc); - for (i = 0; i < num_clk_hws; i++) { ret = devm_clk_hw_register(dev, clk_hws[i]); if (ret)