Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4678709pxj; Wed, 12 May 2021 10:42:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWZl6R9c8uLw4MQHeViZ2afswskzw5RxkKKgbUiGDYbQPkKzNuD2xTJAouSsE6h/QP6U77 X-Received: by 2002:a17:906:f56:: with SMTP id h22mr38859398ejj.366.1620841326612; Wed, 12 May 2021 10:42:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620841326; cv=none; d=google.com; s=arc-20160816; b=kCHXtphirMTPTHTDlCZfHl+k7UCRT8CLm6rjU4dBMLq5n4S6wM06eX+J0zMCvjL7sK vxOiyhLWXgnVG69T9Cbgcb0aCQOjXbnSyO93GV9zBi2MXEzL3ZUu/OAahLtkC7btRAuX /CrT8Ntg4ovPNM5U8uf0RYnrQm65NJGnOzzQm0PqrdbYJmtmAvfSTHdGsm7i8GDXQ9Yc Tri8szzZy3tp5tmNRM+sUhvk05tn5wCzHoH1T5b/GyRCYcr4G7kEqJrWFp0kBQrTJvXr 9J7QBBFkyKV0+3NHqP7gL/66hqW1vufzoXf6e9A/MqtSvtB0PxhxhP6QXPP3TreGdB7y opFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=YQuBY74AYh2bwOk1pzi5wapZwac9JgQFOETRxsoeeLQ=; b=WOSM0NK+cf+MA9AwOR5iebSb6Uo1JOr9B333Q1RekpkBvTuP8kp6sqa6hxCQKeU6v/ LlcMMPtEsoY8eiBiMv5o/iYrS3LnrGMyh9ktOwbMGexNn8AxxjnFNnKbO3c9sLGeeVUH 8gU6u2HC1d7AOlSzle1ADuqN+rypzQ3U2HrfwKs3ongNQXsLEtoFo9x17KjcM7PtMwCA 9UOc4cU4W7d6ARvMPh73ftP0JOTfAzqMnRkJyc9ucmsUhmBdZz/iM9PMBb8rZkW/D9Rm zUFAykhoU8KKPjQVoH55QmILYZgwcpQ+ECkSeFtUq5Wayvv1jvk9qWMSeUV/fFVIeOv4 5aIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ayfgmA8C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ia10si461400ejc.582.2021.05.12.10.41.42; Wed, 12 May 2021 10:42:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ayfgmA8C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345649AbhELR12 (ORCPT + 99 others); Wed, 12 May 2021 13:27:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:34570 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239199AbhELQHf (ORCPT ); Wed, 12 May 2021 12:07:35 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DDA3961C50; Wed, 12 May 2021 15:36:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620833809; bh=jjUBIP4SiM0ATLRglWSDxzYDel7xBraSSOu2ZrBNxoM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ayfgmA8CvDdfIW9LcCpobDeqRQ97KkJ7fU0ZAgOGtRzsKGvPL0N7YkjHpvNnFE83q eJqJYjTg8/0jgb+HW4MsIP/gxUU8fJfN9/2HhfYcb4DVWOXNSUi4NYZwM9G8EkZEZ2 8G+w20OJ+nE36nUJQgFztpXsJa/EuGUdmC5CKeWw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Marek=20Beh=C3=BAn?= , Stephen Boyd , Gregory CLEMENT , =?UTF-8?q?Pali=20Roh=C3=A1r?= , Tomasz Maciej Nowak , Anders Trier Olesen , Philip Soares , Viresh Kumar , Sasha Levin Subject: [PATCH 5.11 262/601] clk: mvebu: armada-37xx-periph: remove .set_parent method for CPU PM clock Date: Wed, 12 May 2021 16:45:39 +0200 Message-Id: <20210512144836.445904057@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210512144827.811958675@linuxfoundation.org> References: <20210512144827.811958675@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marek Behún [ Upstream commit 4e435a9dd26c46ac018997cc0562d50b1a96f372 ] Remove the .set_parent method in clk_pm_cpu_ops. This method was supposed to be needed by the armada-37xx-cpufreq driver, but was never actually called due to wrong assumptions in the cpufreq driver. After this was fixed in the cpufreq driver, this method is not needed anymore. Signed-off-by: Marek Behún Acked-by: Stephen Boyd Acked-by: Gregory CLEMENT Tested-by: Pali Rohár Tested-by: Tomasz Maciej Nowak Tested-by: Anders Trier Olesen Tested-by: Philip Soares Fixes: 2089dc33ea0e ("clk: mvebu: armada-37xx-periph: add DVFS support for cpu clocks") Signed-off-by: Viresh Kumar Signed-off-by: Sasha Levin --- drivers/clk/mvebu/armada-37xx-periph.c | 28 -------------------------- 1 file changed, 28 deletions(-) diff --git a/drivers/clk/mvebu/armada-37xx-periph.c b/drivers/clk/mvebu/armada-37xx-periph.c index f5746f9ea929..6507bd2c5f31 100644 --- a/drivers/clk/mvebu/armada-37xx-periph.c +++ b/drivers/clk/mvebu/armada-37xx-periph.c @@ -440,33 +440,6 @@ static u8 clk_pm_cpu_get_parent(struct clk_hw *hw) return val; } -static int clk_pm_cpu_set_parent(struct clk_hw *hw, u8 index) -{ - struct clk_pm_cpu *pm_cpu = to_clk_pm_cpu(hw); - struct regmap *base = pm_cpu->nb_pm_base; - int load_level; - - /* - * We set the clock parent only if the DVFS is available but - * not enabled. - */ - if (IS_ERR(base) || armada_3700_pm_dvfs_is_enabled(base)) - return -EINVAL; - - /* Set the parent clock for all the load level */ - for (load_level = 0; load_level < LOAD_LEVEL_NR; load_level++) { - unsigned int reg, mask, val, - offset = ARMADA_37XX_NB_TBG_SEL_OFF; - - armada_3700_pm_dvfs_update_regs(load_level, ®, &offset); - - val = index << offset; - mask = ARMADA_37XX_NB_TBG_SEL_MASK << offset; - regmap_update_bits(base, reg, mask, val); - } - return 0; -} - static unsigned long clk_pm_cpu_recalc_rate(struct clk_hw *hw, unsigned long parent_rate) { @@ -592,7 +565,6 @@ static int clk_pm_cpu_set_rate(struct clk_hw *hw, unsigned long rate, static const struct clk_ops clk_pm_cpu_ops = { .get_parent = clk_pm_cpu_get_parent, - .set_parent = clk_pm_cpu_set_parent, .round_rate = clk_pm_cpu_round_rate, .set_rate = clk_pm_cpu_set_rate, .recalc_rate = clk_pm_cpu_recalc_rate, -- 2.30.2