From patchwork Mon Nov 2 12:56:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 55881 Delivered-To: patch@linaro.org Received: by 10.112.61.134 with SMTP id p6csp1253492lbr; Mon, 2 Nov 2015 04:58:41 -0800 (PST) X-Received: by 10.68.211.165 with SMTP id nd5mr27002178pbc.100.1446469116482; Mon, 02 Nov 2015 04:58:36 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pf9si34853765pbb.141.2015.11.02.04.58.36; Mon, 02 Nov 2015 04:58:36 -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.20150623.gappssmtp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754024AbbKBM6R (ORCPT + 28 others); Mon, 2 Nov 2015 07:58:17 -0500 Received: from mail-wi0-f181.google.com ([209.85.212.181]:36024 "EHLO mail-wi0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753904AbbKBM6A (ORCPT ); Mon, 2 Nov 2015 07:58:00 -0500 Received: by wicfx6 with SMTP id fx6so49197443wic.1 for ; Mon, 02 Nov 2015 04:57:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro_org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=MNEGC+mc55TFsSLnP1gp4LHtemKFyqdQ0xTsLdIdgyE=; b=cdOAgg0XtiTg6B2A0u/OeXcN2bCgyvBGmxYkgXT69Q7t+nBjV1QRGU77Rk4dCk2b/A wkT6gQaIqb2HxCTYmkjTmB3jolgmvonzNftOhUQA+zqpWzLdryEfhlXsXOKNCGD+iZvf DIGiFocN5XzNJjAJ05TjPLF6NZS0w8BFyF+MePqLH8OpKfOK+h8rrYuvDhntmzQsId0S OeKkdfLVqw65NRpqe9Ob2a10MPkpNeAFmf2tFdEGmp6gcF0505ryKLnr//1KvzHsuZJI PHCbO1wLSLDVSM57z5YvSMxaFRyJrxbmBcbQ+xAVW2/jQIYPRpBJlxKABgq6DgiV9too e52Q== 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=MNEGC+mc55TFsSLnP1gp4LHtemKFyqdQ0xTsLdIdgyE=; b=HM72N9T6g2tEVHQXDATd0rKLl3ru9ij+ZAkmTXhDRlQmXKvjUbd35yDESDin4plpGF WPkF2BuvVx0aeqFDfHgcg3OtTKvMyP2+EQNegYi7Zc5leqo2MPrtkRByxyIkWelNAxHt M1N2J3y2l5JIOp57rJDhXAm6y1dyLf4kErfqEwWijiPQRZCG6oQqUbt/3E53495oztZI UPsA9wT6YvQnQA4uAlI6ASCTRP/XS06/uTp4nY86Bxn0V6yVigN4psLaw8mLg8c08K35 y3eyDCLrM/6Rh7KMWUrmXsvvH4hAIXyBZ2sWx3Gv9YDv04h3Vc7RyB0HzUwCMiwMCRAs 7Ahg== X-Gm-Message-State: ALoCoQl1LY7fky0Rb9jgAyQkbgzCTMNxkV2nNSxmsABfXh54hf1t/ml2IDnP5slGUxdNik7ARSQt X-Received: by 10.194.189.49 with SMTP id gf17mr26930006wjc.158.1446469078897; Mon, 02 Nov 2015 04:57:58 -0800 (PST) Received: from localhost.localdomain ([78.210.255.2]) by smtp.gmail.com with ESMTPSA id it4sm22263633wjb.0.2015.11.02.04.57.57 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 02 Nov 2015 04:57:58 -0800 (PST) From: Daniel Lezcano To: tglx@linutronix.de Cc: john.stultz@linaro.org, linux-kernel@vger.kernel.org, arnd@arndb.de, Linus Walleij , Russell King , linux-arm-kernel@lists.infradead.org (moderated list:ARM/Ux500 ARM ARC...) Subject: [PATCH 19/22] clocksource/drivers/prcmu: Fix Kconfig and add COMPILE_TEST option Date: Mon, 2 Nov 2015 13:56:47 +0100 Message-Id: <1446469011-22710-19-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1446469011-22710-1-git-send-email-daniel.lezcano@linaro.org> References: <1446469011-22710-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. This change is debatable as the option itself in the Kconfig allows to select the driver for the platform or not. This change will make the prcmu timer always selected. Signed-off-by: Daniel Lezcano --- arch/arm/mach-ux500/Kconfig | 1 + drivers/clocksource/Kconfig | 4 +--- 2 files changed, 2 insertions(+), 3 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/ Acked-by: Linus Walleij diff --git a/arch/arm/mach-ux500/Kconfig b/arch/arm/mach-ux500/Kconfig index c9ac19b..5eacdd6 100644 --- a/arch/arm/mach-ux500/Kconfig +++ b/arch/arm/mach-ux500/Kconfig @@ -32,6 +32,7 @@ config UX500_SOC_DB8500 select PINCTRL_AB8540 select REGULATOR select REGULATOR_DB8500_PRCMU + select CLKSRC_DBX500_PRCMU select PM_GENERIC_DOMAINS if PM config MACH_MOP500 diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index 17674b4..916c36d 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig @@ -114,9 +114,7 @@ config CLKSRC_NOMADIK_MTU_SCHED_CLOCK Use the Multi Timer Unit as the sched_clock. config CLKSRC_DBX500_PRCMU - bool "Clocksource PRCMU Timer" - depends on UX500_SOC_DB8500 - default y + bool "Clocksource PRCMU Timer" if COMPILE_TEST help Use the always on PRCMU Timer as clocksource