From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753526AbdLHNqk (ORCPT ); Fri, 8 Dec 2017 08:46:40 -0500 Received: from mail-wm0-f49.google.com ([74.125.82.49]:42669 "EHLO mail-wm0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752990AbdLHNqh (ORCPT ); Fri, 8 Dec 2017 08:46:37 -0500 X-Google-Smtp-Source: AGs4zMZf/Wv/PNBcX5LcsPsPZDdS7GfkBIejmtJZrIOdFSLMlziuHQOmDDUNHB2pKzQWFQHpxpjkQA== Subject: Re: [PATCH v9 4/6] clocksource: stm32: add clocksource support To: Benjamin Gaignard , robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, tglx@linutronix.de, arnd@arndb.de Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Benjamin Gaignard References: <20171208113250.359-1-benjamin.gaignard@st.com> <20171208113250.359-5-benjamin.gaignard@st.com> From: Daniel Lezcano Message-ID: Date: Fri, 8 Dec 2017 14:46:34 +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: <20171208113250.359-5-benjamin.gaignard@st.com> 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 08/12/2017 12:32, Benjamin Gaignard wrote: > The stm32 timer hardware is currently only used as a clock event device, > but it can be utilized as a clocksource as well. > > Implement this by enabling the free running counter in the hardware block > and converting the clock event part from a count down event timer to a > comparator based timer. Split this patch in two: - periodic support - clocksource support -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog