From patchwork Mon Oct 23 09:58:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 116661 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp4451682qgn; Mon, 23 Oct 2017 02:59:41 -0700 (PDT) X-Received: by 10.98.32.206 with SMTP id m75mr12917945pfj.231.1508752781580; Mon, 23 Oct 2017 02:59:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508752781; cv=none; d=google.com; s=arc-20160816; b=nXCmh/In2i6yPhH3tdXp4+kRnKANNU5nv2TtK7HDUqasiHsKg7TCKiblbep57TKQrL xcdwisbOvTNBZ3pcvFHGsNmishFMyJvO2EeRS286lVQnNIn/brnZkbDj2VgL3BhNddH0 VAXfDiLH396OBI0Je4iE3MA2vnFvZt/dOwMvbU/M3cMUSbuDwZjGFEweWR2jVC1/zt0q w3j0AkCNUNiYwMp/MmCjPiGyEmMxRmFbKXJrJTv+qblu6P+G6FQ4pcfnLjn5y2xXZp3k YofsXO0awdaz1772HoyyiIVlfxr5xxr/4FHbFng2xl7hSuqA/v/y4hfpILJB6h5M0JZE v/Qg== 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=cGSJ04PSskpVOW+fm03aPAmQ+2ZZKqEGNfTfgbVRS+k=; b=jpnsaQc773oFjNQpDXkBFoAycwgkMYeoeTRn85ZEphhvDBMoz5dWf6MPFXlAG7Lk3h isrSgQvmcSAmROJLzod6WL3X8wpa/R8XNHv3A5Ef4WHgbMiz/MkB1bKNtly2gkvlgvl9 zxK3Gzm7VVozDa7X7ElaauYwKT0PlWPlIe05wNKo/1xv+bxBdLCc44ZyDClEh24VNSj2 bDMcg05nNh0SaPEz7m8yAU1QCMSOm6NYHVam70yzXo4B8UwjT3DmDhu3g6t3l4aIRmaE +7U9By9YmkDfAmEgc7a0uY0sqerEOuqU0PhJSzV1s1Ir1iBJb9iX/WtMjSiEUvViOS58 1N7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=cYCvlKFd; 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 h1si3788831plk.624.2017.10.23.02.59.41; Mon, 23 Oct 2017 02:59:41 -0700 (PDT) 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=cYCvlKFd; 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 S1751272AbdJWJ7k (ORCPT + 6 others); Mon, 23 Oct 2017 05:59:40 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:56592 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751150AbdJWJ7j (ORCPT ); Mon, 23 Oct 2017 05:59:39 -0400 Received: by mail-wr0-f195.google.com with SMTP id r79so16713087wrb.13 for ; Mon, 23 Oct 2017 02:59:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=SrarpdDyr28Ks/uhTWxwPBy9IfopeD+pR8KO3odxca0=; b=cYCvlKFd8PEns00Dn4Wzoiyhr7aGKuI86z8pNynBcnnLsSPOFEeqbCQe6YWcqp+UEn uEozl2xT/hdATakWXPP1BTADRSn0AFaWZrI2zTyt6+wwK+BWpCOPez00Dk33zzwE6yi4 VRBM1DF5pAfkdySV5/W9M6hY68MUZwM3FWRtI= 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=SrarpdDyr28Ks/uhTWxwPBy9IfopeD+pR8KO3odxca0=; b=ZyVV0RQyGKOUfrZOI9S4ok4kGEpmJJTURb4tHCkvhk9BIuAcQihBQxzjLZ0D5LALcY CoHE3AqEgsk/G5scWIpVV4gUx5I6UY7+y6oKQquB84EWvOIWM7IhE1gvJN5ToHf+jbuC d/bW9ucktyXeINjx6C66iC6DwKrowkNrSChL8TTLJRJPn8jywid4OKmnu462//m14AfX 14A0QriZfKieoFgpf2Qe1AIhnAh+LLB9mXALexXv7JvAUNYx9yHY0LHUcSSTyNSy/K42 bSoMAFvGJrPEwlPu/m3I8+xJ0FZt1IErt6md5rUJnpoNa4uk9rTYW0mU0tgQ/obYb5T5 wo6Q== X-Gm-Message-State: AMCzsaXYolvb+OMKNZf67HNg16KT220cmuv3SAPPR0il7CuzSZ6lXxmp 9dx9D+2sWsVD+gkN71wGe0me+A== X-Google-Smtp-Source: ABhQp+TtoMS52nYLpHuLmFPZM3Dy0LaoQ4aBbjSh7ELSvu4JGHmBi2rZSVPKI45+sEuSQOZEQ558RA== X-Received: by 10.223.155.208 with SMTP id e16mr840882wrc.161.1508752778110; Mon, 23 Oct 2017 02:59:38 -0700 (PDT) Received: from lmecxl0911.lme.st.com ([80.214.127.33]) by smtp.gmail.com with ESMTPSA id q188sm3626900wmb.43.2017.10.23.02.59.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 23 Oct 2017 02:59:37 -0700 (PDT) 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 Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Benjamin Gaignard Subject: [PATCH v7 0/6] stm32 clocksource driver rework Date: Mon, 23 Oct 2017 11:58:36 +0200 Message-Id: <1508752722-4489-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 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): timer: add timer_of_exit function 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 | 12 ++ drivers/clocksource/timer-of.h | 3 + drivers/clocksource/timer-stm32.c | 241 ++++++++++++++++++++------------------ 6 files changed, 144 insertions(+), 177 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