From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 112CDC2BB1D for ; Fri, 17 Apr 2020 21:28:04 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D188D20857 for ; Fri, 17 Apr 2020 21:28:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="p9+/sJiE" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D188D20857 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=0ETXTv20hXKlmexERXLv8dyG9XSN+IgRPYf6es4mz6g=; b=p9+/sJiEJliasl 7p2VCNk126CHjZHI0vGzC+pxN6+9jDgf1pKuRSdX9Ja2F2CvUmCS8s5kcChOzj9r68L8Qzz2ikzk1 RNbfILWN10nHLuBO3Vu8Px2WtAdN/bJxSpkFrfZ2inlVkD+iEJ6H7OZXbOWYz7QccdU9BjhXMLWhU FwXrcE/V4ksAqBSkB16br7rFIyj6e+BIHizQtpc8Au2fXFUnh5oOC78NW/YGT6BjSLzU1xPh/mefR DedHkEXdaJGzyZpxokmQXvD2qjoYuACqb5Tg1bl3I9NIvPNxX7GduTMvNSXBe1MmkAUbs7u/SLt0h f9TInUDgFaxsG070ScSw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jPYWp-0007xG-0T; Fri, 17 Apr 2020 21:28:03 +0000 Received: from mail-yb1-f194.google.com ([209.85.219.194]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jPYWm-0007wt-Oc for linux-arm-kernel@lists.infradead.org; Fri, 17 Apr 2020 21:28:02 +0000 Received: by mail-yb1-f194.google.com with SMTP id e17so1799536ybq.0 for ; Fri, 17 Apr 2020 14:27:59 -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=fXYl4kNExCGBOi5BqfhPDB8nMzffdvRKH+vg0KxiLE13Gj1PwP1mjwSSI8pXNbg2Vv ZMD1u3P0+TQ9qe/viLvV1108cQRQvlAJQur7BDQtwoOoi8HHQs9iNzteb3MTtLP4aMKO K0KPg9tu8g8srs3Or8YItTL1QcgjiE+RUOPA/Q+cBHsiOTv2VxzN7vyeQuhnygrjYNTY fpJgOfrNMUtGXHxs+vokXbDCcqFEA/X0PrwMHBxAYKE+VYxgnq8vYdjPakGUt8Tv1etF pzp7bXMcJaALyOfaB3g4nSqKwz/1cU2c0NR1K2nNssQtEkN5+rdz9sFULOjfo6BVOcf1 cGZw== X-Gm-Message-State: AGi0PuZXaO+/8SIcOTjpDzVWG+T5QymH1SVP5mJPGvljK5tkfgS+EqRW j4V/f+nMkmR2Y/GnDXH/h1jnr6U= X-Google-Smtp-Source: APiQypL6rSQWWm4O/O5NIKoI2/iuASc9VsPq/xS33QzFkpBAH2PsJauehqGS19xsRxbxU0NhZf8WBA== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200417_142800_799755_AC66D548 X-CRM114-Status: GOOD ( 12.14 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Gleixner , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linus Walleij Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel