From patchwork Mon Sep 18 09:02:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 112866 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp3429205qgf; Mon, 18 Sep 2017 02:02:25 -0700 (PDT) X-Received: by 10.84.217.29 with SMTP id o29mr27800542pli.216.1505725345875; Mon, 18 Sep 2017 02:02:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505725345; cv=none; d=google.com; s=arc-20160816; b=uCiDu4MWYzjdl6TBR+Ldz2qOfG7f5VKKZassyJPT7GN+gw+bzx3pSP6rqadyzNoeH+ uh8ja/Gxt6zMrmwoyEmA/exS/DKIsEhK29rLM6wk2oVaF96nNvk2RVMjMakgeLgXeY1J R0fjW9ZqKzP6Ja7TYrhQj/VULiqeKIhJB7es30U24MrtuF/ehn96aUoqmGVNvFi/QsJ8 vsF9bzW+K7s1+teqz0cbBnbq+WnGF/sTY2r27/xWb48lTXgJ+5SmHtdtRkuFnxi/U049 PQa40iTikDHDVfHETGEOcMG2ivmfHctQFia4yLEXup/QrmgKUK/D8as4lHQYa2y6jOul jWwg== 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=w9lLAkNOSeCVVZh/Qh5wy1Nq8N6Q2nP6NZaHGYVMR2w=; b=QcNtU3ZA6Gg3aCKQA1iQDSYpA+zBDuL6oFUfi6iwcg5M1dQSxSZuqlLtzDkEu8XYD0 AX/Psex2EsvftKuU8Qy7YJfVs57hEGDZEUTqzZD1sV2xIbRJpDLee+ldbXbo58B4g4wq L1pHSmKzGh3t93Fagy3yy/4lhwldpo39b/Ovy0RGCioKUQSrlWzgcRs/NYVEDlYOQUc4 l8s4oIb7mSytyS/Z/R0NczDiO9/xv6qKghAQTlg0diEHFTQFmQ4cb/artyF7mdwMAubG YzbAC/TmhqVnhKHYvdEAswvmZc3UA/qhTDn2zKJNxjHU7xiQP2MouWdgE6lbqV+E4LxB /g+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=U4Mer/3l; 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 o26si4178437pfk.357.2017.09.18.02.02.25; Mon, 18 Sep 2017 02:02:25 -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=U4Mer/3l; 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 S1752581AbdIRJCY (ORCPT + 6 others); Mon, 18 Sep 2017 05:02:24 -0400 Received: from mail-wm0-f42.google.com ([74.125.82.42]:49161 "EHLO mail-wm0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751001AbdIRJCY (ORCPT ); Mon, 18 Sep 2017 05:02:24 -0400 Received: by mail-wm0-f42.google.com with SMTP id e71so620517wmg.4 for ; Mon, 18 Sep 2017 02:02:23 -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=BEymHhoj3xji+FDR5rCDdD1b3N+quHCRWro/WsyCbIM=; b=U4Mer/3lkgK6NvLmNZkqE0ygIMeTZF0bBs4ACeRmIilJXQ3YR+SgSWKs2nHDFB6a+u YalkfPgjcRQbebtZLE8LgZ3pFHTPzbDJtxnd7XiWRFPAjhEvIQFsY8BrF3ZsvZ4Gwkz7 np0PZmljiNlIR8PdDAKnKp+Bm2UzSJinn91DA= 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=BEymHhoj3xji+FDR5rCDdD1b3N+quHCRWro/WsyCbIM=; b=TE1Zpa3+vaAP2Ol6ukyUbjnaRkg3epEIER3qlnmRMTTI8MTFHiwgAHxsp/rKDLGLQB RshfLY0Gntl8KrvHqP106+hMvdbq/b4muGNss0aEY4EiJtpvbtXZWc5/5m4NbWzfEzws Hce75bXP+0NPkmdMgLk83KZH+NikR6fCkyF17MR5XnmTGaj313Cqo83AKAOSOS53Gewo QyjvqCTtW7lcvcDuJ09udJ+XbhdIdrH9xcNRJaalv9JriF65kbrG7ZMXdCKqV3U4kGjT FVgEx5EreZJ0fIS0KgTedUsX4AB1e5yaStACoPYqAZAaE6AY7vbbjkpG3jK0iTyF3ym7 6tOg== X-Gm-Message-State: AHPjjUi2m6ABwkrtGphgQ2A6w9Y7kcNREVjzdnOCwbDnyu0yq3U44MUd BB9dtnq7XMZEFDhr X-Google-Smtp-Source: AOwi7QB9zdYAqI4RJDqqimRQsAEd/jVcLkA1lir6Q3pgp2nxkKYrx3Gsovq38hSCin8kXFh6gAKCqg== X-Received: by 10.28.153.85 with SMTP id b82mr7403948wme.121.1505725342857; Mon, 18 Sep 2017 02:02:22 -0700 (PDT) Received: from lmecxl0911.lme.st.com ([80.214.127.140]) by smtp.gmail.com with ESMTPSA id p80sm6201554wmf.42.2017.09.18.02.02.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 Sep 2017 02:02:22 -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 Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Benjamin Gaignard Subject: [PATCH v2 0/2] stm32 clocksource driver rework Date: Mon, 18 Sep 2017 11:02:13 +0200 Message-Id: <1505725335-27081-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 2: - fix uninitialized variable These patch implements clocksource and clockevent by using only one hardware block. It also limits usage of clocksource to 32 bits timers because 16 bits ones aren't enough accurate. Series includes minor clean up in structures, function prototypes and driver name. Since 16 bits timers become useless it also removes them from stm32f4 and stm32f7 devicetree. Benjamin Gaignard (2): clocksource: stm32: rework driver to use only one timer arm: dts: stm32: remove useless clocksource nodes arch/arm/boot/dts/stm32f429.dtsi | 32 ----- arch/arm/boot/dts/stm32f746.dtsi | 32 ----- drivers/clocksource/timer-stm32.c | 259 +++++++++++++++++++++++--------------- 3 files changed, 155 insertions(+), 168 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