Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp315460pxj; Thu, 20 May 2021 09:57:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+GLU/lk3uvztDxE6rmz7h4YR6rknCGZ0z7vU9Is4sGeOx36i3VEWgMRAWKnrZRPAs/avq X-Received: by 2002:a17:906:3615:: with SMTP id q21mr5715541ejb.414.1621529848352; Thu, 20 May 2021 09:57:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621529848; cv=none; d=google.com; s=arc-20160816; b=0TrWCPsx6fvqsc1o/UKJys1g9/OldPE7bvsoEN2Nn60PVJqxDlPoUnO4UJ4yJxAYJW 3RCEqm+iSK0KdeInxJeHPZA65yY9EG1k9DQCSR9jNPewZLhsFqKz2MEJj/J4SbjSo+DH frmEpIwej36meX2tSHUsWhiLlgciHM+G2iiLiLLWX/l0IPztT1Q33udYsiRSNwyqvE3E YmvkuNWFyBHpYFlJSIWSkrIWAtXwlfQV6ZOvhyRmj+QNrAME8aO/FNf/czq4fOgPX0l5 vknSIoSARcCrc1+PZDmEjWd7omH1f2hyjOwH1R/2iO3UhPo9aBIp6Lz7pTUwrffLKVEE fEAw== 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=4p4J/8l4hHr6Gx0BuOUyqcLh1/0U+RG8xSmDYC2/uKM=; b=RafhCc6Z9jiITiqxxP6f4+8j3hAOFW6dyDYbbLs+Nd5juEum5St+DsvP3Gc0GC2D+b TmSBhWOnMLGstYNw+VVcGEZqLppXQ8VBuTEQvWXpSMD8k+kIIVUF31k8mQnHNNFkwUTS dUy4kVa5by3cP2VZo2dF4Q0EH2jbMNZjuKUnUg/anENZ7BJYe9CAtg6gLsKPqKF5ozlI nN/MRX5RJ/VTPHb+9NrStk6WpR/5vAu5fi72k6gkuBwgu9ut/Wt69VfW8oTilWH86QK8 9o+Dw++r8DZ73EQBg8mnI1QgSVDvkezh0xGPdUyfW+WtxczGeopw1+PllJJ3GpFPlcXN 6z3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rSHPf6x3; 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 z26si3469266ejc.46.2021.05.20.09.57.00; Thu, 20 May 2021 09:57:28 -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=rSHPf6x3; 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 S234888AbhETJ5u (ORCPT + 99 others); Thu, 20 May 2021 05:57:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:53336 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234431AbhETJx7 (ORCPT ); Thu, 20 May 2021 05:53:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 089876135C; Thu, 20 May 2021 09:36:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621503407; bh=fPsflSkuLVHcNxF6BEgMrvlWT/lnRqv/IlgevUfzarE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rSHPf6x3kXQB0++6GJTr0mOtAIApaZhrFPlP1L2HX3IdQMIVIJTnYkOyjSi1Qxcfn 9MAdmxG3/hn+x8Zer6bXTysvXYFDQ66rGmuJ6Cl1BLysQdybXPJK46XFgHSsBTIjBY jD7BP1/1VeaFhlGObzJgfo7uYBJU+ITyUAb93M/I= 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 4.19 207/425] clk: mvebu: armada-37xx-periph: remove .set_parent method for CPU PM clock Date: Thu, 20 May 2021 11:19:36 +0200 Message-Id: <20210520092138.213741752@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092131.308959589@linuxfoundation.org> References: <20210520092131.308959589@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 499f5962c8b0..a7e40ff3e57d 100644 --- a/drivers/clk/mvebu/armada-37xx-periph.c +++ b/drivers/clk/mvebu/armada-37xx-periph.c @@ -428,33 +428,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) { @@ -580,7 +553,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