From patchwork Fri Dec 18 14:17:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 7885391 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 78B499F32E for ; Fri, 18 Dec 2015 14:34:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9BDCA20445 for ; Fri, 18 Dec 2015 14:34:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A3A7F201DD for ; Fri, 18 Dec 2015 14:34:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932120AbbLROeS (ORCPT ); Fri, 18 Dec 2015 09:34:18 -0500 Received: from mail-wm0-f42.google.com ([74.125.82.42]:38865 "EHLO mail-wm0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933060AbbLROTL (ORCPT ); Fri, 18 Dec 2015 09:19:11 -0500 Received: by mail-wm0-f42.google.com with SMTP id l126so67192063wml.1 for ; Fri, 18 Dec 2015 06:19:11 -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; bh=huQYA9nZmT8fnxtdnrhv57/fvfElQpb5bsGp5JoaM4E=; b=fHgJ5BlXADbRSM4CrMnGzVrY79XUCRM4Pfrzkp7gJkheBcNYjoTAWpsbU6dD8Cbf3j CDyz4ipsr28okrCnSzOnDTA9TegGa0/+OrzfQIFRDpXUi9cwSp18ll81Ypq8GGHZMF7G mixSwe9QVDq7xYZpOKEej0ltHOdD0EZrBx8L0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=huQYA9nZmT8fnxtdnrhv57/fvfElQpb5bsGp5JoaM4E=; b=agwYePdChn74SU7heVaQ1j/m6dMz4MG6Ridx/8rsqvOoEULMD6UJ0ga3931+piUnWd H0YOow7XVkXGapa8+BDs20Fwd6xP/SS+lKqGb6geSfRLYHzqPZH5cJWTV5qWRgVKQ3X5 Z0W5r8m14ZHBmcG3FLzCGbHu4oZNrDLiqlORc9k63feiFYNFzHerbM8v2e78gcj0impy t7j3MyeTadgE/kSdwMrjwBLHL5GFwyamzMXhTvPBPiQ7Qmi+qjz5sEUkFMpr1OWtd6Zz 8pyjpuhNRSlC1hxW/X2MGitNief6y7Fqa8niipMqqyLgr+3KKPdcwJn4boyCAsRmEXqZ vHew== X-Gm-Message-State: ALoCoQkReYdRtdIItUEZGCden9UcNnIRCRdPuTy38VlT2xfqFhrdZq1fLhB2FiF1yDdo7BCLQNqS21joMZDfYyv5QK9rC+Nwjg== X-Received: by 10.28.49.65 with SMTP id x62mr3536447wmx.49.1450448350285; Fri, 18 Dec 2015 06:19:10 -0800 (PST) Received: from localhost.localdomain ([78.210.255.2]) by smtp.gmail.com with ESMTPSA id ql10sm15010027wjc.23.2015.12.18.06.19.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 18 Dec 2015 06:19:09 -0800 (PST) From: Daniel Lezcano To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, mingo@kernel.org, Krzysztof Kozlowski , Russell King , Kukjin Kim , linux-samsung-soc@vger.kernel.org (moderated list:ARM/SAMSUNG EXYNO...) Subject: [PATCH 32/69] clocksource/drivers/exynos_mct: Fix Kconfig and add COMPILE_TEST option Date: Fri, 18 Dec 2015 15:17:45 +0100 Message-Id: <1450448302-27429-32-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1450448302-27429-1-git-send-email-daniel.lezcano@linaro.org> References: <5672CB9E.7090707@linaro.org> <1450448302-27429-1-git-send-email-daniel.lezcano@linaro.org> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_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 Let the platform's Kconfig to select the clock instead of having a reverse dependency from the driver to the platform options. Add the COMPILE_TEST option for the compilation test coverage. Due to the non portable 'delay' code, this driver is only compilable on ARM. Signed-off-by: Daniel Lezcano Tested-by: Krzysztof Kozlowski Reviewed-by: Krzysztof Kozlowski Reviewed-by: Chanwoo Choi --- arch/arm/mach-exynos/Kconfig | 1 + drivers/clocksource/Kconfig | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig index 3a10f1a..ff10539 100644 --- a/arch/arm/mach-exynos/Kconfig +++ b/arch/arm/mach-exynos/Kconfig @@ -27,6 +27,7 @@ menuconfig ARCH_EXYNOS select SRAM select THERMAL select MFD_SYSCON + select CLKSRC_EXYNOS_MCT help Support for SAMSUNG EXYNOS SoCs (EXYNOS4/5) diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index e3ba5b4..2062783 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig @@ -231,8 +231,8 @@ config CLKSRC_METAG_GENERIC This option enables support for the Meta per-thread timers. config CLKSRC_EXYNOS_MCT - def_bool y if ARCH_EXYNOS - depends on !ARM64 + bool "Exynos multi core timer driver" if COMPILE_TEST + depends on ARM help Support for Multi Core Timer controller on Exynos SoCs.