From patchwork Fri Dec 18 14:17:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 58680 Delivered-To: patch@linaro.org Received: by 10.112.89.199 with SMTP id bq7csp1056091lbb; Fri, 18 Dec 2015 06:19:23 -0800 (PST) X-Received: by 10.66.142.78 with SMTP id ru14mr5592577pab.66.1450448359907; Fri, 18 Dec 2015 06:19:19 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v79si20239539pfa.134.2015.12.18.06.19.19; Fri, 18 Dec 2015 06:19:19 -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 S933091AbbLROTN (ORCPT + 29 others); Fri, 18 Dec 2015 09:19:13 -0500 Received: from mail-wm0-f45.google.com ([74.125.82.45]:36231 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933052AbbLROTJ (ORCPT ); Fri, 18 Dec 2015 09:19:09 -0500 Received: by mail-wm0-f45.google.com with SMTP id p187so65504279wmp.1 for ; Fri, 18 Dec 2015 06:19:09 -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=ShSfZ74lBLxUhYjCEFbN1mRZMOvEIhW3GLdNr8vFtGg=; b=N5gWFgRz8qHOn40PZ6H4YleGKkYQ5Y4NZGRknfU5DIToxuOEfFWTy+MNQD/LI6HQI8 oNNA1G2PhxRPDPPYOgc48b+SDE0gUvrrmQ7pOvozQ6ytE/vrlm3mFS7v0DJPDd0jY3CT JI3+HbOZ+sHEdhYA9fXnDQiMnK+eNBGOdNMNU= 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=ShSfZ74lBLxUhYjCEFbN1mRZMOvEIhW3GLdNr8vFtGg=; b=hfjZ7hwwZMGT1iKXzouIqopnLanvOn79upQIWgvhOQia76/BIpf4U74SnMgKWjBbtB 1JII8Cyj93Lne+15gkYLxVbMq/qyMhlFmYD4bz1kh3yd0pCKn/wB56RK3HMTVsuHrt+F ID7v8GPeltLRI91LegpdaWDCaJfp/AzFPijP3SQyTl2gSXX8b+0ifsfj3FcO+vqTBZSW MVlTz0P0K5PiXJj6rpvm9Ht4IUs2W783mnZgI8YeUGnWFa7+KRTgy9Md+gP4GN3GCmDR UC9qX2/1T/s/8RMFgPWvX3WvoKuqr1uQPdlA9vPtu9PLK3ASVUbfCwowpLcAFd4HwFoF B8rw== X-Gm-Message-State: ALoCoQmPvcTZOoCvDotHkzGyDMkesdsS9IT/9+lsY37AskGAu316zNAoCf0xYFIFoGrVi+Qvi8OMUkp5wq3GarMnY2hFDTQlhg== X-Received: by 10.195.13.137 with SMTP id ey9mr4967764wjd.81.1450448348664; Fri, 18 Dec 2015 06:19:08 -0800 (PST) Received: from localhost.localdomain ([78.210.255.2]) by smtp.gmail.com with ESMTPSA id ql10sm15010027wjc.23.2015.12.18.06.19.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 18 Dec 2015 06:19:08 -0800 (PST) From: Daniel Lezcano To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, mingo@kernel.org, Linus Walleij , Russell King Subject: [PATCH 31/69] clocksource/drivers/prcmu: Fix Kconfig and add COMPILE_TEST option Date: Fri, 18 Dec 2015 15:17:44 +0100 Message-Id: <1450448302-27429-31-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. 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 Acked-by: Linus Walleij --- 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/ 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 847b3b1..e3ba5b4 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig @@ -123,9 +123,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