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: 58715 Delivered-To: patch@linaro.org Received: by 10.112.89.199 with SMTP id bq7csp1064846lbb; Fri, 18 Dec 2015 06:34:22 -0800 (PST) X-Received: by 10.66.150.228 with SMTP id ul4mr5682366pab.15.1450449262294; Fri, 18 Dec 2015 06:34:22 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v65si20291503pfi.112.2015.12.18.06.34.21; Fri, 18 Dec 2015 06:34:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964886AbbLROeT (ORCPT + 29 others); Fri, 18 Dec 2015 09:34:19 -0500 Received: from mail-wm0-f43.google.com ([74.125.82.43]:38865 "EHLO mail-wm0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932562AbbLROTL (ORCPT ); Fri, 18 Dec 2015 09:19:11 -0500 Received: by mail-wm0-f43.google.com with SMTP id l126so67192064wml.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=Xv3zfJ4rCu1LIIl+m5wAMFWhM/+GeQ2ZcB2JNsmeOwYXy6Kdo6fGNDpLVkQyYUqQd7 or0yg25lgnDU5xOVV+qJH5TMJRMT8qR6s6+d1D+nueQu6eANIG5KBUA9glaHDGgDemWW Tdx5Eu+0biPsEUOUSRsZ6bNPmYkkDJqKAmUvWDMlvvXenkYAUtpNf9bmVwJLwKahX1ri 3w379LHOikwNkG64IpBAvhnovOEVAa0PCDPj8TFmQUM+IgiqNo/9/DvpuBfbW+G+yIay mIUjAeuIGbvWYOHsee1DI/B6vT+LZgUSg26jx1+Ic9HXyAVZ0ByAd1NZQpH3cd93xYK8 4E5g== X-Gm-Message-State: ALoCoQmWnF+c/tuuS+sGReyCkG1umiJ4vZMzOX1/lvnhW+uVg3BlQEMiQLh0jxViU4+x15hu3ol71XS52W+VRQydw27VrUY+Tw== 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ 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.