Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1331174

Re: [PATCH 6/9] ARC: clocksource: DT based probe

Path csiph.com!feeder.erje.net!2.eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Daniel Lezcano <daniel.lezcano@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCH 6/9] ARC: clocksource: DT based probe
Date Wed, 10 Feb 2016 14:40:03 +0100
Message-ID <r0D9V-2Ne-17@gated-at.bofh.it> (permalink)
References <qXGQH-1uV-25@gated-at.bofh.it> <qXH0l-1Rh-3@gated-at.bofh.it> <qZSXo-54t-13@gated-at.bofh.it> <qZT74-584-9@gated-at.bofh.it>
X-Original-To Vineet Gupta <Vineet.Gupta1@synopsys.com>, linux-snps-arc@lists.infradead.org, Alexey.Brodkin@synopsys.com, Noam Camus <noamc@ezchip.com>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=sRfIITsdBi3tenfkPn1tren09yz+Yf7NHq5LSk7/3e8=; b=kMW3kQA1S58Rugy1cIhgcNLxYBhpHv8WSt3Prk9Jn89QAY40NPIAsbocgkhq7pXxgY xQMMf8gZBFE20oO+9y8GGqkGwYBjy/lK6LrmUU9fmlKBV+OLnXarUZfkUwm9YdEvuJY+ 8HbOPvpZGlojK5Vc454zsEDdy5rUB7BIGlnA0=
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=sRfIITsdBi3tenfkPn1tren09yz+Yf7NHq5LSk7/3e8=; b=F2QJzpqGdBVMcww2kvTlFpKfmsdaTFhBkmWIomgM+dP0or+15Bjdh3pSf8E3+bYWQS 1VbDiCMnSkYfHRIX26uaulg2gpVkQBcy+l7xSWfF4IAMTkFAbcmLghPNg3mWm7ZqCboF x9Z6XPxRGLpjtclgLbyAKKDrBmjRK2wcT7+a+pECg34vipigpD+y9gmnMTLQQ06txBwS iAAveI6DxTaHbBj1dHQUTOGB3tdRzSTJOeUnbgg+es8xzFjYdJ2yJk5fWWOyDBR9FATC ujHh7uxjck2PCmoFXWv60hLpEvPT1OTBDmX3Ed8glgAAsk3XOt3JytjS5oOelO6X5EJ5 uv1w==
X-Gm-Message-State AG10YOS3z0vPXbLRELrjWek+CJwUJJ4vghZ8hNNHq2wKqWPhKnwnhUvst08E/2WH6jX9vw7h
X-Received by 10.194.240.66 with SMTP id vy2mr40162068wjc.28.1455111532501; Wed, 10 Feb 2016 05:38:52 -0800 (PST)
User-Agent Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Thunderbird/38.5.1
MIME-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 8bit
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 42
Organization linux.* mail to news gateway
X-Original-Cc linux-kernel@vger.kernel.org
X-Original-Date Wed, 10 Feb 2016 14:38:49 +0100
X-Original-Message-ID <56BB3D69.9000606@linaro.org>
X-Original-References <1454410739-24444-1-git-send-email-vgupta@synopsys.com> <1454410739-24444-7-git-send-email-vgupta@synopsys.com> <56B885B2.6060408@linaro.org> <56B888A8.5020306@synopsys.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1331174

Show key headers only | View raw


On 02/08/2016 01:23 PM, Vineet Gupta wrote:
> On Monday 08 February 2016 05:40 PM, Daniel Lezcano wrote:
>> 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 <daniel.lezcano@linaro.org>
>>> Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
>>
>> May be it is time to move these drivers into the drivers/clocksource directory
>> where they belong to.
>
> I suppose we could, but that is only possible after this round of "moderization",
> i.e. usage of CLOCKSOURCE_OF_DECLARE() et al.
>
> Plus the move will require a bunch of mechanical crap such as read_aux_reg() which
> only ARC defines (similar to headaches Noam had for his clksrc).
>
> So if we could agree on the sanity of this round of changes, I can work towards
> the imminent move into drivers.

Ok, sounds good.


-- 
  <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH 6/9] ARC: clocksource: DT based probe Daniel Lezcano <daniel.lezcano@linaro.org> - 2016-02-10 14:40 +0100

csiph-web