From patchwork Wed Nov 18 13:52:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Punit Agrawal X-Patchwork-Id: 7649391 X-Patchwork-Delegate: rjw@sisk.pl Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4F560BF90C for ; Wed, 18 Nov 2015 13:53:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 91BED20608 for ; Wed, 18 Nov 2015 13:53:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 60435205C4 for ; Wed, 18 Nov 2015 13:53:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755237AbbKRNxW (ORCPT ); Wed, 18 Nov 2015 08:53:22 -0500 Received: from fw-tnat.cambridge.arm.com ([217.140.96.140]:56504 "EHLO cam-smtp0.cambridge.arm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754824AbbKRNxV (ORCPT ); Wed, 18 Nov 2015 08:53:21 -0500 Received: from e105922-lin.cambridge.arm.com (e105922-lin.cambridge.arm.com [10.1.207.164]) by cam-smtp0.cambridge.arm.com (8.13.8/8.13.8) with SMTP id tAIDqlNr029807; Wed, 18 Nov 2015 13:52:47 GMT Received: by e105922-lin.cambridge.arm.com (sSMTP sendmail emulation); Wed, 18 Nov 2015 13:52:47 +0000 From: Punit Agrawal To: linux-pm@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, arnd@arndb.de, Punit Agrawal , Sudeep Holla , "Rafael J . Wysocki" , Viresh Kumar Subject: [PATCH v2] cpufreq: scpi: Depend on SCPI clk driver Date: Wed, 18 Nov 2015 13:52:44 +0000 Message-Id: <1447854764-9865-1-git-send-email-punit.agrawal@arm.com> X-Mailer: git-send-email 2.6.2 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The SCPI clk driver registers the virtual cpufreq device that kicks off initialisation of the SCPI cpufreq driver. Also, clk_get() will fail for the cpufreq driver if the scpi clk driver is missing. Fix this by making the scpi cpufreq driver explicitly depend on the scpi clk driver. Fixes: 8def31034d03 ("cpufreq: arm_big_little: add SCPI interface driver") Signed-off-by: Punit Agrawal Cc: Sudeep Holla Cc: Rafael J. Wysocki Cc: Viresh Kumar Acked-by: Viresh Kumar --- drivers/cpufreq/Kconfig.arm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm index 1582c1c..dadfdd4 100644 --- a/drivers/cpufreq/Kconfig.arm +++ b/drivers/cpufreq/Kconfig.arm @@ -201,7 +201,7 @@ config ARM_SA1110_CPUFREQ config ARM_SCPI_CPUFREQ tristate "SCPI based CPUfreq driver" - depends on ARM_BIG_LITTLE_CPUFREQ && ARM_SCPI_PROTOCOL + depends on ARM_BIG_LITTLE_CPUFREQ && ARM_SCPI_PROTOCOL && COMMON_CLK_SCPI help This adds the CPUfreq driver support for ARM big.LITTLE platforms using SCPI protocol for CPU power management.