Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp227951pxb; Thu, 21 Jan 2021 05:53:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJxq9tMHlRuzc4FkVT+Bkrj4CxXIW6DIcMPNYPe+haWjoh21sdTKjw4B1qpX/+Mhd83OydhL X-Received: by 2002:aa7:db82:: with SMTP id u2mr11038430edt.179.1611237180854; Thu, 21 Jan 2021 05:53:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611237180; cv=none; d=google.com; s=arc-20160816; b=Y1fBmgiCDgrhZJK/zSsE1ueQdTn5QA/xLZOZRUQhdS6/AJVvOcXR0hOeDG6Fx/qraC PtRTeXdEQIABUH6Ok15KXowqoU+NWinAUMiB2tcD7U/AdfWVF4O2so7m3LxQsFq4bs/d t5i2SF5O8auimvx9Xn6J4bTuFgeBjPil2av8mjogrJ0C3ymsJDFUeTh3wwag8DZFdzCj Ipa9xWf3xevxNXug0B16Okr+RDqmZoQaCWPpaWav/v5EH6VFCLPS9IYqabn5BdT0WnKo UIur3FASu19EioCoaANCrJtG4hdXvXc66k+dyq4XcE6DUiN3dSZuWUfB5Nl8L+lZIazF 3zOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from; bh=Br1cMhVu0KbYYsGgpRh+whQMi6U8nKhBQlfkXKHdWX0=; b=qzO9uQKv7u1B6+uoilSRFiIBj2txW7fpS8A/G/PuzFPrRENgvafT0iUznjHtqeY3f/ xfB6h3c3wkGpwAj4bfhAxEuynUkVS/t9GjMLYlEdHnjctG30yVbluhB4zYjQF5Q/QRuJ wyderKqzIlMhfz1p0CDAV01wtPG/gCRrn8QUY+MSxyPRP0wWfOokMLIGZiDfhR4DXboi TFluDFp6VeEaBqbco7lBFte2yJUpbjlqxLDP+Nh/wd9F5YAL8W0zWbPdPzx6ZJsvW6ud ZHuDqBbSPqxHctwY2aBzFuQgBE0BI3b7z9tj17R3g/yhzIr+5K/GNl9vtrhTj6QG92Yu +d0g== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w13si2078929edv.507.2021.01.21.05.52.36; Thu, 21 Jan 2021 05:53:00 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730392AbhAUNtp convert rfc822-to-8bit (ORCPT + 99 others); Thu, 21 Jan 2021 08:49:45 -0500 Received: from unicorn.mansr.com ([81.2.72.234]:60214 "EHLO unicorn.mansr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730020AbhAUNt3 (ORCPT ); Thu, 21 Jan 2021 08:49:29 -0500 Received: from raven.mansr.com (raven.mansr.com [81.2.72.235]) by unicorn.mansr.com (Postfix) with ESMTPS id 53FBC15362; Thu, 21 Jan 2021 13:48:44 +0000 (GMT) Received: by raven.mansr.com (Postfix, from userid 51770) id 5168521A3D9; Thu, 21 Jan 2021 13:48:44 +0000 (GMT) From: =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= To: Arnd Bergmann Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Daniel Lezcano , Thomas Gleixner , Arnd Bergmann , Marc Gonzalez Subject: Re: [PATCH 2/4] timer: remove tango driver References: <20210120131559.1971359-1-arnd@kernel.org> <20210120131559.1971359-3-arnd@kernel.org> Date: Thu, 21 Jan 2021 13:48:44 +0000 In-Reply-To: <20210120131559.1971359-3-arnd@kernel.org> (Arnd Bergmann's message of "Wed, 20 Jan 2021 14:15:57 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Arnd Bergmann writes: > From: Arnd Bergmann > > The tango platform is getting removed, so the driver is no > longer needed. > > Cc: Marc Gonzalez > Cc: Mans Rullgard > Signed-off-by: Arnd Bergmann Acked-by: Mans Rullgard > --- > drivers/clocksource/Kconfig | 8 ---- > drivers/clocksource/Makefile | 1 - > drivers/clocksource/timer-tango-xtal.c | 57 -------------------------- > 3 files changed, 66 deletions(-) > delete mode 100644 drivers/clocksource/timer-tango-xtal.c > > diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig > index 824a0f6b77d4..1feadd067677 100644 > --- a/drivers/clocksource/Kconfig > +++ b/drivers/clocksource/Kconfig > @@ -560,14 +560,6 @@ config CLKSRC_MIPS_GIC > select CLOCKSOURCE_WATCHDOG > select TIMER_OF > > -config CLKSRC_TANGO_XTAL > - bool "Clocksource for Tango SoC" if COMPILE_TEST > - depends on ARM > - select TIMER_OF > - select CLKSRC_MMIO > - help > - This enables the clocksource for Tango SoC. > - > config CLKSRC_PXA > bool "Clocksource for PXA or SA-11x0 platform" if COMPILE_TEST > depends on HAS_IOMEM > diff --git a/drivers/clocksource/Makefile b/drivers/clocksource/Makefile > index 41c154478a1a..1089f2ed8560 100644 > --- a/drivers/clocksource/Makefile > +++ b/drivers/clocksource/Makefile > @@ -72,7 +72,6 @@ obj-$(CONFIG_KEYSTONE_TIMER) += timer-keystone.o > obj-$(CONFIG_INTEGRATOR_AP_TIMER) += timer-integrator-ap.o > obj-$(CONFIG_CLKSRC_VERSATILE) += timer-versatile.o > obj-$(CONFIG_CLKSRC_MIPS_GIC) += mips-gic-timer.o > -obj-$(CONFIG_CLKSRC_TANGO_XTAL) += timer-tango-xtal.o > obj-$(CONFIG_CLKSRC_IMX_GPT) += timer-imx-gpt.o > obj-$(CONFIG_CLKSRC_IMX_TPM) += timer-imx-tpm.o > obj-$(CONFIG_TIMER_IMX_SYS_CTR) += timer-imx-sysctr.o > diff --git a/drivers/clocksource/timer-tango-xtal.c b/drivers/clocksource/timer-tango-xtal.c > deleted file mode 100644 > index 3f94e454ef99..000000000000 > --- a/drivers/clocksource/timer-tango-xtal.c > +++ /dev/null > @@ -1,57 +0,0 @@ > -// SPDX-License-Identifier: GPL-2.0 > -#include > -#include > -#include > -#include > -#include > -#include > -#include > - > -static void __iomem *xtal_in_cnt; > -static struct delay_timer delay_timer; > - > -static unsigned long notrace read_xtal_counter(void) > -{ > - return readl_relaxed(xtal_in_cnt); > -} > - > -static u64 notrace read_sched_clock(void) > -{ > - return read_xtal_counter(); > -} > - > -static int __init tango_clocksource_init(struct device_node *np) > -{ > - struct clk *clk; > - int xtal_freq, ret; > - > - xtal_in_cnt = of_iomap(np, 0); > - if (xtal_in_cnt == NULL) { > - pr_err("%pOF: invalid address\n", np); > - return -ENXIO; > - } > - > - clk = of_clk_get(np, 0); > - if (IS_ERR(clk)) { > - pr_err("%pOF: invalid clock\n", np); > - return PTR_ERR(clk); > - } > - > - xtal_freq = clk_get_rate(clk); > - delay_timer.freq = xtal_freq; > - delay_timer.read_current_timer = read_xtal_counter; > - > - ret = clocksource_mmio_init(xtal_in_cnt, "tango-xtal", xtal_freq, 350, > - 32, clocksource_mmio_readl_up); > - if (ret) { > - pr_err("%pOF: registration failed\n", np); > - return ret; > - } > - > - sched_clock_register(read_sched_clock, 32, xtal_freq); > - register_current_timer_delay(&delay_timer); > - > - return 0; > -} > - > -TIMER_OF_DECLARE(tango, "sigma,tick-counter", tango_clocksource_init); > -- > > 2.29.2 > -- M?ns Rullg?rd