From patchwork Mon Aug 26 20:43:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 172199 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp4862422ily; Mon, 26 Aug 2019 13:44:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqyMw9U20WkxB9HyG5mRgi+iMrqeRju0gpGsQ9Cpof4/Zzd8ZriOjA6ZBKN5VNsoKssCjWGB X-Received: by 2002:a62:db43:: with SMTP id f64mr23007231pfg.38.1566852283107; Mon, 26 Aug 2019 13:44:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566852283; cv=none; d=google.com; s=arc-20160816; b=yacvCoGkNPKgnbGl6VC7wIfTY67nVmlxEPT0/iWjhRqgh9962wqqimXMg31Lfxxtrb npEn4VaF2kH3vP/U+EngMairQ5TDG97vHhw/phy8B7Ngj4fa6GCzXxC9NgPAuP0ppMRn 13jCI89ybUQL08VLuYvHWY4vXlbr11RBAwu7woBiP/kqe63koO1DDnreCJtkeNF31iMq smRHDUCChDb/SlPhEfr5QM/Y5cojJqucGx9otfJIog0LGwxMnOp8uxT3yuxsQT5stYxo dnpZ2lPC84Ajp3PuBR5bP5DhXEuOqtc6tYTqYTSXvP/WeqyycqQtMmzCLTULvqDvorvQ fcyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=Qsyqwo/7IzN3JSHEHiK8TRXncaQG6D+RLJ1heXtDIs0=; b=gxkTfMOrMD44BOGw657Fe08AVmGk/1IeZxidC3pj7gd5DHBViSbhXOwsm5dPnTf4DB TBYh9k2/UqqKjhnZxqJM5h7vXOP5yZpR4WR7oB9n7gRUmur79JxRClkqSTAq7dXQ+ieA 2NtQSlGdLcknPpHAjGTKUEMJeuhyty19eR2FgvXzetEc1+X2NGUZygvYgFUD4PIApYvl O2E9bMvpmgbOCZ41EkQ7bOAPh2fN6YW7Zn1sxIx07Kw72LPdu9ckb6hCSe8fKHIhVEzl ww9tXQGUPMku3mQpLYbe3+emE6r2puaJJR0aiauyQraKCBsDLL3/iM2asoLoW5mVORoQ 5eCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fvJVE2Ds; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (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 k12si10392636plt.92.2019.08.26.13.44.42; Mon, 26 Aug 2019 13:44:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fvJVE2Ds; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730418AbfHZUol (ORCPT + 28 others); Mon, 26 Aug 2019 16:44:41 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:46128 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727041AbfHZUol (ORCPT ); Mon, 26 Aug 2019 16:44:41 -0400 Received: by mail-wr1-f68.google.com with SMTP id z1so16584957wru.13 for ; Mon, 26 Aug 2019 13:44:40 -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:in-reply-to:references; bh=Qsyqwo/7IzN3JSHEHiK8TRXncaQG6D+RLJ1heXtDIs0=; b=fvJVE2DsN4hPUHTHlqLGnsV7U//T7wLenuDI4BZlpfMSSPF2NCpNCccfjhg05pUtkU LQQla8rZQUNfdu4RAUa+pwxR8yx7gINvMIwo41b8ADw2XKkcrLE1iqs3GUu7WinwFvyp ZE4l8/40dTHBGLLhXBfPnKQiqxhLAU6L06RG96VU2nMXsBYAe0oixZpa6XVmVL9yd8pT fx+Unu+WbbMScX5dMW3CLn86cWmU6cpxxkfWaJhn3PdftvmB11+QjCYu61WtNCl5jsvZ 3KRyXDIwtkFFI/0AiBT6nM+AWVZugqplcI8aeRpGgNkUB8jJpmnBr7Ul/PIsQhaB3Xgs BmgQ== 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:in-reply-to :references; bh=Qsyqwo/7IzN3JSHEHiK8TRXncaQG6D+RLJ1heXtDIs0=; b=FwEuEBWFAKYbaRQVHjEwbT4kJNRoF09gqJrBn8o1gCKPWvAl7dx29eBDBJSusvQK2V XDp/K3uXduJVflbnLJb0wBquP/QdeqIvTtQYNd9+Hav0fuM107XNvOsHg3yDTuArY0Us FrO+Tpu5TJNlHJ/rg9wmBbuRYUP0yYI9/U1VTbSXJYvthScqb7nzrL+yUAwVb0B9nlXe sTaR9xAI1sgMCYqQuon53F4e8VPTch0Gd+gVP0uxX4wpatlXY21SXDWjHqKlaHcK/NrC 843bE4Kc2uzixJlmBjtCD6EWM0dE2GoaKroc0iFjFOZelMx/11BbQXNmUK1qBZVMCQl9 mBhQ== X-Gm-Message-State: APjAAAUn9GHhblHqymqAZcWMM1c2l5YamYgtFso/u8z4XYFyeu73WeS/ qJODXEypMQCgZ0v4HDu1OWYmeKOtWCg= X-Received: by 2002:a5d:4cc5:: with SMTP id c5mr23365381wrt.278.1566852279372; Mon, 26 Aug 2019 13:44:39 -0700 (PDT) Received: from mai.imgcgcw.net ([2a01:e34:ed2f:f020:f881:f5ed:b15d:96ab]) by smtp.gmail.com with ESMTPSA id 20sm549557wmk.34.2019.08.26.13.44.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2019 13:44:38 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, Stephen Boyd , Greg Kroah-Hartman Subject: [PATCH 01/20] clocksource: Remove dev_err() usage after platform_get_irq() Date: Mon, 26 Aug 2019 22:43:48 +0200 Message-Id: <20190826204407.17759-1-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Stephen Boyd We don't need dev_err() messages when platform_get_irq() fails now that platform_get_irq() prints an error message itself when something goes wrong. Let's remove these prints with a simple semantic patch. // @@ expression ret; struct platform_device *E; @@ ret = ( platform_get_irq(E, ...) | platform_get_irq_byname(E, ...) ); if ( \( ret < 0 \| ret <= 0 \) ) { ( -if (ret != -EPROBE_DEFER) -{ ... -dev_err(...); -... } | ... -dev_err(...); ) ... } // While we're here, remove braces on if statements that only have one statement (manually). Cc: Greg Kroah-Hartman Cc: Daniel Lezcano Cc: Thomas Gleixner Signed-off-by: Stephen Boyd Reviewed-by: Geert Uytterhoeven Signed-off-by: Daniel Lezcano --- drivers/clocksource/em_sti.c | 4 +--- drivers/clocksource/sh_cmt.c | 5 +---- drivers/clocksource/sh_tmu.c | 5 +---- 3 files changed, 3 insertions(+), 11 deletions(-) -- 2.17.1 diff --git a/drivers/clocksource/em_sti.c b/drivers/clocksource/em_sti.c index 8e12b11e81b0..9039df4f90e2 100644 --- a/drivers/clocksource/em_sti.c +++ b/drivers/clocksource/em_sti.c @@ -291,10 +291,8 @@ static int em_sti_probe(struct platform_device *pdev) platform_set_drvdata(pdev, p); irq = platform_get_irq(pdev, 0); - if (irq < 0) { - dev_err(&pdev->dev, "failed to get irq\n"); + if (irq < 0) return irq; - } /* map memory, let base point to the STI instance */ res = platform_get_resource(pdev, IORESOURCE_MEM, 0); diff --git a/drivers/clocksource/sh_cmt.c b/drivers/clocksource/sh_cmt.c index 55d3e03f2cd4..f6424b61e212 100644 --- a/drivers/clocksource/sh_cmt.c +++ b/drivers/clocksource/sh_cmt.c @@ -776,11 +776,8 @@ static int sh_cmt_register_clockevent(struct sh_cmt_channel *ch, int ret; irq = platform_get_irq(ch->cmt->pdev, ch->index); - if (irq < 0) { - dev_err(&ch->cmt->pdev->dev, "ch%u: failed to get irq\n", - ch->index); + if (irq < 0) return irq; - } ret = request_irq(irq, sh_cmt_interrupt, IRQF_TIMER | IRQF_IRQPOLL | IRQF_NOBALANCING, diff --git a/drivers/clocksource/sh_tmu.c b/drivers/clocksource/sh_tmu.c index 49f1c805fc95..8c4f3753b36e 100644 --- a/drivers/clocksource/sh_tmu.c +++ b/drivers/clocksource/sh_tmu.c @@ -462,11 +462,8 @@ static int sh_tmu_channel_setup(struct sh_tmu_channel *ch, unsigned int index, ch->base = tmu->mapbase + 8 + ch->index * 12; ch->irq = platform_get_irq(tmu->pdev, index); - if (ch->irq < 0) { - dev_err(&tmu->pdev->dev, "ch%u: failed to get irq\n", - ch->index); + if (ch->irq < 0) return ch->irq; - } ch->cs_enabled = false; ch->enable_count = 0; From patchwork Mon Aug 26 20:43:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 172201 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp4862525ily; Mon, 26 Aug 2019 13:44:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqyh2g8eR5ufVRknty4jN03PJYt3mr/gCOepvjl/EAXQh0MT4HfHlFIjJdSYndvvTuxCz1t4 X-Received: by 2002:a62:7641:: with SMTP id r62mr21324025pfc.201.1566852289593; Mon, 26 Aug 2019 13:44:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566852289; cv=none; d=google.com; s=arc-20160816; b=LRNUaXNRdtOswYssTVjdWoWTpUO0ZdI2KGaAWSAh6GQee03pTLBeCMEhI7rwq1O07H 81BI4yieegmQIwVRp8R3EMlyQtvFTj9HKqNXWGZJJnTBZEX5Kq2L9/t3BpweXw6Jm1BO NSpKFaG5d/yOjDhZRfz3qV4erKwb69EXlj45QcY4p26pWzqNmP/rlIJSx6dF9cg7tCa0 RDEg0oO6WBXzOZPPOVpldw/k/M9scNBhd1yWd8m4o/3DfqSQ75rk/g0UNaqPQUDWuoSm 5h4v3avwIoopFgyYT4IVn2ir0kMNGCzEmD814d2sCWhdoSfCXz+zoxIScy/vuRChu0ca poPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=E/rktgRZOj4ajpikVv+crFkgra/A+VXyEZXp2OkGiIA=; b=lOR/6DPnm16lhIfZkOtYU1Y1ZLPcxL19U8rutYc/6Kd4B4X2leHAUYbEF9nd9nplzt PQ2D6MY78V7aeqhKF6/LmOzdhBLWiJbiM3l+deHMFZ5SX0pxw9G3VwbbSZ5vcuqoubw+ WOgVqBkQzUItPAKysKkNky8kGs0qp1HpXl+qZQpikOTZNF3OG5RV931BxgpX/839t3VT XCWGuvRSREaLISbIJn8w93aRXIupFyM1gie7TSnWjhOZ9f14v6TP4CX3FnNFOEBed3h9 UD8CAmiP8r/TtFPH96r2YwbJ6K6WWr4lEpBq7L004DUiju5L4aDTcfN2tK8TRr2lzMzD +C/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vFprOVQg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (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 g13si10137082pgp.405.2019.08.26.13.44.49; Mon, 26 Aug 2019 13:44:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vFprOVQg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730623AbfHZUos (ORCPT + 28 others); Mon, 26 Aug 2019 16:44:48 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:35520 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730446AbfHZUoq (ORCPT ); Mon, 26 Aug 2019 16:44:46 -0400 Received: by mail-wr1-f67.google.com with SMTP id k2so16604625wrq.2 for ; Mon, 26 Aug 2019 13:44:44 -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:in-reply-to:references; bh=E/rktgRZOj4ajpikVv+crFkgra/A+VXyEZXp2OkGiIA=; b=vFprOVQgqZZeaPGJRKWqtJlyJWWYc41QHKy3hDxXhTuDk2oleQKX7dQolHl7/Oxuru 5hkxV/8bVU6PBNELYJclSf2uFdJbSDT3kbZdZZFx7oCl8Y2hQ5eX6vS4a0MJkOxOrdj0 6WIsVdZZx+C1dr5WnFF16NeyqAi2Oclo02KxSKJ3ShiuCOXP02Y5Vwo91UuO0voT8DZ0 rGsFr9zu2P4Qt+H+BlZUhItrQu+SEO/H2H7t0hOKKwc7zY+uxXrBeG/+KopHS5j63Tbf zc6OmQktG7Q6E5Oj5EnTVV3DUm51dcEipqvTf9NuLebRYDVlOwVFKrvblaQz/WTIo58a /36g== 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:in-reply-to :references; bh=E/rktgRZOj4ajpikVv+crFkgra/A+VXyEZXp2OkGiIA=; b=Gx3HMuPdhBh7ZSjimhxba1cuVHA+7mSJsh0sBXy/oYUW5zcyr/tB2KJTuSbQXf3cl/ 2ioM/te/OcyxeHCzw3b2jeajJde8B1w8g0ifz/nLa3NWPZlWkM1hgZQ/4IeYwU92y6ki gGySlNfBO3xCSGHHiHh+zd0SXwnJM1o01v1wjEuk13NYt7jYSdNAFm5jJM/uHmTSuPg8 VmSWstntHxr3BgJ41aLQuX7NORyxbLs7+kIx7/uKoluT3pRYOtW0CBRrjHVe1W5/ps5E c6//SL+STOvGKDiGUA/D+qa4G700BE6FsqyPJdQG+rSLEo2Pr10VTdt9OykeOnYpK1o3 HJZg== X-Gm-Message-State: APjAAAXQ9hxfDwtj+ohnxKhjn5ma51FOq1nQ0Sdk2vpz/xk9p1bMn0u2 oBrnV+man7d4Llrnigpn0mn4cg== X-Received: by 2002:adf:9e09:: with SMTP id u9mr24766472wre.169.1566852283910; Mon, 26 Aug 2019 13:44:43 -0700 (PDT) Received: from mai.imgcgcw.net ([2a01:e34:ed2f:f020:f881:f5ed:b15d:96ab]) by smtp.gmail.com with ESMTPSA id 20sm549557wmk.34.2019.08.26.13.44.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2019 13:44:42 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, Maxime Ripard , Rob Herring , Mark Rutland , Chen-Yu Tsai , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-arm-kernel@lists.infradead.org (moderated list:ARM/Allwinner sunXi SoC support) Subject: [PATCH 03/20] dt-bindings: timer: Add missing compatibles Date: Mon, 26 Aug 2019 22:43:50 +0200 Message-Id: <20190826204407.17759-3-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190826204407.17759-1-daniel.lezcano@linaro.org> References: <20190826204407.17759-1-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Maxime Ripard Newer Allwinner SoCs have different number of interrupts, let's add different compatibles for all of them to deal with this properly. Signed-off-by: Maxime Ripard Reviewed-by: Rob Herring Signed-off-by: Daniel Lezcano --- .../timer/allwinner,sun4i-a10-timer.yaml | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) -- 2.17.1 diff --git a/Documentation/devicetree/bindings/timer/allwinner,sun4i-a10-timer.yaml b/Documentation/devicetree/bindings/timer/allwinner,sun4i-a10-timer.yaml index 7292a424092c..20adc1c8e9cc 100644 --- a/Documentation/devicetree/bindings/timer/allwinner,sun4i-a10-timer.yaml +++ b/Documentation/devicetree/bindings/timer/allwinner,sun4i-a10-timer.yaml @@ -14,6 +14,8 @@ properties: compatible: enum: - allwinner,sun4i-a10-timer + - allwinner,sun8i-a23-timer + - allwinner,sun8i-v3s-timer - allwinner,suniv-f1c100s-timer reg: @@ -39,6 +41,30 @@ allOf: minItems: 6 maxItems: 6 + - if: + properties: + compatible: + items: + const: allwinner,sun8i-a23-timer + + then: + properties: + interrupts: + minItems: 2 + maxItems: 2 + + - if: + properties: + compatible: + items: + const: allwinner,sun8i-v3s-timer + + then: + properties: + interrupts: + minItems: 3 + maxItems: 3 + - if: properties: compatible: From patchwork Mon Aug 26 20:43:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 172218 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp4863842ily; Mon, 26 Aug 2019 13:46:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqz2tpcjVfB6qKznf6F0c1dZlmCmC7OKOnYs1YTHdGwKti07HmnyzwQm/Dra3aP2UC4tVIx8 X-Received: by 2002:a63:2157:: with SMTP id s23mr18611115pgm.167.1566852361039; Mon, 26 Aug 2019 13:46:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566852361; cv=none; d=google.com; s=arc-20160816; b=FEAfA6vacAy/+k/EOeQ/LPJR/tJZINm8KSPkugAcwXPwM2aS7swP01Zl6XrHR4syQS k9i7zCJ6IiAQnGr7xt7eCwmw/uWyVOX6W7aa5RrT9c0PGwT23LeD0dy7/DbzhA0w9sIE 03fZJe0aJ5ywA/GucsLA7XgqAKr5QIr93E2vMTR0qDbAMhrdeBZrnuzR+VV+rz+NYjdW 8UCK9hEuCTGOT1dTHPGzEuTbob7/CKoD7cn5IxWyDxKcBQEVkX6Asl+13w/TTDJhV0DP kHaelHHQ0AmJruK5tg4z3UXzTVCv4/4x/6eXza/3JJE5078AVKFxARNVdvqTjVgmjx+4 u37Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=GWZ01Skh8cQcWVz+pcA6teJikvF4jln+3VYBxfBbkpc=; b=ExipTXM3opVNLD++/AwNtpbVCzaK70jL7VMPsfL2nyfXFxACIdOLvIIAdGSm1NcxIT M+lLTOk9o+dQ0hgQJ7U/bsShBMzH5YhOnNa0O8lIgYMz7h3dJQoKJac7JgpMMdrFk8vY IB4MtJpbH9WWEusDG7SLx1r3We2iBggqJKsFf52AUwkvRNp+i2DIjrUr+swxrUKBnW5W Omecco+w9r/VPkpXm53xmQ5XYj78PVNIkRHb7Quh1zPP54x0XpJ33/yucQUGOs8l59OZ 5xga1QdSaI+3X4Um7kUDHtMwBCczdTTRUO5MPYTmIbR3U/cUVT4qlJYx52Rmdl/h95c2 wiZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aaCTVJwl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (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 29si9849664pgk.306.2019.08.26.13.46.00; Mon, 26 Aug 2019 13:46:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aaCTVJwl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732011AbfHZUp7 (ORCPT + 28 others); Mon, 26 Aug 2019 16:45:59 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:41708 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729669AbfHZUor (ORCPT ); Mon, 26 Aug 2019 16:44:47 -0400 Received: by mail-wr1-f68.google.com with SMTP id j16so16573394wrr.8 for ; Mon, 26 Aug 2019 13:44:46 -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:in-reply-to:references; bh=GWZ01Skh8cQcWVz+pcA6teJikvF4jln+3VYBxfBbkpc=; b=aaCTVJwleR8Zw8xXwUhKuTzGd3qAizfF2VBj/m0V6UyufC3CfXvN26JTI9Qrqgssr/ MhbELD3m6GkHfHycRbKyOSLyJp1wxd8gM339k0zH0PrYKmvsziPSwDgx8OJQWIo6wrwZ yU7N3lGW+65+NSrVqjMTQIyBNrKfysn9IMIvmb6xeRY7xPFzJwXkU8xVO0ez8FjkkANm Nijts4qCeRVlCthLo6XSxPOVkh/3IaPj8g63mPvqx6G7z1P2cVY6jMWljaPU9hKc1R0R Z7kkWsD4ujQUzzh/Y0Rxv/O91hBecyfb02dbxrwgW8Tge+9m29v1crfF+7pvspowd1Ai DaeA== 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:in-reply-to :references; bh=GWZ01Skh8cQcWVz+pcA6teJikvF4jln+3VYBxfBbkpc=; b=m9Er6NFSeMpI8H6GNocClnh4yD+gGwArujh32yFb7kk4qxmZP+a12X9xWZB7AUZLzt 4Pp/GBNYJk7Du1EbH3goNDC4ZmfPLEJqLcAgGJGF+iL+FeGSbNrJG25MGIiOGcwLVZ8B BJ6nY1wLyGBvw/xF4QW37gGpqu1hcqtXtzWa4K8XwgbEKFfipCljqBcB9L3JIOWok/0s tBGKJ6ExjwCqqUx//utxI4WCxrHu2fmmGF46CwHyetFskKhV8IBgY4OjfqiTS0ilaDv6 y74yBkb6oUd7/CEI+xA/70yznKm2GrNY5/BzPrtfuVsVMxSGZcDhp/wQlHsTiw8JgRjD bLDQ== X-Gm-Message-State: APjAAAW9vQMcnxGjcwzq+AdBw/NkI+2xns6sG+DvhuxtuhB2LbqNWRZy i/KJ7hbbZGmrQGksv8E9KnNHrQ== X-Received: by 2002:a5d:52cc:: with SMTP id r12mr23928260wrv.272.1566852285709; Mon, 26 Aug 2019 13:44:45 -0700 (PDT) Received: from mai.imgcgcw.net ([2a01:e34:ed2f:f020:f881:f5ed:b15d:96ab]) by smtp.gmail.com with ESMTPSA id 20sm549557wmk.34.2019.08.26.13.44.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2019 13:44:44 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, Maxime Ripard , Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org (moderated list:ARM/Allwinner sunXi SoC support) Subject: [PATCH 04/20] clocksource: sun4i: Add missing compatibles Date: Mon, 26 Aug 2019 22:43:51 +0200 Message-Id: <20190826204407.17759-4-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190826204407.17759-1-daniel.lezcano@linaro.org> References: <20190826204407.17759-1-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Maxime Ripard Newer Allwinner SoCs have different number of interrupts, let's add different compatibles for all of them to deal with this properly. Signed-off-by: Maxime Ripard Acked-by: Daniel Lezcano Signed-off-by: Daniel Lezcano --- drivers/clocksource/timer-sun4i.c | 4 ++++ 1 file changed, 4 insertions(+) -- 2.17.1 diff --git a/drivers/clocksource/timer-sun4i.c b/drivers/clocksource/timer-sun4i.c index 65f38f6ca714..0ba8155b8287 100644 --- a/drivers/clocksource/timer-sun4i.c +++ b/drivers/clocksource/timer-sun4i.c @@ -219,5 +219,9 @@ static int __init sun4i_timer_init(struct device_node *node) } TIMER_OF_DECLARE(sun4i, "allwinner,sun4i-a10-timer", sun4i_timer_init); +TIMER_OF_DECLARE(sun8i_a23, "allwinner,sun8i-a23-timer", + sun4i_timer_init); +TIMER_OF_DECLARE(sun8i_v3s, "allwinner,sun8i-v3s-timer", + sun4i_timer_init); TIMER_OF_DECLARE(suniv, "allwinner,suniv-f1c100s-timer", sun4i_timer_init); From patchwork Mon Aug 26 20:43:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 172204 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp4862696ily; Mon, 26 Aug 2019 13:44:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqwyi0pV6FYe8rmmhZdZf6/uPSn7ZYw7HBjfVJ0wqiBz4t5Ds7EzspFQoupMURrBqWqiI834 X-Received: by 2002:a17:90a:b781:: with SMTP id m1mr15280635pjr.141.1566852299343; Mon, 26 Aug 2019 13:44:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566852299; cv=none; d=google.com; s=arc-20160816; b=vM/T5nmsLHUw+GiJT7K0NRtCo6NWqlhJunQ6zsLgEsXLvk4rhl+fDVvBb0eDpe5gJo JKt9QV4EGEOQ7LZYu0dPRSzMb8CD+ESt1pdkwSNahWoYkuQCTGubHWUnWXGIHBzV36Yx l8hdVF5AZRWaRKHBWTH4IyjKkgiJpf96wOVetHCHd0jZVoQrrPRMcKs2pqL7d/YZBRGr Ozn56CkQoC6kd70pg/gyun7dukFeJU7hiSItyNG4DT1S++M4sROr/ZEcOmE0+yM8w6Mn Fx0gsPH7kU5MA2M9VdWz30KT17Vd+NbsFyHdK2KXIKfKa+uRQc2/I306q5srbHou32sX DwYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=KPovm7Wqq5ONpgYMzcWE7OA1yW+eFGPyRUwfUI0hUJ0=; b=H9a7bCseeMqqFs7RnNABTy9wUPppgJhGr4bcZU58nxOiRNuq46m4B5PaEdxsEoXqIW 07Q21FkQHC/zMrubrWu2SAESGk/tAU8yD40qeormWPtgou6xzino7ai9C5moQlayILvY EO4MMEReO4CvAFu+fl12xu0xADgiLQtKiaQN92s218bb7wZxUXHLD4njQA6ri7KKV/kj lSTiF+K665qN9a36T4hrNWvW2C28E+Oiaf0uWun/oCA9crCt6JvIbSguuxuNQx29a8Bw orfkgUNsjllrNpiKYodpNfuLUo75UxjowXjhMRCjhr9+AkN2YGhO6yc2c7tAXqZpFUDg ZqbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aU3cka8c; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (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 p4si9831591pgh.350.2019.08.26.13.44.59; Mon, 26 Aug 2019 13:44:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aU3cka8c; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730863AbfHZUoy (ORCPT + 28 others); Mon, 26 Aug 2019 16:44:54 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:37903 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730620AbfHZUov (ORCPT ); Mon, 26 Aug 2019 16:44:51 -0400 Received: by mail-wr1-f66.google.com with SMTP id g17so16620397wrr.5 for ; Mon, 26 Aug 2019 13:44:50 -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:in-reply-to:references; bh=KPovm7Wqq5ONpgYMzcWE7OA1yW+eFGPyRUwfUI0hUJ0=; b=aU3cka8c1AQSVSN8MhAGKFkLRjd0H8XrOtbp/x2/hFD2uq4c0BbiB2QY0ghWInXBGC 5rN5dd3SqgbzjbMCFWIpScJgDCd1YCPSTxuF2IjR4wG/Jz206l7856QTAku0xz2boFbH xDPEUKf1OTt2vpZhFICPjDYkFy2HNrlf5SUg7lcV/G198a9Ci9hsaXQKgnK7yIxTvsZN j8P6b6+xsyvAeMr2eSnIYCL/KatF+OXC6YnPNtBUoxOs8U1am6qjXfeiFV7HFp9kGj8V Q83XJKPTKHtLU058eb1EFPriPhAR4ZZcPPT6/RTMTC4RwTmmWwAXCem9jCPuF6ZSxK9S SOBg== 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:in-reply-to :references; bh=KPovm7Wqq5ONpgYMzcWE7OA1yW+eFGPyRUwfUI0hUJ0=; b=dbb6lUI4bmUHE9f28xuQNLK5It0CDCQvDYyvrCHzEvdF/DvhzrSJCtIPE5ZFipl1yx VKxUSY20fSyL2qPIOOnaajJC6dCkD3vfc4tY0HkOMVah7XG0Jm2crMb5QDRwQv42KtoZ agJTcXkVYhnCwXNH+hgl4iG/1a0d2A87/3W9XGLygA4rDamMA2YxodX5Zog3q3Lj7LMB dJ21Skf24VTlpzM2GXXQJjrOJpn5hpyD5ITNf14H6KSaB25w48o9fOuPnKyRMQN6/o5j jblWWQqetZyy/VdvHPMa8SuMzidPpKWp8Wl05U5PTKjWN8vmjs6lH3d0F8Qt5VT8QoIo Aq2A== X-Gm-Message-State: APjAAAWhjkWjEv14nTxkkB80GSZToMa5L7GOsIX1ZbD71PWkMPr2zkam 9tGnnFhf3ttw+uttllxKN/Ho8w== X-Received: by 2002:adf:fc03:: with SMTP id i3mr23215781wrr.48.1566852289672; Mon, 26 Aug 2019 13:44:49 -0700 (PDT) Received: from mai.imgcgcw.net ([2a01:e34:ed2f:f020:f881:f5ed:b15d:96ab]) by smtp.gmail.com with ESMTPSA id 20sm549557wmk.34.2019.08.26.13.44.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2019 13:44:49 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, Alexandre Belloni , Nicolas Ferre , Ludovic Desroches , linux-arm-kernel@lists.infradead.org (moderated list:ARM/Microchip (AT91) SoC support) Subject: [PATCH 06/20] clocksource/drivers/tcb_clksrc: Register delay timer Date: Mon, 26 Aug 2019 22:43:53 +0200 Message-Id: <20190826204407.17759-6-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190826204407.17759-1-daniel.lezcano@linaro.org> References: <20190826204407.17759-1-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alexandre Belloni Implement and register delay timer to allow get_cycles() to work properly. Signed-off-by: Alexandre Belloni Signed-off-by: Daniel Lezcano --- drivers/clocksource/Kconfig | 2 +- drivers/clocksource/timer-atmel-tcb.c | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index 5e9317dc3d39..a642c23b2fba 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig @@ -429,7 +429,7 @@ config ATMEL_ST config ATMEL_TCB_CLKSRC bool "Atmel TC Block timer driver" if COMPILE_TEST - depends on HAS_IOMEM + depends on ARM && HAS_IOMEM select TIMER_OF if OF help Support for Timer Counter Blocks on Atmel SoCs. diff --git a/drivers/clocksource/timer-atmel-tcb.c b/drivers/clocksource/timer-atmel-tcb.c index 6ed31f9def7e..7427b07495a8 100644 --- a/drivers/clocksource/timer-atmel-tcb.c +++ b/drivers/clocksource/timer-atmel-tcb.c @@ -6,6 +6,7 @@ #include #include +#include #include #include #include @@ -125,6 +126,18 @@ static u64 notrace tc_sched_clock_read32(void) return tc_get_cycles32(&clksrc); } +static struct delay_timer tc_delay_timer; + +static unsigned long tc_delay_timer_read(void) +{ + return tc_get_cycles(&clksrc); +} + +static unsigned long notrace tc_delay_timer_read32(void) +{ + return tc_get_cycles32(&clksrc); +} + #ifdef CONFIG_GENERIC_CLOCKEVENTS struct tc_clkevt_device { @@ -432,6 +445,7 @@ static int __init tcb_clksrc_init(struct device_node *node) /* setup ony channel 0 */ tcb_setup_single_chan(&tc, best_divisor_idx); tc_sched_clock = tc_sched_clock_read32; + tc_delay_timer.read_current_timer = tc_delay_timer_read32; } else { /* we have three clocks no matter what the * underlying platform supports. @@ -444,6 +458,7 @@ static int __init tcb_clksrc_init(struct device_node *node) /* setup both channel 0 & 1 */ tcb_setup_dual_chan(&tc, best_divisor_idx); tc_sched_clock = tc_sched_clock_read; + tc_delay_timer.read_current_timer = tc_delay_timer_read; } /* and away we go! */ @@ -458,6 +473,9 @@ static int __init tcb_clksrc_init(struct device_node *node) sched_clock_register(tc_sched_clock, 32, divided_rate); + tc_delay_timer.freq = divided_rate; + register_current_timer_delay(&tc_delay_timer); + return 0; err_unregister_clksrc: From patchwork Mon Aug 26 20:43:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 172203 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp4862667ily; Mon, 26 Aug 2019 13:44:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqy/75MiCMO6XOWGw98t8Yd2q9rSLvYSRyRSQk9PIxRNdLZUw7RJIfejWfyLHYucVmKICRpG X-Received: by 2002:a63:4c5a:: with SMTP id m26mr17779345pgl.270.1566852297194; Mon, 26 Aug 2019 13:44:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566852297; cv=none; d=google.com; s=arc-20160816; b=YvXSqZkcU02USvRkMeQjOk72NnueBt8B6rb1I8uolnGmRo2xUEHX4T5JkmCxVrgWBO yR3Ir1nO/9G3OXf0I5NrLyeokKL6qsquY0PbIbc/step4wr8Q9+mMTA7Xlv78Zi6T9gZ 47A3WlHPnVfvt5Aqbo7D7UGELJZRMtlhm7azBEAU8zdwixQvqeGywAL3GwFW8SLCuXu/ dYDfaKYaRvUBdEUPFu/8d3VcipVGRbFbfDFn8EfUtawydSEF1v1mWzhWtFVH4KiMsyVT RNitqdMsTiPZss2QC76bfZJokuxDIoIaS2LPCvk9EgjToxluKo1WA0O3ViwGmorIO6CO wLjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=OboacTrzgAOa6X4jkuvUHc+l7jAME1gqmIpY2bzkzqY=; b=FF1N0EjL8LIrQcnfB3uh9BeyzyYsjNqQCHlWMQ+wrFfhx4U1v43N2vUknLhrfkk9Ft +uQxMKtveJ5mij9Lm6qYiengTrAqaRUZL9KoVuS7RKDd7OAUPSJXFSwtYAd2Q5NvJO5U DFCjVbY6YfSBBnuz0J8QPjOapBbxhq0YHt662JnyEMZGS22VPGXa2cIs309H4vBPkwzu iizMt3npwliO1FEYr0DeoGgC267vceT/Zt0YshMXDEicYP0VGITBdD21MZqKfgHkVkTn gfFeJGW7Qy8t7MVjltod+DrSr2wzldpAGdy3F0lFkanlfzA8GQMipIa2AdPQZ+ZmPRFQ oZAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PyD+LfjU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (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 p4si9831591pgh.350.2019.08.26.13.44.56; Mon, 26 Aug 2019 13:44:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PyD+LfjU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731040AbfHZUo4 (ORCPT + 28 others); Mon, 26 Aug 2019 16:44:56 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:37907 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730804AbfHZUoy (ORCPT ); Mon, 26 Aug 2019 16:44:54 -0400 Received: by mail-wr1-f66.google.com with SMTP id g17so16620482wrr.5 for ; Mon, 26 Aug 2019 13:44:53 -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:in-reply-to:references; bh=OboacTrzgAOa6X4jkuvUHc+l7jAME1gqmIpY2bzkzqY=; b=PyD+LfjU7OVquXNkhIpuu1n1a7Ab8iOnkoR+6jLIXYZZWBcjBT2NqMthIH6UklpW1s QbETODPNNIdMcOEFvYqkj9YryteX7MuLgjyT1j8a4JT5YMxdSwxqYhJ6m4pmw8uawZeo Jd2zQQFBws2rVZG/K7HCAGMX0veGaqCnnEisfHTqKu8/czwwnnnupRnnH2CfhAAh6E/L abwUbQ5mnY/Yx5qJZOIEglK2RhU7+b81wd4Sn83SqSNMehTm5xH1FC4f0wc5ZkD2H/Q6 prmV2kpcdp+tWoMM/ru37JKd6+fUBlk3ZUqYBtDTktare9gDoW+NhxNRfsX9k1bgsBAR H0WQ== 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:in-reply-to :references; bh=OboacTrzgAOa6X4jkuvUHc+l7jAME1gqmIpY2bzkzqY=; b=lgYHb5n3GE3bVu+AzVp6QMOFN2SM8eyZaW+j9TyJgUUMKDbXtVRKyUpb7FQP/GwU5v EtgJDEMYLSrbR+GCI0KXPhAlUwTel7eNp8CQbIZiWlGShOfXHeVKCT7Vc4M9kYUJjCwm biHOJW6XWbxjuNGQ+Uy3H9yU2H+uISvXvz88sS8NYBaxd+Nnx1RovCKcjL2j3Qv7/col kTjLVPvdpG372Zh7LA1v3g0QI+XCxUAzIyiS/m4nTC4EsuG8YxySCR87qIF0/DpJAnCm 7ua1gXveE5P8Xprf4rt0Bzfe0wy2RaShudpe1ejvXjzSToconQyRo+1sSkB33m9DAgP2 q93g== X-Gm-Message-State: APjAAAVivZ+KUMQRL9+88dIbMxYEYrbRXlXQ0y0s8r1IA79lLi+4mMUP IUQRef+cjCfaPtNRUUZAZPRD7A== X-Received: by 2002:a5d:4448:: with SMTP id x8mr25331881wrr.119.1566852292217; Mon, 26 Aug 2019 13:44:52 -0700 (PDT) Received: from mai.imgcgcw.net ([2a01:e34:ed2f:f020:f881:f5ed:b15d:96ab]) by smtp.gmail.com with ESMTPSA id 20sm549557wmk.34.2019.08.26.13.44.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2019 13:44:51 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, Anson Huang , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org (moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE) Subject: [PATCH 07/20] clocksource/drivers/imx-sysctr: Add internal clock divider handle Date: Mon, 26 Aug 2019 22:43:54 +0200 Message-Id: <20190826204407.17759-7-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190826204407.17759-1-daniel.lezcano@linaro.org> References: <20190826204407.17759-1-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Anson Huang The system counter block guide states that the base clock is internally divided by 3 before use, that means the clock input of system counter defined in DT should be base clock which is normally from OSC, and then internally divided by 3 before use. Signed-off-by: Anson Huang Signed-off-by: Daniel Lezcano --- drivers/clocksource/timer-imx-sysctr.c | 5 +++++ 1 file changed, 5 insertions(+) -- 2.17.1 diff --git a/drivers/clocksource/timer-imx-sysctr.c b/drivers/clocksource/timer-imx-sysctr.c index fd7d68066efb..b7c80a368a1b 100644 --- a/drivers/clocksource/timer-imx-sysctr.c +++ b/drivers/clocksource/timer-imx-sysctr.c @@ -20,6 +20,8 @@ #define SYS_CTR_EN 0x1 #define SYS_CTR_IRQ_MASK 0x2 +#define SYS_CTR_CLK_DIV 0x3 + static void __iomem *sys_ctr_base; static u32 cmpcr; @@ -134,6 +136,9 @@ static int __init sysctr_timer_init(struct device_node *np) if (ret) return ret; + /* system counter clock is divided by 3 internally */ + to_sysctr.of_clk.rate /= SYS_CTR_CLK_DIV; + sys_ctr_base = timer_of_base(&to_sysctr); cmpcr = readl(sys_ctr_base + CMPCR); cmpcr &= ~SYS_CTR_EN; From patchwork Mon Aug 26 20:43:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 172205 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp4862775ily; Mon, 26 Aug 2019 13:45:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqw+KPeM5+VXXatI4NU0GOrzz98PGYl52UYRRQ1RmeGqg093DgIbDPp9GkH1c7oXj4YmoyI/ X-Received: by 2002:a63:6901:: with SMTP id e1mr17583080pgc.390.1566852303721; Mon, 26 Aug 2019 13:45:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566852303; cv=none; d=google.com; s=arc-20160816; b=Pc4+602grovMk8tiRBKAERhdXfg4wIEynJv7dv/6uwIFO0KYxKQYI/amKrGajl+pM1 l4YIekndLQbaumjWtrmze7Ucjn21vkihc5Q+e8cdCMlXQtLXApk2Reyaek71a1c8w8j8 nlVhE69QPoghl7uW8np6PZQhzrdIYioYdFZlfQXIShLNWWs6dr9MYyF4SCepoxirYCch jK15iF5xaMaLNylRxpkIOw98J5UZ86492dOTHA052KWJI221yv9oU6x4e85S4SrjgEEg gTLX7kptKmmnLRn1eB974oGHMK8b9GiLB7VJl36P8AugADkUJKC2fV4ZTznGUHQ6p88E mXYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=EeoSOO9P8rB2c6o2qSam9CM8ucP9QSVXMBjzLutJqVA=; b=r3rIFgKPfc+ey5yLqNIaUct3nI7jhQvUP86Q035Ayo4Ym4bI1H1hjFsgbA5tklHBKG AFSSX+9fdglzbdG6zKQcb9zzTn5NFzy8bv58N0JJG+XUPVwJOXWta6GKc1Ar3tErGykl Zd9gqLGS1gJsJz7E4YsQ4tBvsiRq6dr7MQM5fI02P1DX4lcJW/v5FvvTmiPpJDR7Imgp MTSXKINyNrX0CcRnnB9+3YB7Q+YedAm39iRvGKO7631vXTTAe1gfA/7t+tByH2fzrvp7 ehwRcuBtncEi3YZMn9/X4JYvXxrqgtMmcELRCHoXqWdFv8Lq2M807+wKduJ+cQBNkIYP wE3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eNvJTE4R; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (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 w26si11211112pfn.94.2019.08.26.13.45.03; Mon, 26 Aug 2019 13:45:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eNvJTE4R; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731134AbfHZUpC (ORCPT + 28 others); Mon, 26 Aug 2019 16:45:02 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:54653 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731058AbfHZUpA (ORCPT ); Mon, 26 Aug 2019 16:45:00 -0400 Received: by mail-wm1-f65.google.com with SMTP id p74so787889wme.4 for ; Mon, 26 Aug 2019 13:44:58 -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:in-reply-to:references; bh=EeoSOO9P8rB2c6o2qSam9CM8ucP9QSVXMBjzLutJqVA=; b=eNvJTE4RS20+765BWxr4qe19suSF23z2UcHRM3AOrys6MDLHN7seyrjTkBXKualyDL H4H+5KMRmxeb55kiRpo3D3K0OiWg3SDSjn18KIQM+qfWDAp7wy0uj4mNxbI/e5b/yRsw a67FEb7F11WCDa2Z45OSKrK6/KXYUDWuRi89/1FNCNNT1lpgYmLedf+iqNuHe0iCpRki Dy2wDRxRpAaX//+99l5cHV9hXbHxB+ObDivOuFF20d5li47VVi1/Ioup+ZLLWgfZvi4d XCpnpvhFWSh8PlP418NyLf3wfdgaWNR/PD+8Q926I5s0OgB9c8REYkvA0AXDAwWc/0wB FLxA== 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:in-reply-to :references; bh=EeoSOO9P8rB2c6o2qSam9CM8ucP9QSVXMBjzLutJqVA=; b=fJeLV0zzWWMJC78jUKqVfvd55CnlxhKGA2cxekJwjR9ZB2ApoWHvcdJ0gK3hYXEb47 33b0iSgzUCVpvSb/gikpOvqWeJEhxaXd6dX7GhGPHBFHusstGHn87/vp0TVeEz39p0YD lWjnyTSQbZQTP1scpTmeFNE6CmQhbu9ma9Nj3MWsJYavoQVeLu5sSlZBVRuLH+rrbMwO vZ6cqg42da6TEE2jbHWQRYzLeZZ11VUL/wwOgFcOLBOBCE2Z8p8AjrZUE10MbuUyo3Ev y9Cvd0wsPhQnCzuGRarY/+4ZHT4iB0yn7vWzSmYCl7zmdId599qTNYiq04ley7Qh3LsS Hk9A== X-Gm-Message-State: APjAAAXUuy0iiG0lOgmDMgpY2eq7kX4WX4tqDJh1pvOBFugvNemNdyrj WBitSPVDBwSkjLqf3nDA4hPDQQ== X-Received: by 2002:a05:600c:228f:: with SMTP id 15mr22665714wmf.160.1566852297896; Mon, 26 Aug 2019 13:44:57 -0700 (PDT) Received: from mai.imgcgcw.net ([2a01:e34:ed2f:f020:f881:f5ed:b15d:96ab]) by smtp.gmail.com with ESMTPSA id 20sm549557wmk.34.2019.08.26.13.44.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2019 13:44:57 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, Anson Huang , Rob Herring , Mark Rutland , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Leonard Crestez , Jacky Bai , Daniel Baluta , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-arm-kernel@lists.infradead.org (moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE) Subject: [PATCH 08/20] arm64: dts: imx8mm: Add system counter node Date: Mon, 26 Aug 2019 22:43:55 +0200 Message-Id: <20190826204407.17759-8-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190826204407.17759-1-daniel.lezcano@linaro.org> References: <20190826204407.17759-1-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Anson Huang Add i.MX8MM system counter node to enable timer-imx-sysctr broadcast timer driver. Signed-off-by: Anson Huang Signed-off-by: Daniel Lezcano --- arch/arm64/boot/dts/freescale/imx8mm.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.17.1 diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi b/arch/arm64/boot/dts/freescale/imx8mm.dtsi index 232a7412755a..89ef22a8f81e 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm.dtsi @@ -510,6 +510,14 @@ #pwm-cells = <2>; status = "disabled"; }; + + system_counter: timer@306a0000 { + compatible = "nxp,sysctr-timer"; + reg = <0x306a0000 0x20000>; + interrupts = ; + clocks = <&osc_24m>; + clock-names = "per"; + }; }; aips3: bus@30800000 { From patchwork Mon Aug 26 20:43:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 172206 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp4862870ily; Mon, 26 Aug 2019 13:45:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqzPu+9DUE4VcIwaLeSTRBPyi12qGD9IkJ42mT+gSTNERHFnUOGxF+fmXE2c9NjL4zWedHz9 X-Received: by 2002:a17:902:8348:: with SMTP id z8mr21361474pln.38.1566852308530; Mon, 26 Aug 2019 13:45:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566852308; cv=none; d=google.com; s=arc-20160816; b=BaTnnzxckYKDatX/edGuBJ9SPf5mBFpfeqSWAECL/xhjG6t0sPZlkteTUM5B7p3KoY FmHC3k+jr/hhchIenkZ1wRPtTLhUERu7CHzW1WsMPgJpNa6HqXYdb8YS0z8knlRzsxMG ygvWZLvQ1Fv2XNhT1B97nUVxEBgs9LqZKODrQ55lOcpW3OP0nCXQDR1fDul1bLqn5aC4 EPYi7EIHPXqoW9neCiTlAg1hrljxlhrHps3sQAvaXZ7y0/1afOdCMlVoYt00wFuKn66N wdXIfdnclyk/9JUXtT6Ha1Tcc3W0Fyvbhyx0SjwxSMiYqZwqK5n1C6AaRg4BVg2eoksi w1IQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=46OI48aknCO8xnHiNKqbTqHhcC3QBVezddPBiW79IL8=; b=GQGVfA6OqL8x1jHvAFjErlrQGYpbjYif9BGVA41iPTLuzrOWj8p37MEh3AiwaLjHYF VzRzOQlRrE1vSiH0ndJ8pprIQiNAu8LqIdN1sLJYQpmRQ9aCC9SmygIrM+y0vmmXnk/C rcEW07idFKQzgv0YZzWf7WhK/FeES8D0KRNjZ5536h43us11ciNw8yLXKb9fds4wAhkB PWQgSo0EP8Tx0u5wD1PKs5U4mzHeRn+c2n8BhD09YsHRVGow45uaY9pZgwWj0Va1anx0 urRokb1oBPfkwx2Doo2NFzObtj2+bpgjgnhs9grKB2wvHU2Zb0MX7YverygssuSMUhHA cjcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=t4oVhmR+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (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 q38si10078629pgk.63.2019.08.26.13.45.08; Mon, 26 Aug 2019 13:45:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=t4oVhmR+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731236AbfHZUpH (ORCPT + 28 others); Mon, 26 Aug 2019 16:45:07 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:37776 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729700AbfHZUpF (ORCPT ); Mon, 26 Aug 2019 16:45:05 -0400 Received: by mail-wm1-f67.google.com with SMTP id d16so789348wme.2 for ; Mon, 26 Aug 2019 13:45:03 -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:in-reply-to:references; bh=46OI48aknCO8xnHiNKqbTqHhcC3QBVezddPBiW79IL8=; b=t4oVhmR+oEEVFvTBVetR2kz0/3Vk+qOebroB6rEXmXbS3C5c7DmvoLtkR/XNcYPLes zRljos8wGxhV5FMc917+mc3iMPQHHDfyYh755S+nYbyMGDbMYc2jJSUEdkwn7lLlu4lb aqfJlwnYyiBuMcwpF9BrlSQ6XbvFE+X6y1ffhp9fgHrtU0vif8r5YGwd/r9efZYKcL// GTgiIzAieaWGJTQMsho97OqfgtL0BArhkgD+YIpT3WxKEuuW3hKWD4PlFj5QsrM+8sl1 BPCxWcg52FcmVNt5sU2eiav3lxk3sjSHs1tw3unGZRUXBEPfRD+jbX8TYcucYmvla/Wm G96w== 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:in-reply-to :references; bh=46OI48aknCO8xnHiNKqbTqHhcC3QBVezddPBiW79IL8=; b=E6y35vronsrTxbVKfqdSNE3RoHpaR6FrWkZIYJlfGxKCrJBxlPndw8CErrPCRlWjEe GN5hokiTkgGbnFPYw/rP11h90QfZYAXEyZQ8GiurZaSZMxHRix8AcxhxrdKVfot0ISo1 Uz16q5Dr8kcQ2wdphJ9gPSAgxCRRRvKJW6vlCqMWbPhM/1ttJgTOsXubBFiyfqjIfpvQ w/3RAQvUdphC9bvNSU7zwOPh8tX3EoZLkX4i4Y9Ms27lN/16tHaRqZjeQp8JmSBzEdX6 k5QEBBoEvj4YuRyDHRO7gC4EBsqk3Pa3zcbaBcuNdEy+Xn3qSiZKZ/XeIUgXWrntU6OT fx6w== X-Gm-Message-State: APjAAAUfQs7Yr0zLRwlyvM5xfvprsmUQbZ/soTK/CyV/tIBI0BMzUfqy iFeTZ9/jGWtm77WINlidcU+qQw== X-Received: by 2002:a7b:c244:: with SMTP id b4mr23459241wmj.125.1566852302984; Mon, 26 Aug 2019 13:45:02 -0700 (PDT) Received: from mai.imgcgcw.net ([2a01:e34:ed2f:f020:f881:f5ed:b15d:96ab]) by smtp.gmail.com with ESMTPSA id 20sm549557wmk.34.2019.08.26.13.45.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2019 13:45:02 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, Anson Huang , Rob Herring , Mark Rutland , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Lucas Stach , Abel Vesa , Carlo Caione , Andrey Smirnov , "Angus Ainslie (Purism)" , =?utf-8?q?Guido_G=C3=BCnthe?= =?utf-8?q?r?= , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-arm-kernel@lists.infradead.org (moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE) Subject: [PATCH 09/20] arm64: dts: imx8mq: Add system counter node Date: Mon, 26 Aug 2019 22:43:56 +0200 Message-Id: <20190826204407.17759-9-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190826204407.17759-1-daniel.lezcano@linaro.org> References: <20190826204407.17759-1-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Anson Huang Add i.MX8MQ system counter node to enable timer-imx-sysctr broadcast timer driver. Signed-off-by: Anson Huang Signed-off-by: Daniel Lezcano --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.17.1 diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index d09b808eff87..b4529773af51 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi @@ -635,6 +635,14 @@ #pwm-cells = <2>; status = "disabled"; }; + + system_counter: timer@306a0000 { + compatible = "nxp,sysctr-timer"; + reg = <0x306a0000 0x20000>; + interrupts = ; + clocks = <&osc_25m>; + clock-names = "per"; + }; }; bus@30800000 { /* AIPS3 */ From patchwork Mon Aug 26 20:43:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 172217 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp4863682ily; Mon, 26 Aug 2019 13:45:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqwgHredUrFwdAE65ofuaCiPMHOJAK+PKz3RQeibXLdV+PQkvaPVQakdNuII+Gl/8xuUVA/g X-Received: by 2002:a65:654d:: with SMTP id a13mr17873295pgw.196.1566852351650; Mon, 26 Aug 2019 13:45:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566852351; cv=none; d=google.com; s=arc-20160816; b=nmpzB3fbmk731s+n0oIct6U4MM8bShh75azftWAumFLkCJr3yqblfTTpfmTQw58xw6 tCssOaUlCo3b1WO8jUfmOYLm48NcOom7ld+UsRBDFFohi0hSpmXk9gdhaamftEh86ac1 iyNEoSHXAXIgssplBMqNriYjLJ6j06gdF1w7xGrf1+7a4qARefj9d4efIi1mIzZvW/9Y wq2/nSuqhM/0THVRNEFP3MbzYRg53ElsskoaOGTjfBINrNvN/kun2U0OV0zdoqz82jeN /aVbHNspBwRSaiAI1WtlSR2dsLOap5f4XjN13kN1qgwvRU047ibZXJFObgVdMHEqNYsI TksA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=FoQUNs6EXC98c6qNkjKAv+h1NQz6LneBfiroF9aLlEY=; b=BsmqlvyAAm4pJ1/N2E8qsSMSjQGhUbcctmS0DgLrLEUvSQ+xhbaUO4ciFZkOCltrSP Yie8CjEqrzhy4k47l0Jl+moZDzRZuNp5B+4/E5HvxqJ3mY+sebscj5Y/jhj848bSkCKU bLi7RZPHnizeQb0ZuBP6drFLwQSbyiUuyn17cte4eUoyIkf5JNkkZE7xjknL8MNdgB0T jwYieUnKGNK4ZZrpf2djWbJ+u0TF9sdO00YxRckC5peaOxnehwRI9SZgBw0YDD1XlLY1 12jYAM2QRxdgKMXdtikMpYX+KwLHvsZavR5Ac/mm3F86iCq9hbxpHoZp4qPC/WVJQ0qj RtVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jPW1jRGN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (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 n11si576523pjb.36.2019.08.26.13.45.51; Mon, 26 Aug 2019 13:45:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jPW1jRGN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731316AbfHZUpK (ORCPT + 28 others); Mon, 26 Aug 2019 16:45:10 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:53724 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730644AbfHZUpH (ORCPT ); Mon, 26 Aug 2019 16:45:07 -0400 Received: by mail-wm1-f66.google.com with SMTP id 10so794890wmp.3 for ; Mon, 26 Aug 2019 13:45:05 -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:in-reply-to:references; bh=FoQUNs6EXC98c6qNkjKAv+h1NQz6LneBfiroF9aLlEY=; b=jPW1jRGNr3AnUe8RjuZmRCXkYAzsbzMhz32nq0OWWy1zpvhbhiDiAAuRPeiyVl491V cCLcdpNtFLqim8SyephS7b9b9ko8sszl0kvNj9BUd6h/QBPgHXF6o+PKgNQPiVfYIRFH B5PaOVC29nRY9kNRjKZOXYVORKwkhwB4w6wIQfyh5qoOxK8zLHitQH33/0d6bWm9f+Hp jXHkDDm3osu6MOCTwW7J2wI7rENToUJpJEwajOTRQlt9CP252Ej6QkLEf/vKr4EMYtlw qSq1d5xHTNDG2TjA+3gjsTNtCTSGd3PgMPfHdHP33PAXjh10wjQNIX5E0VjydN1qN6wD 2U1A== 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:in-reply-to :references; bh=FoQUNs6EXC98c6qNkjKAv+h1NQz6LneBfiroF9aLlEY=; b=btnqkaIZGMoXWn1j+ENn3aqzTK4hmkgTEMce5YYF8e/lN4Vfixi4UuN3SzEWE4QBsY aUrmHDKrcAHfBVMSsCZHylSpWwQKvwCX1SmUI5GLPGlZyJ89ohEBuf4jR/TKxLtVym2y 5cg/+GuUtMPtp5Igqax+emmMYo0Xo95tOtHpUp1zqDr8P1LIzOCASN88gyYzHOv1puZU LCsOlvCRvAPMJZAd2e/q8sLTfJUD4UBqLkeII5IxuaNoVMseRFXtQQvnEKS25Ywxx9p2 tkIyHZhq1Qn7Aqgn5qnvmQJgZRLHpKbe0iTw3AHzqwTzE7TWXkBGG1VOk3ayXW8rPGln Atjw== X-Gm-Message-State: APjAAAVTF+a+qUPnn9HPyMhYLB0Sq+0HpYe8J2WxLmEhmrqZ+l+R+INf B+d2jOh3eCVRUhzyVwLStpT14bdOpYY= X-Received: by 2002:a7b:c8c1:: with SMTP id f1mr21953351wml.87.1566852304570; Mon, 26 Aug 2019 13:45:04 -0700 (PDT) Received: from mai.imgcgcw.net ([2a01:e34:ed2f:f020:f881:f5ed:b15d:96ab]) by smtp.gmail.com with ESMTPSA id 20sm549557wmk.34.2019.08.26.13.45.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2019 13:45:03 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, Geert Uytterhoeven , Maxime Coquelin , Alexandre Torgue , linux-stm32@st-md-mailman.stormreply.com (moderated list:ARM/STM32 ARCHITECTURE), linux-arm-kernel@lists.infradead.org (moderated list:ARM/STM32 ARCHITECTURE) Subject: [PATCH 10/20] clocksource/drivers/renesas-ostm: Use DIV_ROUND_CLOSEST() helper Date: Mon, 26 Aug 2019 22:43:57 +0200 Message-Id: <20190826204407.17759-10-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190826204407.17759-1-daniel.lezcano@linaro.org> References: <20190826204407.17759-1-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Geert Uytterhoeven Use the DIV_ROUND_CLOSEST() helper instead of open-coding the same operation. Signed-off-by: Geert Uytterhoeven Reviewed-by: Simon Horman Signed-off-by: Daniel Lezcano --- drivers/clocksource/renesas-ostm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/clocksource/renesas-ostm.c b/drivers/clocksource/renesas-ostm.c index 61d5f3b539ce..37c39b901bb1 100644 --- a/drivers/clocksource/renesas-ostm.c +++ b/drivers/clocksource/renesas-ostm.c @@ -221,7 +221,7 @@ static int __init ostm_init(struct device_node *np) } rate = clk_get_rate(ostm_clk); - ostm->ticks_per_jiffy = (rate + HZ / 2) / HZ; + ostm->ticks_per_jiffy = DIV_ROUND_CLOSEST(rate, HZ); /* * First probed device will be used as system clocksource. Any From patchwork Mon Aug 26 20:43:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 172207 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp4862937ily; Mon, 26 Aug 2019 13:45:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqzYW2HlV3AlgZXSrcbdow4x7SpXkf9RIwioK+91hHDHJI3biIbV7aKQEfBR3FPmHOAijo5a X-Received: by 2002:aa7:83c7:: with SMTP id j7mr9348254pfn.59.1566852312472; Mon, 26 Aug 2019 13:45:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566852312; cv=none; d=google.com; s=arc-20160816; b=T1DiS9iHYJ/AddG5ebopJiAX6tnAjRiJweCtCoOgxfqwO+Zqt4gCfbiNqeCgmHN5yV UoEssvVr2bawZffVGDLBrI3yy0AmWAWyoNSRygozzd0ctnK2YwmOw5L24pck5lfYZWDt g7Rk31ZfJiL6rTdrDM7inp0JnFk/8G/6+JFT4TA+ye6kWJgrtrDHl5NkvuI5ARenfqdi JHTuS8CrNmVca8gLCM+WFC3aJgx2fbsLo/gpTPdhx2Nqnzl9FdF2ncqGyJKnr20IYc7G PuL9ZprYxAQIfV3aNb1GpMTm3w8ogt3nKDUNbphRH6pQWpypuIrTzWsrjWrbLr88XFT8 is4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=EJr/EagOWWWCEFoK6Cl8RHdd3bbJGdepYKWoaGBi1+8=; b=JPsQ0maG+2yL5T4O68USEuSUzzzccp83aiQYFuOuL0lwm1R4X5ktXQV4OiSW8g+cM+ zKPAkaLewoWbsQDkefzrNmIFb+BCDe5aQH6o/E+XUTLtlBZ3m7tA3Srrf79gUHToNgZb 1dLnQj6tOP6igvQJOzMfxDzF7GwtQNIyJpNeE4Not2hmiZgDHnQbI9FJee1n8BHdYgxj Z/4MR1rpYgq440Xq8r6Qo0uXlLwW+gSy1nHmPXUgKG4RbsvBJ8glgC1gPKviW5iHQIqB xQDYlk0uAdIL6uIsSFqU5ps9y6wVZwznMzHey6MWIPaxzWqZPx8A90Xvc/w1k9B9p3Q1 ntfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uSRwaaQT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (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 c1si10944517pld.348.2019.08.26.13.45.12; Mon, 26 Aug 2019 13:45:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uSRwaaQT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731392AbfHZUpL (ORCPT + 28 others); Mon, 26 Aug 2019 16:45:11 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:36480 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731065AbfHZUpI (ORCPT ); Mon, 26 Aug 2019 16:45:08 -0400 Received: by mail-wm1-f67.google.com with SMTP id g67so794874wme.1 for ; Mon, 26 Aug 2019 13:45:07 -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:in-reply-to:references; bh=EJr/EagOWWWCEFoK6Cl8RHdd3bbJGdepYKWoaGBi1+8=; b=uSRwaaQTED8QF+2S4yqgVSoNPgjxT8uTgt9GhpJsDr+8CvcVzeUbCSE0ERTVchio4p QNRdt30i1fpggxajsFk7Voi6prWjddEOIdOxu/GaOqTH1NMqdBXyL9p9OsvjyHBGqz2n ZtmiU15CtLVF/qW8QfOji5RW101rf6lV2hH4P8NlLJAV2uMDR1rvyAsAeS2SV4p1eKD9 ByX/kC7XiDxfjEXRYp4lV1pFvei3AOrAjRvNGOYS5+vNSRte8WFE3BWxQNgdYUSObzPd v08kN1XBFh7jYXDKXF1rRiLfgCLVJMRsBl1Gj22oaCtg0kP8zckgIqrdiYBqAj4kZfE3 5SOQ== 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:in-reply-to :references; bh=EJr/EagOWWWCEFoK6Cl8RHdd3bbJGdepYKWoaGBi1+8=; b=ada3sQz6Rn7mOpK5YyIU5l7RefuPGLDJ+RGrzQd16/XJ4rNNvUKYOm/QYUtBx9eq9O N+axadk6udbgEEYg5g6D0Sgu3HmEycHXqoXkFs2upWhwbfoi+g/TPunR8igVPXBjPO+5 J8TW5aTG5Scu7YpHs7+Gl5A3YqYwEy+R4Chw1WpVUzd57+pydNyYivXgok5TzeR/XDaJ /qcb31e1WUE4KlyhyHPFZbA3IkJ6trpx/KH61NQ3vdILT4kaAaF8dO6CPcSWFXxlLH1o QZS5uJwsLz2R6heRfAFxjrZ3KopLKP/q44tiCXHp2L9GlphQQf3FSokY7FHAdmyyM8WG 9p6g== X-Gm-Message-State: APjAAAU3tL31kDiyXQ9BhZPjW/JRCDyaQ9q6gjFDwPI+Avnz7xd0LMKY VYy+qzGrhfQTwsOfkrkMw6Juzg== X-Received: by 2002:a1c:ed04:: with SMTP id l4mr24638471wmh.81.1566852306477; Mon, 26 Aug 2019 13:45:06 -0700 (PDT) Received: from mai.imgcgcw.net ([2a01:e34:ed2f:f020:f881:f5ed:b15d:96ab]) by smtp.gmail.com with ESMTPSA id 20sm549557wmk.34.2019.08.26.13.45.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2019 13:45:05 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, Avi Fishman , Tomer Maimon , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , openbmc@lists.ozlabs.org (moderated list:ARM/NUVOTON NPCM ARCHITECTURE) Subject: [PATCH 11/20] clocksource/drivers/npcm: Fix GENMASK and timer operation Date: Mon, 26 Aug 2019 22:43:58 +0200 Message-Id: <20190826204407.17759-11-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190826204407.17759-1-daniel.lezcano@linaro.org> References: <20190826204407.17759-1-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Avi Fishman NPCM7XX_Tx_OPER GENMASK bits are wrong, fix them. Hopefully the NPCM7XX_REG_TICR0 register reset value of those bits was 0, so it did not cause an issue. The function npcm7xx_timer_oneshot() reads the register NPCM7XX_REG_TCSR0, modifies it and then reads it again overwriting the previous changes. Remove the extra read which is pointless. The function npcm7xx_timer_periodic() is correct but the code writes to the NPCM7XX_REG_TICR0 register while it is dealing with the NPCM7XX_REG_TCSR0 register, that is confusing. Separate the write to the registers in the code for the sake of clarity. Fixes: 1c00289ecd12 ("clocksource/drivers/npcm: Add NPCM7xx timer driver") Signed-off-by: Avi Fishman Signed-off-by: Daniel Lezcano --- drivers/clocksource/timer-npcm7xx.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) -- 2.17.1 diff --git a/drivers/clocksource/timer-npcm7xx.c b/drivers/clocksource/timer-npcm7xx.c index 8a30da7f083b..9780ffd8010e 100644 --- a/drivers/clocksource/timer-npcm7xx.c +++ b/drivers/clocksource/timer-npcm7xx.c @@ -32,7 +32,7 @@ #define NPCM7XX_Tx_INTEN BIT(29) #define NPCM7XX_Tx_COUNTEN BIT(30) #define NPCM7XX_Tx_ONESHOT 0x0 -#define NPCM7XX_Tx_OPER GENMASK(27, 3) +#define NPCM7XX_Tx_OPER GENMASK(28, 27) #define NPCM7XX_Tx_MIN_PRESCALE 0x1 #define NPCM7XX_Tx_TDR_MASK_BITS 24 #define NPCM7XX_Tx_MAX_CNT 0xFFFFFF @@ -84,8 +84,6 @@ static int npcm7xx_timer_oneshot(struct clock_event_device *evt) val = readl(timer_of_base(to) + NPCM7XX_REG_TCSR0); val &= ~NPCM7XX_Tx_OPER; - - val = readl(timer_of_base(to) + NPCM7XX_REG_TCSR0); val |= NPCM7XX_START_ONESHOT_Tx; writel(val, timer_of_base(to) + NPCM7XX_REG_TCSR0); @@ -97,12 +95,11 @@ static int npcm7xx_timer_periodic(struct clock_event_device *evt) struct timer_of *to = to_timer_of(evt); u32 val; + writel(timer_of_period(to), timer_of_base(to) + NPCM7XX_REG_TICR0); + val = readl(timer_of_base(to) + NPCM7XX_REG_TCSR0); val &= ~NPCM7XX_Tx_OPER; - - writel(timer_of_period(to), timer_of_base(to) + NPCM7XX_REG_TICR0); val |= NPCM7XX_START_PERIODIC_Tx; - writel(val, timer_of_base(to) + NPCM7XX_REG_TCSR0); return 0; From patchwork Mon Aug 26 20:43:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 172216 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp4863627ily; Mon, 26 Aug 2019 13:45:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqz099Djs8WClvnw00gp44rjN3fMEDlbflgCSzq3EdYOV/EdT+O5khx1D9AjnfIMrCA49EBG X-Received: by 2002:a65:52c5:: with SMTP id z5mr18271600pgp.118.1566852348607; Mon, 26 Aug 2019 13:45:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566852348; cv=none; d=google.com; s=arc-20160816; b=guNfJiy3sl81Z0BZRJf0ntbHQkbIWMR9GFSXMIdTgOEdenKzb/GAT1VZgMtvkWloEO ap5T1rhfAHwNFFHPhmxMPFugR0fDe8KIHQGDAgyHAK/X/fCoImwXLby2AWJeziuB90wO hSVpTgKgJdihIlCoKiFJfx8gX/DIspPLxPK23xZiHl5HMXHkWMFet/3L/eprkzzDu+S1 qkkWIAOTBK+KpaTYX4p+GJQRDoGL42FJdNJWIKGMtcRkWZ3ynNWNPc/Ku4seaqYMktQT KoJaBcyYdVrBLYX+LuzoDWRbietlwvRpZ0Hl2AP9x2WyblMoOZ8mkPQTfKe5BbQ4F88O KGag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=3NlsbaVmcGi3otv9ZJ2fHYs8AFKgSTfNTic8ebJ9pLc=; b=qmcST2MT68uV8WKukKsuvHUcHTyLKfqgR6KvfKA0o7PbxuMjTKD5J8eCEAnWXhZRRF RBknI0x8Zo57UXcrcB7Sp+SaY/ySnCg0g6T4fmWrpwxky+WrpyMh2s8A8I5t9OmNDvWr 8eV8VcsTquRsy1pDUepfnjxBM6746CSh43nGSAtKt8DprgCAHtV2YEXMtC3n5G8/bXC/ bSrTH1ZyPPtFOc86rylB7hh2knC2swgoWUXmH2GjK/xHM975SbPGzWNi9kvw4siGWT5m vrL68UMH3LpeZDuNINFhK5Kqzv36KCWlRgnvhvi1ZkQcTabshrNz+AmfKpfcig4scSLO cwSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eK+nQS2A; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (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 n11si576523pjb.36.2019.08.26.13.45.48; Mon, 26 Aug 2019 13:45:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eK+nQS2A; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731976AbfHZUpr (ORCPT + 28 others); Mon, 26 Aug 2019 16:45:47 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:40773 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731260AbfHZUpK (ORCPT ); Mon, 26 Aug 2019 16:45:10 -0400 Received: by mail-wr1-f65.google.com with SMTP id c3so16579857wrd.7 for ; Mon, 26 Aug 2019 13:45:09 -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:in-reply-to:references; bh=3NlsbaVmcGi3otv9ZJ2fHYs8AFKgSTfNTic8ebJ9pLc=; b=eK+nQS2Aoko7nn/Hwp8NG6xTWIMU9o7rsicA86jWI/hqnzHtvX3hsz6Ozex+GBWt+1 n09i1jpu0+/k02Si8KuL1CL0dPvxc8HnoMdSyP9EQMaKQnNS6rGt8zfn02dt0yM2Gq8C ITkdGB2Hyw5QnhRuq24WDfIQ0C08oQRC+1DLJ/ZpiX5JYqTkOYJZo+iNgGsqarOUUONq UfYb2Va+E/KbHQo3wes0PeRNkqOPKVJFA/kRJx+Z8MO5iu0hatSrc/DdUxGPgt5CA+5i t9gCRLV0h8FyGI6Wc52Mth900QYGf8bQoqcHxKpE3c8Gx/FIXEAFTGnLH5czmj7ZX+g1 rw6Q== 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:in-reply-to :references; bh=3NlsbaVmcGi3otv9ZJ2fHYs8AFKgSTfNTic8ebJ9pLc=; b=l4YeKbvm3ooys9vrnlucxDCTEzEj/2aBy9HaSlTL7rQsfd4Y7j/P83eoL+YLR6sLWq ygz5AQpKVLcXHAPNKNl3qJMmjO/kKgyQPhG31qPPNMnEMugW9VJI1IyQUNZK/pJhezUQ hHCTxtongAzmJssEzO/cpMam/Gy+ZTCwPQfBufXBlcC02ph4UQaU6nv2XFymdzYbXHFU x28JT13f5nYPzCKENMEQ9tjYJbx3q9tEhpgXU2itsjEmZHcENrp46fOUvx8ThJmYskXO +e5DAKRAwlJ8jsHtA0b2h7dE+A8Xc0Qrrx92wVZ67gRyS+V9mUqF42Cv03f1bCA9mHR3 DNQQ== X-Gm-Message-State: APjAAAVBESW3M9eC1DZBXxvycIKkWqIi5HmOETCc6MU8LkvPE8KCljLz ivLMXLlnRw8g56g2tqWpx058gw== X-Received: by 2002:adf:f844:: with SMTP id d4mr25413725wrq.128.1566852308552; Mon, 26 Aug 2019 13:45:08 -0700 (PDT) Received: from mai.imgcgcw.net ([2a01:e34:ed2f:f020:f881:f5ed:b15d:96ab]) by smtp.gmail.com with ESMTPSA id 20sm549557wmk.34.2019.08.26.13.45.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2019 13:45:07 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, Jon Hunter Subject: [PATCH 12/20] clocksource/drivers/timer-of: Do not warn on deferred probe Date: Mon, 26 Aug 2019 22:43:59 +0200 Message-Id: <20190826204407.17759-12-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190826204407.17759-1-daniel.lezcano@linaro.org> References: <20190826204407.17759-1-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jon Hunter Deferred probe is an expected return value for clk_get() on many platforms. The driver deals with it properly, so there's no need to output a warning that may potentially confuse users. Signed-off-by: Jon Hunter Signed-off-by: Daniel Lezcano --- drivers/clocksource/timer-of.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/drivers/clocksource/timer-of.c b/drivers/clocksource/timer-of.c index 80542289fae7..d8c2bd4391d0 100644 --- a/drivers/clocksource/timer-of.c +++ b/drivers/clocksource/timer-of.c @@ -113,8 +113,10 @@ static __init int timer_of_clk_init(struct device_node *np, of_clk->clk = of_clk->name ? of_clk_get_by_name(np, of_clk->name) : of_clk_get(np, of_clk->index); if (IS_ERR(of_clk->clk)) { - pr_err("Failed to get clock for %pOF\n", np); - return PTR_ERR(of_clk->clk); + ret = PTR_ERR(of_clk->clk); + if (ret != -EPROBE_DEFER) + pr_err("Failed to get clock for %pOF\n", np); + goto out; } ret = clk_prepare_enable(of_clk->clk); From patchwork Mon Aug 26 20:44:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 172208 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp4863009ily; Mon, 26 Aug 2019 13:45:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqzijidfDsCQEDKxtTq0IlfCTt+GQ+kxSTa8HIpGQv37/jMxEzV89c95J8aupJ2dmfEMXSND X-Received: by 2002:a17:90a:9f01:: with SMTP id n1mr21392663pjp.103.1566852316929; Mon, 26 Aug 2019 13:45:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566852316; cv=none; d=google.com; s=arc-20160816; b=R0E1UTn/XPb1yzzksPns7fj9Mb2wXplJKjWR0J//KRSwOrofNJTtNQYy/MuyAIWkJt f5vkEA39MYT8ODIHQ2t93mk+5AOdvz44mvIaeXBUPdZuAjFcUc3gOOUh+lLALjZSZwaq KbFVdkGaGuDDtr7UF8Ci+IypXrUVmYhUJ5U27ShSEbnvgYGfJJEc6kNADHa4Q7WsvrDR +u4k5V0b96659l0wiJCySLzkgWoYqqR8JZmXw7RZRuAq7AzO0X45TUmp0UmrqFXlFpEN OUr2GnNsBTr7njXAkmzzb73kp4ZabGCA3Pnbcl34VVjKU46AaG8sng6+++HVcWeMnVtM UNzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=OA1YNeBx+8aF3UbvHkUdfo5e5H5+BTnVhu+4DZoJ9fU=; b=MgetRci2GzvzB0gPnftZbX9RkP4BC2zC/o5uozSgyImSNWmIgt+woTrlqIrxq8zJ9a +qr/BskqEc0M010PBQQ9JjEu9p/ej2dNKuy1e8KxbL1Khj19TQTvOw9dxbvJuwIHaYwa xI890L5TLGF8pt7J8vvWPKSF+eERIU/s9NZSNxSI5WsvkAAICtkhuE/MVnJhbQrwfne3 XsxV60YVsHcFxmstYNF+1unGl7TowUY2UtWLtBEnDm72j5kx+BkEOi3LhVIPJr6aKAXK FSontrbm1V0bxJQ9F70cRBn8qQRCInWaSLS990Tljv/ZyD/QeYCurkPvfFLSaryBfidy 79bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Qw2CYVIe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (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 c1si10944517pld.348.2019.08.26.13.45.16; Mon, 26 Aug 2019 13:45:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Qw2CYVIe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731490AbfHZUpP (ORCPT + 28 others); Mon, 26 Aug 2019 16:45:15 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:53731 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731391AbfHZUpM (ORCPT ); Mon, 26 Aug 2019 16:45:12 -0400 Received: by mail-wm1-f68.google.com with SMTP id 10so795084wmp.3 for ; Mon, 26 Aug 2019 13:45:10 -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:in-reply-to:references; bh=OA1YNeBx+8aF3UbvHkUdfo5e5H5+BTnVhu+4DZoJ9fU=; b=Qw2CYVIes9ZxpQuAYS32DRr3g29lH2pNz7f0H8wnHGokAThyoTkArELW7SBmIbbV4c P5ns7XUOrNA0fohmMs7EufD86nZuSwaa28iWg6d6KgRf8mE7NhIQE21+NORL44Bzauk5 +MhPJelvveOCWo4yldg2pTnjYn+K4ieQnUaZnGgDtdCCU0Hg8iw5dJ3CzNtxlE2BXHAr NYxy2WUBj4jK9FyYNOXPytaY7RwYVkNrQFGFbkSvEj38CqFm2rRr8BEJdk7OwkroI+Z0 7DnQAqoIri/Uad1ZReHtuhO6q5dcDLoNJ3A/zUbWq8LkopJwXu4EcQkWAX/UIlbSJwnK PKSw== 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:in-reply-to :references; bh=OA1YNeBx+8aF3UbvHkUdfo5e5H5+BTnVhu+4DZoJ9fU=; b=PChVKXXhl4zLLAzvbYnTGzxME6Wv+WfqtLgODXlmq7RBzPXyfKVcBW1S4nktXnKmZt ID+OJEx0Q3BU50DbJ7uCvgiPqLLnBgsDuk7e9yEkDQCJGu2u4xB29D1uqEJxpLyb72XX 5Rl6xhzDzAck/Zw279ujiO7Asze7BawXfuS6BF2cmXFpJOXo2G8roFHgzlSs7+W9oDq8 eEZNrad28WR/EuVIUCQG1hYMbQXhaCWQWOawSfFAENC8EUiSVCgnLkrFcezoLyOL8Q6s 3eFbu9LV3E9doGbbdh2BfPoWCa1/aGMYiw4nrTIfzlFc3PpGl3608gEKY1dBbqTnOIWu D+Ag== X-Gm-Message-State: APjAAAWfhH+5ICrqL2LktqkVFTfTEGeVPIdMoXOpizw01lXSv4bxVuw3 O/1n9ItwGXp6CK+pjNTrp5LiVi1OW+M= X-Received: by 2002:a1c:45:: with SMTP id 66mr23577980wma.40.1566852310139; Mon, 26 Aug 2019 13:45:10 -0700 (PDT) Received: from mai.imgcgcw.net ([2a01:e34:ed2f:f020:f881:f5ed:b15d:96ab]) by smtp.gmail.com with ESMTPSA id 20sm549557wmk.34.2019.08.26.13.45.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2019 13:45:09 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, Jon Hunter Subject: [PATCH 13/20] clocksource/drivers: Do not warn on probe defer Date: Mon, 26 Aug 2019 22:44:00 +0200 Message-Id: <20190826204407.17759-13-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190826204407.17759-1-daniel.lezcano@linaro.org> References: <20190826204407.17759-1-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jon Hunter Deferred probe is an expected return value on many platforms and so there's no need to output a warning that may potentially confuse users. Signed-off-by: Jon Hunter Signed-off-by: Daniel Lezcano --- drivers/clocksource/timer-probe.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/clocksource/timer-probe.c b/drivers/clocksource/timer-probe.c index dda1946e84dd..ee9574da53c0 100644 --- a/drivers/clocksource/timer-probe.c +++ b/drivers/clocksource/timer-probe.c @@ -29,7 +29,9 @@ void __init timer_probe(void) ret = init_func_ret(np); if (ret) { - pr_err("Failed to initialize '%pOF': %d\n", np, ret); + if (ret != -EPROBE_DEFER) + pr_err("Failed to initialize '%pOF': %d\n", np, + ret); continue; } From patchwork Mon Aug 26 20:44:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 172215 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp4863542ily; Mon, 26 Aug 2019 13:45:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqyfK9Om0YuAdOk3yrnLkB+dZmFb8rpiIQi5vqqZIRVnbPx6/erdq3cCDchl9qLCJqc7+7ES X-Received: by 2002:a17:90a:2525:: with SMTP id j34mr22439415pje.11.1566852343847; Mon, 26 Aug 2019 13:45:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566852343; cv=none; d=google.com; s=arc-20160816; b=iZUY/Db4p81w6DvaUzI7ZPCFlCg7MaQ+M4dbDSrTsrrPLfWmkbfMFT1EC4nu4uzZPw wVeD0A+nT2X9t5EWrixZAb09/REWaJsZuqD/8y7RHakXXiVx4xh1zVOtxCFmtMvPxn4H 7oFRYGIpEyTV81PNDxUIGOOStSObBqFwhXKoeLpjfeUPdWLAfd/4JtrBXmID08zedhxA 8iJuDl5XyIukN4JhRdpCe5umDGRbRS1N6VC8QG/c7+i60Wl6VOivXjQCuEGoyw7wFNUk Y/zcp1CpIh9c6s47Gfxink/hrHiunk2wjqkZn1/v6apfbr8lHU6P5K234Smp0wH7wU/B fS1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=9a/nmo4HleHfZCRi8ScPQm/5Ra82K05ffJZThzk2QTs=; b=JBdftwq8B2TuTdhfv17dpt751XSZ1/USvojF+ZncsAmKlmLxv0Zh58I0XOq6WBsw1H IX1og1+jVKDaTR5lQF36ZxsWWbhi/oKy6o8xajkW0KkxiHf8nfiaVTsCB4FN73QxOOIn goTXx0rNvnwn3v0PoQIUf6bCMIFrsAixotJZhidoTMInJ0DfDkInf0u9+oh0VPsnLHPn g1U34g/qhGJxFwKkS+uhXmy7D0w8deUybvbju4v/tBE2gC3n35taPjkEntpz5qAukO14 vTURPnDMpzoVdvQgRhbOy/n/wATCx24K7FHghYWKBGgD0YIhadKQa6u0rQ4RFRK+3nbb f5cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lu16lKE1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (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 x78si10176881pgx.471.2019.08.26.13.45.43; Mon, 26 Aug 2019 13:45:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lu16lKE1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731929AbfHZUpm (ORCPT + 28 others); Mon, 26 Aug 2019 16:45:42 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:55806 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730637AbfHZUpO (ORCPT ); Mon, 26 Aug 2019 16:45:14 -0400 Received: by mail-wm1-f66.google.com with SMTP id f72so785981wmf.5 for ; Mon, 26 Aug 2019 13:45:13 -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:in-reply-to:references; bh=9a/nmo4HleHfZCRi8ScPQm/5Ra82K05ffJZThzk2QTs=; b=lu16lKE1wbTcy6ZNuBOuRforM5MbT2Ne+jnJr2rCMLswpVp64GS5nb7iwRBo7I8c6M rX+O3u3ymVJkV9apnlC3ZI/cMWFyT9Rz7DEJJG9EzUyal8EppWDAr9sK1sD6wwDVhlVj XaOL2s+XnmCRx9ULx5G322klxXolV0bnJUOnMAiUtjUy3AqXOgljde2E0gh2eA03YngG bGxbow8Yj1Fx8zoJ7LmY5tiObI3fpgUivUiGxLdUwIsDRl3Z7Qe/n9UXvVb0NpY/ojOu +17bew2ZTM3RKOe1K6F5rfbLo4EACqJQM1I4MUBka47TkaOtmvHoHASXAjISRmbbwCmV 7nqg== 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:in-reply-to :references; bh=9a/nmo4HleHfZCRi8ScPQm/5Ra82K05ffJZThzk2QTs=; b=QdGzY/m372TQDO7zPmfio8cK7fPfER0qWjXXvM8lUFwXZKxLqQJ5DOQMkqyNcZ5t6/ GDOHHFVFWk2cawX6PEZWikxzDbb77UdTPBuzlgqg/hye/Ut319sYxwUOZUYMhBrcVs3n bDx7Ord+ZzzGRsSdk5Mfjm5SsaQvI/JSeNgML9x/RFpSyOgvB+XMnczkI5JhJw84mwzA mQltlvpc6hlX03oLXP4vTdh47dqPcdWMFLO4Nl2qa8OWb6rc2NNnepVuaMCIDDsc/ttK M8rzcxWHhnFvm+uNiFOoVUUmIY5jRCTDkVWrRne2JpTRP98LWzm+OjIwwgeAk7jVxxOV QmLw== X-Gm-Message-State: APjAAAUsFqkMitulOfpYLxT6DV4wQ17WOPI93+u0DWVNgb8/oXs0jDcm 0iYO/Ys57/jUZtJ+q98NSNsR7kG4aRU= X-Received: by 2002:a7b:cd17:: with SMTP id f23mr24509458wmj.177.1566852312285; Mon, 26 Aug 2019 13:45:12 -0700 (PDT) Received: from mai.imgcgcw.net ([2a01:e34:ed2f:f020:f881:f5ed:b15d:96ab]) by smtp.gmail.com with ESMTPSA id 20sm549557wmk.34.2019.08.26.13.45.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2019 13:45:11 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, Magnus Damm , Rob Herring , Mark Rutland , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS) Subject: [PATCH 14/20] dt-bindings: timer: renesas, cmt: Add CMT0234 to sh73a0 and r8a7740 Date: Mon, 26 Aug 2019 22:44:01 +0200 Message-Id: <20190826204407.17759-14-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190826204407.17759-1-daniel.lezcano@linaro.org> References: <20190826204407.17759-1-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Magnus Damm Document the on-chip CMT devices included in r8a7740 and sh73a0. Included in this patch is DT binding documentation for 32-bit CMTs CMT0, CMT2, CMT3 and CMT4. They all contain a single channel and are quite similar however some minor differences still exist: - "Counter input clock" (clock input and on-device divider) One example is that RCLK 1/1 is supported by CMT2, CMT3 and CMT4. - "Wakeup request" (supported by CMT0 and CMT2) Because of this one unique compat string per CMT device is selected. Signed-off-by: Magnus Damm Reviewed-by: Rob Herring Reviewed-by: Simon Horman Reviewed-by: Geert Uytterhoeven Signed-off-by: Daniel Lezcano --- Documentation/devicetree/bindings/timer/renesas,cmt.txt | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.17.1 diff --git a/Documentation/devicetree/bindings/timer/renesas,cmt.txt b/Documentation/devicetree/bindings/timer/renesas,cmt.txt index c5220bcd852b..45840d475050 100644 --- a/Documentation/devicetree/bindings/timer/renesas,cmt.txt +++ b/Documentation/devicetree/bindings/timer/renesas,cmt.txt @@ -22,6 +22,10 @@ Required Properties: - "renesas,r8a73a4-cmt0" for the 32-bit CMT0 device included in r8a73a4. - "renesas,r8a73a4-cmt1" for the 48-bit CMT1 device included in r8a73a4. + - "renesas,r8a7740-cmt0" for the 32-bit CMT0 device included in r8a7740. + - "renesas,r8a7740-cmt2" for the 32-bit CMT2 device included in r8a7740. + - "renesas,r8a7740-cmt3" for the 32-bit CMT3 device included in r8a7740. + - "renesas,r8a7740-cmt4" for the 32-bit CMT4 device included in r8a7740. - "renesas,r8a7743-cmt0" for the 32-bit CMT0 device included in r8a7743. - "renesas,r8a7743-cmt1" for the 48-bit CMT1 device included in r8a7743. - "renesas,r8a7744-cmt0" for the 32-bit CMT0 device included in r8a7744. @@ -54,6 +58,10 @@ Required Properties: - "renesas,r8a77980-cmt1" for the 48-bit CMT1 device included in r8a77980. - "renesas,r8a77990-cmt0" for the 32-bit CMT0 device included in r8a77990. - "renesas,r8a77990-cmt1" for the 48-bit CMT1 device included in r8a77990. + - "renesas,sh73a0-cmt0" for the 32-bit CMT0 device included in sh73a0. + - "renesas,sh73a0-cmt2" for the 32-bit CMT2 device included in sh73a0. + - "renesas,sh73a0-cmt3" for the 32-bit CMT3 device included in sh73a0. + - "renesas,sh73a0-cmt4" for the 32-bit CMT4 device included in sh73a0. - "renesas,rcar-gen2-cmt0" for 32-bit CMT0 devices included in R-Car Gen2 and RZ/G1. From patchwork Mon Aug 26 20:44:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 172210 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp4863097ily; Mon, 26 Aug 2019 13:45:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqzMATa62UADvRTmesRIHdA43uJJtmNMMmyrUXtFnXm8S3QWSyVZhuV3aOLwwLbWBzGBkjs3 X-Received: by 2002:a63:124a:: with SMTP id 10mr9991121pgs.254.1566852320682; Mon, 26 Aug 2019 13:45:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566852320; cv=none; d=google.com; s=arc-20160816; b=nuuuzWFqDSJMqRYfnqDPmhJX6jIEMiAMHz+LoAdxtlqopI8gKn4ZVJ/ZbX2r9XLPPj 3HcIsw7nlORcytTf64XBP108Na8roVX8EBQDVBQUfkPFBEkUZdZKUNTMO9hq4vcIt/gO gs/MATK7tjyf09dPrnE+0ew4C6lDvEr6nnOccaxoPyWLZ49Y/MauPTfHlgHlrMQiMMrs QftLUnghnKKpB+3f/QcuTChmfM+6BHYJo5jCJ8vGgwle1bLI9nZ2r8E6GRKfO+okLhoG H2nWj4CjSJgKYGZDmvvmNm7MjFqpdl0nER1H5JLz/S42UYzluL2cA1pWWmukfP7FA2zt s4RQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=v0Q9LIYPLT9Xb7NvIePpDRDG5Nr2ZHct1pfdK6Hsxio=; b=cqH/jcR1uEvZYQCchZ3Jnf3JsUov6QDnjn7ukRoLXbDyZhQRBcEo+/95wehmfP9Rei 1yGcXvXvayyGvV23ETdjNqeoNhDGNaMnjaYQN0PS7cMWDMuU1hwQXr1ZCMpAqAQ47AVo FErjnzcMEiYY2M0jf6fz6SdTFxEvDNsarrrfQB40+s3a23cuj42aBC2wI5aaFZRTOKzz 1XNSh0jlymEsVALce0ETtEVwnC2eRnxkVdEGYToNRGaw0Mb3vFvYK4pZVQ/oxGxXxAW/ eUd9HuPBA0+Aq4A+TprwXX8/evEresVUBjFIVmLyhEqhjekgQ4Aafyn3SW+az8nyMI4N 8n8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vy7I7i7S; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (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 66si10670205plc.428.2019.08.26.13.45.20; Mon, 26 Aug 2019 13:45:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vy7I7i7S; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731673AbfHZUpT (ORCPT + 28 others); Mon, 26 Aug 2019 16:45:19 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:36491 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731535AbfHZUpS (ORCPT ); Mon, 26 Aug 2019 16:45:18 -0400 Received: by mail-wm1-f67.google.com with SMTP id g67so795213wme.1 for ; Mon, 26 Aug 2019 13:45:16 -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:in-reply-to:references; bh=v0Q9LIYPLT9Xb7NvIePpDRDG5Nr2ZHct1pfdK6Hsxio=; b=vy7I7i7S9FlvZ0b7EumKVxLiBMBpKHKQiYAtIonVY+8p6F+86IuWJSe2EQrzseCoim /962hHWAX71X/Z9xnmVkOMSJuxnPT58lNz6Rq4aAue+g6DGGRGJysWNzUrHi9RBVKs9v WBTviGTDmb5qhKP3HgN6OKAQh8KXVDzTVZtse5ZLrgVnVz1BfbxOXgygmC0+nnshbDgE aOIRPI+1L5lQWRTMnTADfYj46ZkU+kuprPgsh/+7MOd/BL8OVtThD0o2/5Vm9h0S8DVa RZmlU2v4QlJ1JucV+7f8X9e+8LS8BnZQt8TamK4JIUiE/cLiiUu7tdYLv8VBj8h1v4+j g0mA== 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:in-reply-to :references; bh=v0Q9LIYPLT9Xb7NvIePpDRDG5Nr2ZHct1pfdK6Hsxio=; b=ZkaRLMrDDqa0fKGfwhQ5bPXPPpVcJYTq1EZfu5Y3fOs9MtwQWy2bDKRKTEARxtgTwz dmVaRPHnEXvMS4CwvUMQPXte8G/EZsaY5k1dJ8/GTOruOirSjaBIzaXfvFmROMvDLlmh Teiu0+Oerw2x/UGC9NDzaEnOrM19JU3P2zfKGVSEc1NFG0zmjKbU3dOcyczI7KRbJE+I ndLhLzr/in8GtquyRmE5XZXL3eI8fbF7Q0SgbLR9Rf+mvJQRFnfPYYH7psnsKlpSfwPA oBraphKXOSfFOuYkrNfukQ9WPjdrpSQ/8iQBHCFdlR89Dq2503+BWLtZQLX4H7a0CbND tr7w== X-Gm-Message-State: APjAAAVzhKl4+T/pOs/Tu8AIRFKs9nA3aORF/wIsSDEgVXzUw1Y5BKeK NQGrwM7/QYZfhkldjV5l+6z4eQ== X-Received: by 2002:a05:600c:254a:: with SMTP id e10mr25254651wma.113.1566852315736; Mon, 26 Aug 2019 13:45:15 -0700 (PDT) Received: from mai.imgcgcw.net ([2a01:e34:ed2f:f020:f881:f5ed:b15d:96ab]) by smtp.gmail.com with ESMTPSA id 20sm549557wmk.34.2019.08.26.13.45.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2019 13:45:14 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, Magnus Damm , Rob Herring , Mark Rutland , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS) Subject: [PATCH 16/20] dt-bindings: timer: renesas, cmt: Add CMT0 and CMT1 to r8a7792 Date: Mon, 26 Aug 2019 22:44:03 +0200 Message-Id: <20190826204407.17759-16-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190826204407.17759-1-daniel.lezcano@linaro.org> References: <20190826204407.17759-1-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Magnus Damm This patch adds DT binding documentation for the CMT devices on the R-Car Gen2 V2H (r8a7792) SoC. Signed-off-by: Magnus Damm Reviewed-by: Geert Uytterhoeven Reviewed-by: Rob Herring Reviewed-by: Simon Horman Signed-off-by: Daniel Lezcano --- Documentation/devicetree/bindings/timer/renesas,cmt.txt | 2 ++ 1 file changed, 2 insertions(+) -- 2.17.1 diff --git a/Documentation/devicetree/bindings/timer/renesas,cmt.txt b/Documentation/devicetree/bindings/timer/renesas,cmt.txt index a297fca5b61e..5b7690ae8b9d 100644 --- a/Documentation/devicetree/bindings/timer/renesas,cmt.txt +++ b/Documentation/devicetree/bindings/timer/renesas,cmt.txt @@ -35,6 +35,8 @@ Required Properties: - "renesas,r8a7790-cmt1" for the 48-bit CMT1 device included in r8a7790. - "renesas,r8a7791-cmt0" for the 32-bit CMT0 device included in r8a7791. - "renesas,r8a7791-cmt1" for the 48-bit CMT1 device included in r8a7791. + - "renesas,r8a7792-cmt0" for the 32-bit CMT0 device included in r8a7792. + - "renesas,r8a7792-cmt1" for the 48-bit CMT1 device included in r8a7792. - "renesas,r8a7793-cmt0" for the 32-bit CMT0 device included in r8a7793. - "renesas,r8a7793-cmt1" for the 48-bit CMT1 device included in r8a7793. - "renesas,r8a7794-cmt0" for the 32-bit CMT0 device included in r8a7794. From patchwork Mon Aug 26 20:44:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 172213 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp4863397ily; Mon, 26 Aug 2019 13:45:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqz566R4++PuXWoVye9SItu4DeKrQOqDrtfqFgpECffhcegQRJAMNEktLWj7VBXyd2Z8IJBK X-Received: by 2002:a17:90a:9f01:: with SMTP id n1mr21394183pjp.103.1566852335405; Mon, 26 Aug 2019 13:45:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566852335; cv=none; d=google.com; s=arc-20160816; b=VfqxXTvGQtyLsQRqvm7SvaQHZAw6wG7G2gydZripN1w+eMWlO5JYuju7FWGI4Zjb5t Dkk9nGSSuE060pqqe3yVHrp5cUX731iSkVQqRohn03jWhai0+/YnAAt25I2qxRpNUWYo TuZluMOfiXzDkaj6TtpSPSaTygU918GliPk1fMidA+DDT38vksP+L7BkyevxfA+Wv9M/ PcTJdu2shKa4eWU25xVXb/vywvlN//hFvZVYjRjVmxitpHS/mJHTuHi2r7K0KYvI4AM9 xg/5Hqkkhb9vGu/BeywCvpOusZ6BoRLA5St0LGX3Irneb8yoLY+6V2ZdLVBKaku4Q3c7 tsxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=Pfgll+eOW/8GRcD+GQOG9wsokOGoEsAY+zrwwcHk0F8=; b=gbnl+6NYiqpJGZVf6z72m48Lu2E5LC54wcMU5+GaJkkzszXFfgxBGYq/6yMsR6bUCj mG5wa3b71vaLRQ6wZ8Ori4dO3W/EwnOmd/gLDnvB3XRvz3LOCiowXejjQVbCd5OOr02T B7crk+n0A1UcoKudkXIsVYvbs+0GlFRUEhyXNoDJ2yRepkSWlWgb+Z0zFkMTJXikERHs TDodTAOrAqaRXY9sA0k+mr9EmsCVthxz47w5VhADGleLTgguzmBq0LhtxFrYVxqdIdHs u+PPpL1I+MvUMY/DpfAh/CiNgl95to2E6sKVR6xS8jeNslt/rAFBHT/27D9IbMa3G1/V iNCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tw1HgwV+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (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 x12si10523169pln.219.2019.08.26.13.45.34; Mon, 26 Aug 2019 13:45:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tw1HgwV+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731889AbfHZUpe (ORCPT + 28 others); Mon, 26 Aug 2019 16:45:34 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:33192 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730869AbfHZUpZ (ORCPT ); Mon, 26 Aug 2019 16:45:25 -0400 Received: by mail-wm1-f66.google.com with SMTP id p77so837499wme.0 for ; Mon, 26 Aug 2019 13:45:24 -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:in-reply-to:references; bh=Pfgll+eOW/8GRcD+GQOG9wsokOGoEsAY+zrwwcHk0F8=; b=tw1HgwV+d1ZLCN/W6jJUD6Gh5yZk3O2sSimFrMoNkvGT9EIzDYAJHZtayb0QXaZQID sYZu5wITzd9MsJamY4tu9/XBZWGSLBjZUdoIGExzeowfcg0fL3Im+8wu6kl2Z3PDU48N iZQopI5eiHQNT6Qn0FVQDQzx/fi7gBjm7k82utxYzHlp7PDsvfGiPtAaImoVQLYrHX4n 5BiZ8k5vC85RH0gsqu6DXVaLAGd7WhRHiqvF4GVnMkVIjCJWikzlVj3jY0dS8j5GEo2W 9/Aq424qST1A14EWnRaP+y4eOErz1EKhAEe6o+x0nB8jAyI+GaYiPtCvb3z+nqDIjN/1 08rQ== 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:in-reply-to :references; bh=Pfgll+eOW/8GRcD+GQOG9wsokOGoEsAY+zrwwcHk0F8=; b=aFgXbACIgwvXKQ3Rcb6MztGB49NRXywR8xFYdW0lfo0oPb9BK2qR1J/W00ttPc+Clc GZUW9/IW0fo2ydsLrJSOK7KpQO97d4MtBCths6bFRT57f0mjEK0TCZgoK5pQS8BQw1EC RQnO6LU85g3Ej0LFzf+gyJKcw0+4igbvaM4nnU+nAfwwMQG0qizZAiy9poiepCWrKDah /t9r47JwIqWv7PFI7fjvc1SfrBlAuehzgBUZH2LrL68TwVDi5h6sGZnM65Ui9APb3Wq+ +BpQYkibj6w8g5IkZz8bC4YkaS6Irf+HrEe0eMvuMWLrbK8QqZdhhDPOTmcZZk7X/+H5 KxtQ== X-Gm-Message-State: APjAAAWNvkb5KXmE4Cs2oKdxVMGVv7U6iRPQJsSHtY/rgXg5A/eCd+Aq GYaLvTBE29TK8g9Jn+d1u+dPwQ== X-Received: by 2002:a1c:4383:: with SMTP id q125mr5700230wma.16.1566852323451; Mon, 26 Aug 2019 13:45:23 -0700 (PDT) Received: from mai.imgcgcw.net ([2a01:e34:ed2f:f020:f881:f5ed:b15d:96ab]) by smtp.gmail.com with ESMTPSA id 20sm549557wmk.34.2019.08.26.13.45.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2019 13:45:22 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, Magnus Damm Subject: [PATCH 19/20] clocksource/drivers/sh_cmt: r8a7740 and sh73a0 SoC-specific match Date: Mon, 26 Aug 2019 22:44:06 +0200 Message-Id: <20190826204407.17759-19-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190826204407.17759-1-daniel.lezcano@linaro.org> References: <20190826204407.17759-1-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Magnus Damm Add SoC-specific matching for CMT1 on r8a7740 and sh73a0. This allows us to move away from the old DT bindings such as - "renesas,cmt-48-sh73a0" - "renesas,cmt-48-r8a7740" - "renesas,cmt-48" in favour for the now commonly used format "renesas,-" Signed-off-by: Magnus Damm Reviewed-by: Simon Horman Reviewed-by: Geert Uytterhoeven Signed-off-by: Daniel Lezcano --- drivers/clocksource/sh_cmt.c | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.17.1 diff --git a/drivers/clocksource/sh_cmt.c b/drivers/clocksource/sh_cmt.c index f6424b61e212..abf5e7873a18 100644 --- a/drivers/clocksource/sh_cmt.c +++ b/drivers/clocksource/sh_cmt.c @@ -924,6 +924,14 @@ static const struct of_device_id sh_cmt_of_table[] __maybe_unused = { .compatible = "renesas,cmt-48-gen2", .data = &sh_cmt_info[SH_CMT0_RCAR_GEN2] }, + { + .compatible = "renesas,r8a7740-cmt1", + .data = &sh_cmt_info[SH_CMT_48BIT] + }, + { + .compatible = "renesas,sh73a0-cmt1", + .data = &sh_cmt_info[SH_CMT_48BIT] + }, { .compatible = "renesas,rcar-gen2-cmt0", .data = &sh_cmt_info[SH_CMT0_RCAR_GEN2] From patchwork Mon Aug 26 20:44:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 172214 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp4863327ily; Mon, 26 Aug 2019 13:45:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqyVBLEPHmITbwsUd0YwsGkGJHytzMXdDQmc3vncok0f/fStIVWvj0nnY8uxYfLG/b1ZZfOz X-Received: by 2002:a17:90a:fe07:: with SMTP id ck7mr21301449pjb.68.1566852331458; Mon, 26 Aug 2019 13:45:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566852331; cv=none; d=google.com; s=arc-20160816; b=EYc5cqvX6gQWo6uMk+qt3lmI3T/hPoD9RyjEgfZbDZCQa/uQsdV/gdsSFjeIgHn/cA SZ+/fOanpkEibH0t8iU/6ZUnt3qOj5yVMWL0KEWCGRqKDswV+BcgrsOWTGXdaXNL4DLT AjTPfOZlWLeI6r9qd1X/MiaOeUOCaZmYG4JHBaFkjqhUBSEzzVQLQ6DGGmgI/EQA3Ojo CPerLp1f7/Lys235eoDMloNxZGzRph8CZeqdrYGXHeQeYmrmmr8VXVrUcdSqKKPXycv5 gJM5AvV9JVGXtrxDLF7ajPtCywvMmlsz/acbDkjxbZ6MKMUtYS+zAo9IBsv4yJPrVRtM Zr5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=DL5ho5ogXD9UU1gNrTmxuX/cRnYC/JufDAd8jnPhLU8=; b=P5ZQLS0C34XTuwDtoqthM8smrKUOz6mNpS90pqH18Pqy1P9WIDe5fRgV9oce+8lHGs Pus8kadc47nl/rMaXg1I0dO9gjcNXM5zr9/Tl/xWJFuxn8jOJpNcaHYvfkM8s4dpWwDD +oSdtPtlCh+uAFqB4MrcU5rgFrDRwzR5F4TaAUHFOIEY9Jej53DkVOU9G3Kek7ns2Nuj +KOVQkFN/XMos49n+cBfBQjjSFnYz8TqkJ+knY1c7jWfVo2Z/s3prMj2KerydzgkM2WO 25c92N8nb7xVFS144UBnxgQgC7wJitfyHZZGgZsN1EmPHP/p1GeA913tEf4FEhcZEL9E ffQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O0qgYTMB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (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 z9si10498517plo.66.2019.08.26.13.45.31; Mon, 26 Aug 2019 13:45:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O0qgYTMB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731828AbfHZUpa (ORCPT + 28 others); Mon, 26 Aug 2019 16:45:30 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:40828 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731778AbfHZUp1 (ORCPT ); Mon, 26 Aug 2019 16:45:27 -0400 Received: by mail-wm1-f67.google.com with SMTP id c5so770058wmb.5 for ; Mon, 26 Aug 2019 13:45:26 -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:in-reply-to:references; bh=DL5ho5ogXD9UU1gNrTmxuX/cRnYC/JufDAd8jnPhLU8=; b=O0qgYTMBwQgISyOnTTu06pp+uxRjjHN8r39V5SZVrkDdNLsdPnMnXwN5T1gqRlZp5d SlRu4MC/nQwItKF5a2ZP6iAljVTtQOxK1/4Uc7sh9aMSFPD/d7N4sBpCPlCrzR9MKnw+ g9TfXAriI1TEk3k44Of9sLU5LrKO1kZchuhTu4HA8D7o5owIdcAa8cqJqenGtE2e7Vgt BC2ieLh5ZjlLV/3UubHuWhYRcKOD9QsNTCIjx9TZMDmfD7cVWYJsIL5XGMdqWu9dB84s OjGc6kgV3RlDdmx3zx4GbHWLo37auTyivHNW4wEC68FtaeUF2LSoJT6b8cDQMRr4yMUV 958A== 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:in-reply-to :references; bh=DL5ho5ogXD9UU1gNrTmxuX/cRnYC/JufDAd8jnPhLU8=; b=VclR+SSJPklxwyJzRQXx88leYrMP8X3CbjHSeCuDjoVCuUniNtFeivP8Dz3RuTyq59 S/S43B+XnODRScwRRgt/zbHQjyZmFHrmX12gmB9/FvMTODgyn4rlWthBgJuU2k3ybmKf yhmldhG4Hum2C85Vf2xt7yWzWhmAR7afe6j4E4OX1YLPI0bfgTXr+ioPWg5cz0RphAz1 FoxCH4CfOFdhZUgZN5X8yQ0nMYIo4lb5YF5sKnSvTGHiPVl71HrWt82/RXViiziym8RM Pc/Is25lGH9EcfNE1F6KjZ6jFO7+tsYaMokCXhNzraDgseEw3Vns2gG26GgACJZM6NZA BrKg== X-Gm-Message-State: APjAAAXrxNKvAGoO+R+k1jxIJ0odJeuXYdiQSBTfcJ5J3AQLUeIGQG87 rG5VwFnIWaX821L9S9o7LqaIsQ== X-Received: by 2002:a1c:4c04:: with SMTP id z4mr23868325wmf.1.1566852325877; Mon, 26 Aug 2019 13:45:25 -0700 (PDT) Received: from mai.imgcgcw.net ([2a01:e34:ed2f:f020:f881:f5ed:b15d:96ab]) by smtp.gmail.com with ESMTPSA id 20sm549557wmk.34.2019.08.26.13.45.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2019 13:45:24 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, Magnus Damm Subject: [PATCH 20/20] clocksource/drivers/sh_cmt: Document "cmt-48" as deprecated Date: Mon, 26 Aug 2019 22:44:07 +0200 Message-Id: <20190826204407.17759-20-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190826204407.17759-1-daniel.lezcano@linaro.org> References: <20190826204407.17759-1-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Magnus Damm Update the CMT driver to mark "renesas,cmt-48" as deprecated. Instead of documenting a theoretical hardware device based on current software support level, define DT bindings top-down based on available data sheet information and make use of part numbers in the DT compat string. In case of the only in-tree users r8a7740 and sh73a0 the compat strings "renesas,r8a7740-cmt1" and "renesas,sh73a0-cmt1" may be used instead. Signed-off-by: Magnus Damm Reviewed-by: Simon Horman Reviewed-by: Geert Uytterhoeven Signed-off-by: Daniel Lezcano --- drivers/clocksource/sh_cmt.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/clocksource/sh_cmt.c b/drivers/clocksource/sh_cmt.c index abf5e7873a18..ef773db080e9 100644 --- a/drivers/clocksource/sh_cmt.c +++ b/drivers/clocksource/sh_cmt.c @@ -918,7 +918,11 @@ static const struct platform_device_id sh_cmt_id_table[] = { MODULE_DEVICE_TABLE(platform, sh_cmt_id_table); static const struct of_device_id sh_cmt_of_table[] __maybe_unused = { - { .compatible = "renesas,cmt-48", .data = &sh_cmt_info[SH_CMT_48BIT] }, + { + /* deprecated, preserved for backward compatibility */ + .compatible = "renesas,cmt-48", + .data = &sh_cmt_info[SH_CMT_48BIT] + }, { /* deprecated, preserved for backward compatibility */ .compatible = "renesas,cmt-48-gen2",