Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1022618ybz; Fri, 17 Apr 2020 14:22:41 -0700 (PDT) X-Google-Smtp-Source: APiQypKIEPMy5JfvvpuFSZKAMrlraZkBw8X4+89RzEcwUOgnii6u0ssYx6cpg6o5PZivObJgHK/j X-Received: by 2002:a17:906:1e48:: with SMTP id i8mr5138190ejj.232.1587158560833; Fri, 17 Apr 2020 14:22:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587158560; cv=none; d=google.com; s=arc-20160816; b=CYjXsGSgu7/U8CbspdNMs7GBdNLjhw4mKsouORnBvFH+Z6HZHSqTbS3PLt74i4rmEv W3Wj9cmO6ng/bV4OC//udUY5YzFAv0x5lDfa/uHeIolqLhirg2D36Cuz/7yUI7p3e7f9 IgXXZB7ct4oXrTnziDxZ1BEX/3vzIScG3ACDo9nn4C1IMJJh7+wa0Li5z8OlW/PsBdaB 5csG0g4JJfiuc0omB4gMZ1oyFSLdr/ZeuoFbHtkU2A/V8vPJu/nI1ha3YwBlnYSQyztl 0Szq1NIcUOA7S7mzSSD/y3+uNtvmK1f1LiGet7EIJl7+EdJhDjo+xiC1Bl6HsVJxVUJv 8TAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=OQ8VvxT9+3crfVwlWJJzfFn2WYEKasdv8UrQD4Rcn8E=; b=JBdQDG4Fi25w/pcMZlAeTXcr1lJURovwuEwKb5KiCczZjh80sGRfPPpivKJIE8wL7S vXxrm+MPnu8PH+U6wzNUFo3bS4vyT7WvPXfVjhdfXWP08U8y68drEvYXnKBM8Ymu1C8S b3WEoKMCdWx9Mcb+ebvdi5dxl2xo/E7kZAA2UH5amCzGge2pPOrDucPfBjq7fIXAQbpl GF1UNuWOX3Kh2WZDbY4Bk9E15rl3lwBWIoNfj61fApL6zqkThrDxwWH0WKTfWbddjVBS UQgg1/h4PGx4C4lMuyGN5GtPmaIhiKlRZxc+8WxzBujJ5B3PZjTsJ+QComnr4GzgQGGF XWTQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ce9si6883108ejc.139.2020.04.17.14.22.17; Fri, 17 Apr 2020 14:22:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727899AbgDQVUs (ORCPT + 99 others); Fri, 17 Apr 2020 17:20:48 -0400 Received: from mail-oo1-f68.google.com ([209.85.161.68]:36605 "EHLO mail-oo1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726503AbgDQVUs (ORCPT ); Fri, 17 Apr 2020 17:20:48 -0400 Received: by mail-oo1-f68.google.com with SMTP id x17so779846ooa.3 for ; Fri, 17 Apr 2020 14:20:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=OQ8VvxT9+3crfVwlWJJzfFn2WYEKasdv8UrQD4Rcn8E=; b=akhw1ZqXTj6+TJEB4oDVW/FthSCbua7pHET+7GFWvbGa2HTujRk3O6yR7VBWGfTFi+ QOGvKm2aU/bstq7aBPlEk48unsqscZBOMBAKeQytJyUTPzlU3LrHplc8ZDicHYzwUqNm +rd4eTli6zRob+STJAzLxAmiTBd7zKcQur737QNRrEkj9PlXnxRjZYCasu9R9z3mHx2D tB4x7S81/lTEy/TwktiP1gzUiqv9HLptZ0Fmj9llQ6sI5wG9v2SlGDYkSV5yWRdxK82C 219BWjMwkwaolBy6CqSmIS6V86sWO+4mFFtUeAbUkxSRtDdMpMV9u+xNLil8+FxjsQyH yYPA== X-Gm-Message-State: AGi0PuYa4AJt8UNEMxJoHvSt54M/V55o3pSSQT08Rr3F98XXz3+ISP0h zr3D3qpf8wQ2IP6RpzyJyA== X-Received: by 2002:a4a:2c8c:: with SMTP id o134mr4247569ooo.77.1587158446862; Fri, 17 Apr 2020 14:20:46 -0700 (PDT) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id s25sm3651476ooh.22.2020.04.17.14.20.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Apr 2020 14:20:46 -0700 (PDT) From: Rob Herring To: Daniel Lezcano Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Thomas Gleixner , Linus Walleij Subject: [PATCH] clocksource: versatile: Allow CONFIG_CLKSRC_VERSATILE to be disabled Date: Fri, 17 Apr 2020 16:20:45 -0500 Message-Id: <20200417212045.16917-1-robh@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The timer-versatile driver provides a sched_clock for certain Arm Ltd. reference platforms. Specifically, it is used on Versatile and 32-bit VExpress. It is not needed for those platforms with an arch timer (all the 64-bit ones) yet CONFIG_MFD_VEXPRESS_SYSREG does still need to be enabled. In that case, the timer-versatile can only be disabled when COMPILE_TEST is enabled which is not desirable. Let's use the sub-arch kconfig symbols instead. Realview platforms don't have the sysregs that this driver uses so correct the help text. Cc: Daniel Lezcano Cc: Thomas Gleixner Cc: Linus Walleij Signed-off-by: Rob Herring --- This is part of a larger effort to modularize Versatile Express support, but this change doesn't have any dependency, so it can be applied independently. Rob drivers/clocksource/Kconfig | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index f2142e6bbea3..679b35fc07a8 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig @@ -562,12 +562,11 @@ config CLKSRC_VERSATILE bool "ARM Versatile (Express) reference platforms clock source" if COMPILE_TEST depends on GENERIC_SCHED_CLOCK && !ARCH_USES_GETTIMEOFFSET select TIMER_OF - default y if MFD_VEXPRESS_SYSREG + default y if (ARCH_VEXPRESS || ARCH_VERSATILE) && ARM help This option enables clock source based on free running counter available in the "System Registers" block of - ARM Versatile, RealView and Versatile Express reference - platforms. + ARM Versatile and Versatile Express reference platforms. config CLKSRC_MIPS_GIC bool -- 2.20.1