Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753130AbdLHRuk (ORCPT ); Fri, 8 Dec 2017 12:50:40 -0500 Received: from mail-wr0-f196.google.com ([209.85.128.196]:43541 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753022AbdLHRug (ORCPT ); Fri, 8 Dec 2017 12:50:36 -0500 X-Google-Smtp-Source: AGs4zMZ+LSEg8yT1UeTPwxn0C21mdWIEAoO0wT+6HqNov5Zg0tsm8AfyTJgSSkVcGinArFxJl8au4g== Subject: Re: [PATCH v4 4/8] arm: OMAP: Move dmtimer driver out of plat-omap to drivers under clocksource To: Ladislav Michl Cc: Keerthy , tony@atomide.com, aaro.koskinen@iki.fi, thierry.reding@gmail.com, t-kristo@ti.com, linux@armlinux.org.uk, grygorii.strashko@ti.com, robh+dt@kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pwm@vger.kernel.org, sebastian.reichel@collabora.co.uk, linux-kernel@vger.kernel.org References: <1512105397-2544-1-git-send-email-j-keerthy@ti.com> <1512105397-2544-5-git-send-email-j-keerthy@ti.com> <20171208172031.GA4146@lenoch> From: Daniel Lezcano Message-ID: Date: Fri, 8 Dec 2017 18:50:32 +0100 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: <20171208172031.GA4146@lenoch> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1842 Lines: 50 On 08/12/2017 18:20, Ladislav Michl wrote: > Daniel, > > On Thu, Dec 07, 2017 at 11:54:27AM +0100, Daniel Lezcano wrote: >> On 01/12/2017 06:16, Keerthy wrote: >>> Move the dmtimer driver out of plat-omap to clocksource. >>> So that non-omap devices also could use this. >>> >>> No Code changes done to the driver file. >>> >>> Signed-off-by: Keerthy >>> Reviewed-by: Sebastian Reichel >>> --- >>> >>> Changes in v3: >>> >>> * Added Sebastian's Reviewed-by. >>> >>> Changes in v2: >>> >>> * No code changes in this v2 version. Only enhanced patch >>> statistics for renames. >>> >>> arch/arm/plat-omap/Kconfig | 6 ------ >>> arch/arm/plat-omap/Makefile | 1 - >>> drivers/clocksource/Kconfig | 6 ++++++ >>> drivers/clocksource/Makefile | 1 + >>> {arch/arm/plat-omap => drivers/clocksource}/dmtimer.c | 0 >>> 5 files changed, 7 insertions(+), 7 deletions(-) >>> rename {arch/arm/plat-omap => drivers/clocksource}/dmtimer.c (100%) >> >> Take the opportunity to rename it timer-dm.c > > seems the drivers/clocksource subdirectory contains what its name state. Yes, clocksource, clockevent. > However OMAP dual mode timers have also event capture capability, which > I'd like to use to measure pulse/space width and pass measured values > to IR protocol decoders. > Do you have any idea how to split code, so that event capture capability > could be used by other drivers? Not 100% sure but could be drivers/pwm, using the capture API. -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog