From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752375AbcBHMKb (ORCPT ); Mon, 8 Feb 2016 07:10:31 -0500 Received: from mail-wm0-f52.google.com ([74.125.82.52]:32882 "EHLO mail-wm0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751327AbcBHMKa (ORCPT ); Mon, 8 Feb 2016 07:10:30 -0500 Subject: Re: [PATCH 6/9] ARC: clocksource: DT based probe To: Vineet Gupta , linux-snps-arc@lists.infradead.org, Alexey.Brodkin@synopsys.com, Noam Camus References: <1454410739-24444-1-git-send-email-vgupta@synopsys.com> <1454410739-24444-7-git-send-email-vgupta@synopsys.com> Cc: linux-kernel@vger.kernel.org From: Daniel Lezcano Message-ID: <56B885B2.6060408@linaro.org> Date: Mon, 8 Feb 2016 13:10:26 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <1454410739-24444-7-git-send-email-vgupta@synopsys.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/02/2016 11:58 AM, Vineet Gupta wrote: > - Remove explicit clocksource setup and let it be done by OF framework > by defining CLOCKSOURCE_OF_DECLARE() for various timers > > - This allows multiple clocksources to be potentially registered > simultaneouly: previously we could only do one - as all of them had > same arc_counter_setup() routine for registration > > - Setup routines also ensure that the underlying timer actually exists. > > - Remove some of the panic() calls if underlying timer is NOT detcted as > a fallback clocksource might still be available > 1. If GRFC doesn't exist, jiffies clocksource gets registered anyways > 2. if RTC doesn't exist, TIMER1 cetainly will take over (as it is > always present) > > Cc: Daniel Lezcano > Signed-off-by: Vineet Gupta May be it is time to move these drivers into the drivers/clocksource directory where they belong to. -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog From mboxrd@z Thu Jan 1 00:00:00 1970 From: daniel.lezcano@linaro.org (Daniel Lezcano) Date: Mon, 8 Feb 2016 13:10:26 +0100 Subject: [PATCH 6/9] ARC: clocksource: DT based probe In-Reply-To: <1454410739-24444-7-git-send-email-vgupta@synopsys.com> References: <1454410739-24444-1-git-send-email-vgupta@synopsys.com> <1454410739-24444-7-git-send-email-vgupta@synopsys.com> List-ID: Message-ID: <56B885B2.6060408@linaro.org> To: linux-snps-arc@lists.infradead.org On 02/02/2016 11:58 AM, Vineet Gupta wrote: > - Remove explicit clocksource setup and let it be done by OF framework > by defining CLOCKSOURCE_OF_DECLARE() for various timers > > - This allows multiple clocksources to be potentially registered > simultaneouly: previously we could only do one - as all of them had > same arc_counter_setup() routine for registration > > - Setup routines also ensure that the underlying timer actually exists. > > - Remove some of the panic() calls if underlying timer is NOT detcted as > a fallback clocksource might still be available > 1. If GRFC doesn't exist, jiffies clocksource gets registered anyways > 2. if RTC doesn't exist, TIMER1 cetainly will take over (as it is > always present) > > Cc: Daniel Lezcano > Signed-off-by: Vineet Gupta May be it is time to move these drivers into the drivers/clocksource directory where they belong to. -- Linaro.org ? Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog