From patchwork Mon Feb 26 05:08:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 10241281 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1432E60208 for ; Mon, 26 Feb 2018 05:10:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 03C48292DF for ; Mon, 26 Feb 2018 05:10:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EC6F3297C3; Mon, 26 Feb 2018 05:10:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 719B8292DF for ; Mon, 26 Feb 2018 05:10:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=hX7nC1ovtJRV8MS26zTqQVC4VpUaTqjcXjgFvKUG4iI=; b=sTraHxU6qFYwhbjt5R1m5c43h1 08NnAxw5KKviQwz6PSvvMG/wptbDhXX9HVz5sX6d6Zuf3Q+qI3wevwPCPt7d3QuPxb0J47a2UGiyV WXQFsXCJ6G2rhR40D+xna7qapsFZ5zVvbA/BjqTn/k0ovhYz7kQx0ifamoWUDrHQabmUINp4+kOf6 HgU2NOuAt64b0izAYKjpQ9m3f+X8kzBdNIQDPRieBX928oE4UWUTkK317wdOvCXWr5vvC0Xl+kK0C 1uytIW+piy2jdZGvTraYR6sMD3JzSCFLr9MYcGi4i996zk9EV3SAtQ0PoYWuvD9eOWYtizXxSiqe+ ibzlQlog==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eqB3T-0001Ao-T6; Mon, 26 Feb 2018 05:10:27 +0000 Received: from mail-pl0-x244.google.com ([2607:f8b0:400e:c01::244]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eqB2x-0008K4-I6 for linux-arm-kernel@lists.infradead.org; Mon, 26 Feb 2018 05:10:02 +0000 Received: by mail-pl0-x244.google.com with SMTP id f23so8659207plr.10 for ; Sun, 25 Feb 2018 21:09:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=mbM/nQwKbDGCgT5aGrfXK+B80WlDzF6HIV3v2fYFi8Q=; b=I9gbsi9zkHiGgj/HFP0AmBWJKTpxFGBvkFgdZTLjKEX2M/dQZgF7ysYfXUvhz5Pak2 YeAUcQOq0c29c64amrFQDL5MlnIXMOS186d2EkF+eFi1Dfhf8OlJGwVCaQEUyPc5VbmO 9bjpDXcHIhUjwtmnDjAi00avAzaQN88C+Zji4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=mbM/nQwKbDGCgT5aGrfXK+B80WlDzF6HIV3v2fYFi8Q=; b=jkYIa3hde8xgo6ta9UPP4KZ02EWlwm2gDuwfJ8FnEKdQ8imC4OR3GQoKnnN5EGS2kf 2sAe9//B7IpMyLpdJScJSPUAkl3C8NBSH14P49kTgWmtZX1i+b0bzLgOBjJ1uV5O2tGw i0XXHBFl1oooc+7f5mGHoLzZLPCkIpv61aDg6Srl1Olk1pDc2qqDkL2zRjQDguSRsNyL wFEALp2FgXwmwl7b3fTAfHpO4sYxX7AONLSxYUM/CScTUmCstyLpxPEvIun7kzZ9zwMf YfMkqtSvzhsxKlCz09xyf1qDv7sksmYQplBYz2TMPjpN+qeyZmy9F5dY2J6mToLFPdPP SEPA== X-Gm-Message-State: APf1xPBZmmKTNA9A1sN+uxbe2j1bizpax7Clgmjdj6RnkKVO/qlYIpkK e9zQMtWh4BU6c3q+lJk8oqZJxg== X-Google-Smtp-Source: AH8x225DQBTtc/Ss1ENCM2UdpWKj2U3BXOOYstKu2c1dgqfdM5a+PR2qymZWYkc2E/bdGE5k/BHK8Q== X-Received: by 2002:a17:902:12e:: with SMTP id 43-v6mr9435428plb.77.1519621784945; Sun, 25 Feb 2018 21:09:44 -0800 (PST) Received: from localhost ([122.172.92.38]) by smtp.gmail.com with ESMTPSA id 14sm16389077pfi.132.2018.02.25.21.09.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 Feb 2018 21:09:44 -0800 (PST) From: Viresh Kumar To: Rafael Wysocki , Markus Mayer , bcm-kernel-feedback-list@broadcom.com, Brian Norris , Gregory Fong , Florian Fainelli Subject: [PATCH 06/27] cpufreq: brcmstb: Don't validate the frequency table twice Date: Mon, 26 Feb 2018 10:38:49 +0530 Message-Id: <7d2bc4de102c81503c30a64503179c4ccebe6287.1519620578.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.15.0.194.g9af6a3dea062 In-Reply-To: References: In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180225_210956_315139_C24F1DAC X-CRM114-Status: GOOD ( 12.47 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Viresh Kumar , Vincent Guittot , linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The cpufreq core is already validating the CPU frequency table after calling the ->init() callback of the cpufreq drivers and the drivers don't need to do the same anymore. Though they need to set the policy->freq_table field directly from the ->init() callback now. Stop validating the frequency table from brcmstb driver. Signed-off-by: Viresh Kumar --- drivers/cpufreq/brcmstb-avs-cpufreq.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/cpufreq/brcmstb-avs-cpufreq.c b/drivers/cpufreq/brcmstb-avs-cpufreq.c index 7281a2c19c36..6cdac1aaf23c 100644 --- a/drivers/cpufreq/brcmstb-avs-cpufreq.c +++ b/drivers/cpufreq/brcmstb-avs-cpufreq.c @@ -902,11 +902,7 @@ static int brcm_avs_cpufreq_init(struct cpufreq_policy *policy) return ret; } - ret = cpufreq_table_validate_and_show(policy, freq_table); - if (ret) { - dev_err(dev, "invalid frequency table: %d\n", ret); - return ret; - } + policy->freq_table = freq_table; /* All cores share the same clock and thus the same policy. */ cpumask_setall(policy->cpus);