Received: by 10.223.185.116 with SMTP id b49csp254658wrg; Tue, 13 Feb 2018 21:11:02 -0800 (PST) X-Google-Smtp-Source: AH8x224w6KOp+HfC9eeg8N8+QnCG52NSdCx8++8qspW7H2/j/0eIGnh9SQKnNlb2FQjqdl2AiBXz X-Received: by 2002:a17:902:a617:: with SMTP id u23-v6mr3328828plq.201.1518585062539; Tue, 13 Feb 2018 21:11:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518585062; cv=none; d=google.com; s=arc-20160816; b=nrffXsTSeQiC6eF5GBBG1X+PfeHQgx2QP6fpHPvGWfUYT5GusHtOWVvo71xlqpBsS9 gcqm2Z5yPGBR0zEz9okt2IStbf2kJs9keQx9p0FWvXi4a2ShNMnzUmhdrJP0fZbu31kq JZzmZZa1fD39mEhSWIwNXOUeZBl/VGzYj2nNpKyzVy/Vv4J2Iik27Q1kiSYtZQU/j6Ry MRA5nglH3bWznurChLo3UVIaKqmjDC50IbjJ1qO2Lf4ureLK5dDr6SS90uQxsn7B+NLe TzRZ5q21mzcZMcjT2ZF5iAwpQeK9ue4y9xGJRjY2b+wClpjuBqRbYN388K2DXh8heKYH UWLw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=sW+dsj+fZFmC4/JYUqqd1GxzDce0g7SZrpp3rdL3glo=; b=A4TN/kyfp0Xj7YB3trxLDIPWAy5J7gFfanXShv/x1KAFCQwWATU41Cl6GLkD7o/wOc 5gluRLGES5y7DseTHHtIqEM0D2+TyvVJMv5x+9CGBghmROMIvsURN2acVTodywlybDV/ MWs/5sm2m1zoimuqDfVlghEey7P600TsYI7Q2dSpSgAipquZ1poAk4wJVn2+AoKLv56p KPszqO1op7Dpr88Ahmi25xxrsSZeDo5YAUGcM//2Z8cI4QL1OMmVblMooLoP+r7dcQns AYW1sgWbumZ/eTHmZVjUSlkgQr02I+C2jReHHpBnV9migf2jXCdd2uYGi85nt8v3oqpr bCoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=pmDUk69l; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f69si831597pgc.490.2018.02.13.21.10.48; Tue, 13 Feb 2018 21:11:02 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=pmDUk69l; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751596AbeBNFKH (ORCPT + 99 others); Wed, 14 Feb 2018 00:10:07 -0500 Received: from lelnx193.ext.ti.com ([198.47.27.77]:48813 "EHLO lelnx193.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751008AbeBNFKF (ORCPT ); Wed, 14 Feb 2018 00:10:05 -0500 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id w1E59SpT018471; Tue, 13 Feb 2018 23:09:28 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1518584968; bh=fkNRLRKyjCZqyt9YS0tykmywJQMhHhk0xKEccwLthBI=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=pmDUk69l8qXEH+ej/1yo2eIa/b/rtRhg6va6mvJTZEd8ObT2oOD83CGGx+EeCIb+5 928CfuV5Tcv5Iip9821Ag8iBT5X2fN5MeBsQzsn/IfHoQeSLck2DqfbT5LUHaDgUDc Y2h/IsDPxfV8lo0y7/hYYZ0PJ/CDntLH8sl07hu4= Received: from DFLE108.ent.ti.com (dfle108.ent.ti.com [10.64.6.29]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w1E59SZU030792; Tue, 13 Feb 2018 23:09:28 -0600 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Tue, 13 Feb 2018 23:09:28 -0600 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Tue, 13 Feb 2018 23:09:28 -0600 Received: from [172.24.191.45] (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w1E59Mtt026175; Tue, 13 Feb 2018 23:09:23 -0600 Subject: Re: [PATCH v7 4/9] arm: OMAP: Move dmtimer driver out of plat-omap to drivers under clocksource To: Suman Anna , "daniel.lezcano@linaro.org" , "thierry.reding@gmail.com" , "tony@atomide.com" , "aaro.koskinen@iki.fi" CC: "Claudiu.Beznea@microchip.com" , "narmstrong@baylibre.com" , "linux-pwm@vger.kernel.org" , "ladis@linux-mips.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "sebastian.reichel@collabora.co.uk" , "linux-omap@vger.kernel.org" , "robh+dt@kernel.org" , "Kristo, Tero" , "Strashko, Grygorii" References: <1515478987-5786-1-git-send-email-j-keerthy@ti.com> <1515478987-5786-5-git-send-email-j-keerthy@ti.com> From: Keerthy Message-ID: Date: Wed, 14 Feb 2018 10:39:19 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday 13 February 2018 07:54 AM, Suman Anna wrote: > Hi Keerthy, > > On 01/09/2018 12:23 AM, J, KEERTHY wrote: >> Move the dmtimer driver out of plat-omap to clocksource. >> So that non-omap devices also could use this. > > What non-omap devices do you have in mind? I don't think this driver is > ready for that yet. It still has a lot of OMAP dependencies. So you > should defer this for later along with the rest of the cleanup and when > the driver is ready for that. I mean non-omap TI devices. Not totally generic one. > >> >> No Code changes done to the driver file only renamed to timer-dm.c. >> Also removed the config dependencies for OMAP_DM_TIMER. >> >> Signed-off-by: Keerthy >> Reviewed-by: Sebastian Reichel >> Tested-by: Ladislav Michl >> --- >> arch/arm/plat-omap/Kconfig | 6 ------ >> arch/arm/plat-omap/Makefile | 1 - >> drivers/clocksource/Kconfig | 3 +++ >> drivers/clocksource/Makefile | 1 + >> arch/arm/plat-omap/dmtimer.c => drivers/clocksource/timer-dm.c | 0 >> 5 files changed, 4 insertions(+), 7 deletions(-) >> rename arch/arm/plat-omap/dmtimer.c => drivers/clocksource/timer-dm.c (100%) >> >> diff --git a/arch/arm/plat-omap/Kconfig b/arch/arm/plat-omap/Kconfig >> index 7276afe..afc1a1d 100644 >> --- a/arch/arm/plat-omap/Kconfig >> +++ b/arch/arm/plat-omap/Kconfig >> @@ -106,12 +106,6 @@ config OMAP3_L2_AUX_SECURE_SERVICE_SET_ID >> help >> PPA routine service ID for setting L2 auxiliary control register. >> >> -config OMAP_DM_TIMER >> - bool "Use dual-mode timer" >> - depends on ARCH_OMAP16XX || ARCH_OMAP2PLUS >> - help >> - Select this option if you want to use OMAP Dual-Mode timers. >> - >> config OMAP_SERIAL_WAKE >> bool "Enable wake-up events for serial ports" >> depends on ARCH_OMAP1 && OMAP_MUX >> diff --git a/arch/arm/plat-omap/Makefile b/arch/arm/plat-omap/Makefile >> index 47e1867..7215ada 100644 >> --- a/arch/arm/plat-omap/Makefile >> +++ b/arch/arm/plat-omap/Makefile >> @@ -9,5 +9,4 @@ obj-y := sram.o dma.o counter_32k.o >> >> # omap_device support (OMAP2+ only at the moment) >> >> -obj-$(CONFIG_OMAP_DM_TIMER) += dmtimer.o >> obj-$(CONFIG_OMAP_DEBUG_LEDS) += debug-leds.o >> diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig >> index c729a88..3f799b2 100644 >> --- a/drivers/clocksource/Kconfig >> +++ b/drivers/clocksource/Kconfig >> @@ -21,6 +21,9 @@ config CLKEVT_I8253 >> config I8253_LOCK >> bool >> >> +config OMAP_DM_TIMER >> + bool >> + >> config CLKBLD_I8253 >> def_bool y if CLKSRC_I8253 || CLKEVT_I8253 || I8253_LOCK >> >> diff --git a/drivers/clocksource/Makefile b/drivers/clocksource/Makefile >> index 72711f1..27b5497 100644 >> --- a/drivers/clocksource/Makefile >> +++ b/drivers/clocksource/Makefile >> @@ -16,6 +16,7 @@ obj-$(CONFIG_EM_TIMER_STI) += em_sti.o >> obj-$(CONFIG_CLKBLD_I8253) += i8253.o >> obj-$(CONFIG_CLKSRC_MMIO) += mmio.o >> obj-$(CONFIG_DIGICOLOR_TIMER) += timer-digicolor.o >> +obj-$(CONFIG_OMAP_DM_TIMER) += timer-dm.o >> obj-$(CONFIG_DW_APB_TIMER) += dw_apb_timer.o >> obj-$(CONFIG_DW_APB_TIMER_OF) += dw_apb_timer_of.o >> obj-$(CONFIG_FTTMR010_TIMER) += timer-fttmr010.o >> diff --git a/arch/arm/plat-omap/dmtimer.c b/drivers/clocksource/timer-dm.c >> similarity index 100% >> rename from arch/arm/plat-omap/dmtimer.c >> rename to drivers/clocksource/timer-dm.c > > Similar comments as in patch 3 about the file name at the top, and the > question about adding omap to the file name. I will go with timer-ti-dm.c following timer-ti-32k.c Hope that is okay. > > Also, I see that omap_dm_timer_get_fclk() is only defined for > !CONFIG_ARCH_OMAP1, but currently the function is declared in the header > file for both OMAP1 and OMAP2. You would want to inline that for OMAP1 > in the header file (we currently get away with it because no one uses it). Sure. > > regards > Suman > >> -- >> 1.9.1 >> >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-omap" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html >> >