From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751623AbdISPyn (ORCPT ); Tue, 19 Sep 2017 11:54:43 -0400 Received: from mail-pf0-f178.google.com ([209.85.192.178]:53616 "EHLO mail-pf0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750990AbdISPyk (ORCPT ); Tue, 19 Sep 2017 11:54:40 -0400 X-Google-Smtp-Source: AOwi7QBoLWJcqWolUCAos/5idSyqtZOmMkaFIE5jbCzZuhUt0iBkkhQIR1PSQiVn2yE/pFc1+atvBg== Subject: Re: [PATCH 1/2] clocksource: stm32: rework driver to use only one timer To: Benjamin Gaignard Cc: Rob Herring , Mark Rutland , Russell King - ARM Linux , Maxime Coquelin , Alexandre Torgue , Thomas Gleixner , Ludovic Barre , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linux Kernel Mailing List References: <1505375812-19037-1-git-send-email-benjamin.gaignard@linaro.org> <1505375812-19037-2-git-send-email-benjamin.gaignard@linaro.org> <9e5cae53-0a57-f2e9-cbb1-dde484619fca@linaro.org> From: Daniel Lezcano Message-ID: Date: Tue, 19 Sep 2017 17:54:37 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: 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 On 19/09/2017 09:59, Benjamin Gaignard wrote: > 2017-09-18 23:30 GMT+02:00 Daniel Lezcano : >> On 14/09/2017 09:56, Benjamin Gaignard wrote: >>> Rework driver code to use only one timer for both clocksource >>> and clockevent. >>> This patch also forbids to use 16 bits timers because they are >>> not enough accurate. >>> Do some clean up in structures and functions names too. >>> >>> Signed-off-by: Ludovic Barre >>> Signed-off-by: Benjamin Gaignard >> >> Hi Benjamin, >> >> I have a few comments below. Can you when reposting split this patch >> into smaller changes ? > > Not so easy because I change the way of how the hardware is used to be able > to provide clocksource and clockevent on the same hardware block. > >> >> Also, can you consider using the timer-of API ? > > Is it just about using TIMER_OF_DECLARE ? or do you have something > else in mind ? It is something else, see commit dc11bae785. -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog