From patchwork Tue Nov 14 08:52:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 118856 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp2784389qgn; Tue, 14 Nov 2017 00:53:20 -0800 (PST) X-Google-Smtp-Source: AGs4zMYuqL3KiufhF9RFQRtYuLFc5HL3IzwQ5My3GKZwgeLfZCvXXrQoYS/QMBRu+G419EDO8AqR X-Received: by 10.159.234.68 with SMTP id c4mr11612426plr.52.1510649600318; Tue, 14 Nov 2017 00:53:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510649600; cv=none; d=google.com; s=arc-20160816; b=WCDdB8KCK4VIpx0NLUhalgwBPWrlbqFXrvRBqi/pSKnwWwVV/wbbXKAC6TAUGVzzPo NnuwTheRlQhDM696zgrrJ3LqRO38RQLOlOZUt69WlUY2sXv9/EGcAZXfCtz7HAEYziED YyYE5GW5hDhp6DVNhNvvWJ/vzcLhvB2Etw0SKAD1DJ13btRYz9RpeK2cOrfDy5Jk0b9i OrQo8K7eLs7WRehW+n7frdec65iHeFdPEuEMgEs0UN/yFmb2pLhqtKZHYy6wuQICrj3B eXSB+ygh5ZE6CZcyJc5LRYJ4Gsb31RulhD5c2hjmAtH5swdDG2Bc/X4lH+3w5+xhDbve +Spg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=+elCJ3txKGgKgqJr1NpaemEWJEU274vuquXfBtUhZ/c=; b=RYTPWDyA0C3PD5SZJCdAaXrBDadiaSK/66XZoI7Pn9Z1ilFZUmiWeeiljhsBTQXi/g Fps7NdXsr2uQpJ4JC9oHP9j/ksUnbeYsTxannGIYK/Euq6AJu7kCBMZpQUuaqpsWBsWR Bn/rlQbt2GLmGJQWAvRNFse84465miMQ77ro63P8r1rPg3w1P3tkD7e5+06M6rs4lecn vDtD51cTDFjzCAufqOfL/Jteg68HryjDrXieLvRfVH1YX4mWnii+yCnBF4731pQwm68W ohTvRJZTBWHdC2AK8t8SgnIRoNRHOezYg7Nr2frFoDGvLATaTAI9AWX/Y4YBXBkcwbAm 2kqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=KOw4zd9n; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u18si16975453pfk.328.2017.11.14.00.53.20; Tue, 14 Nov 2017 00:53:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=KOw4zd9n; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753103AbdKNIxS (ORCPT + 6 others); Tue, 14 Nov 2017 03:53:18 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:51610 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752945AbdKNIxR (ORCPT ); Tue, 14 Nov 2017 03:53:17 -0500 Received: by mail-wm0-f66.google.com with SMTP id b189so13386042wmd.0 for ; Tue, 14 Nov 2017 00:53:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=K1R6K8x1CK4MIUCSUPYJBOkoIjOUnPeIySKsSh/JbMQ=; b=KOw4zd9nShytCfbbGryOyOb+SpRKYLI0tCao6TG8D8gZQoTeRDrYjW2YdfMzBUYy6z Z7KqwJarFbKJdnwjlNhbAuOrK+0x2MwmVylsRCnOvvrGnrqQmDB5ljbT0USGVQY69LJl 43Ta0ZmCcUvXW+R1dKAbDG1da3pjkK2r2k304= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=K1R6K8x1CK4MIUCSUPYJBOkoIjOUnPeIySKsSh/JbMQ=; b=rGDJwjumWSJc+jSN5Dxxw0LeDb1EJYgDXOwx2rzQLgJyJcMof9K/lBr5lz3GQnCU/t R+YHLAOV1IMJ7z/GBnFjq4+vxtg75lqz2l6i9w/VzEWiZNO0+ShOV+incImdy/3c3q2+ h2q6eLx1gEk0oI2en+j7PK4C2JYzqohJW44+7w6qzbWVqOscokDQQ+S8aHn4h7vFK/Yu iFu4cxRfBR2cXsvWhGO5CYjmLm3ZdBowkaym6+jqQXItx1WGkzCbbc2nLxJpsbP1puMI vaaqkAB7pe11FMxAUmtpIqGHG02+WEdW1OekPeNEdagtEGEBLS0dd+vqgozwYLoYRU2F WWxQ== X-Gm-Message-State: AJaThX6aBPhhAG3CA0SdGV0M3IV0fezL/gr1ebqO6FrLbU8b4qdMQV43 MMDCFPDMgOafrs33D4HA+HtKMQ== X-Received: by 10.28.150.144 with SMTP id y138mr8675932wmd.145.1510649596582; Tue, 14 Nov 2017 00:53:16 -0800 (PST) Received: from lmecxl0911.lme.st.com ([80.215.205.30]) by smtp.gmail.com with ESMTPSA id g28sm22894551wra.31.2017.11.14.00.53.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Nov 2017 00:53:15 -0800 (PST) From: Benjamin Gaignard To: robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, daniel.lezcano@linaro.org, tglx@linutronix.de, ludovic.barre@st.com, julien.thierry@arm.com, sudeep.holla@arm.com, arnd@arndb.de Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Benjamin Gaignard Subject: [PATCH v8 0/6] stm32 clocksource driver rework Date: Tue, 14 Nov 2017 09:52:37 +0100 Message-Id: <1510649563-22975-1-git-send-email-benjamin.gaignard@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org version 8: - rebased on timers/core - change timer_of_exit() name to timer_of_cleanup() - update stm32 clocksource driver to use this function version 7: - reword "clocksource: stm32: only use 32 bits timers" commit message to give more details about why 16 bits are problematics. version 6: - add dedicated patch min delta change - rework commit messages, I hope it will be better now - change new function name from timer_of_deinit to timer_of_exit - make stm32_clock_event_set_next_event() safer like done in other drivers version 6: - add timer_of_deinit function in core - rework failure cases in probe function version 5: - rebase on top of timer/core branch - rework commit message of the first patch version 4: - split patch in 3 parts - convert code to timer_of - only use 32 bits timers - add clocksource support version 3: - fix comments done by Daniel - use timer_of helper functions version 2: - fix uninitialized variable Benjamin Gaignard (6): clocksource: timer_of: rename timer_of_exit to timer_of_cleanup clocksource: stm32: convert driver to timer_of clocksource: stm32: increase min delta value clocksource: stm32: only use 32 bits timers clocksource: stm32: add clocksource support arm: dts: stm32: remove useless clocksource nodes arch/arm/boot/dts/stm32f429.dtsi | 32 ----- arch/arm/boot/dts/stm32f746.dtsi | 32 ----- drivers/clocksource/Kconfig | 1 + drivers/clocksource/timer-of.c | 9 +- drivers/clocksource/timer-of.h | 2 +- drivers/clocksource/timer-stm32.c | 242 ++++++++++++++++++++------------------ 6 files changed, 138 insertions(+), 180 deletions(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html