Message ID | 20221206115728.1056014-11-msp@baylibre.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2775764wrr; Tue, 6 Dec 2022 04:01:18 -0800 (PST) X-Google-Smtp-Source: AA0mqf7gLQkQgCm+EbMlZdlniyZaDVzugItdBpbXxST6O4m+Pv59uKBiglNcsbEdVHYUnL+8HkC8 X-Received: by 2002:a17:906:8e91:b0:7c0:f683:e7fd with SMTP id ru17-20020a1709068e9100b007c0f683e7fdmr1024266ejc.193.1670328078123; Tue, 06 Dec 2022 04:01:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670328078; cv=none; d=google.com; s=arc-20160816; b=WuKj3jn7bEcR2+jRrIINf7SgJLiA7SVFWnHNEvF76pVV5u2S+XisR3S7aJvdKoINZk 9/HCzpZVWbZP89nAddt8GdMzzyMze5/VwupaCF+LiAeSQo5FA9yFeAlnaTwnBjyPYrnh qJfWz1QKFKebli2OjwEFfPDuuAqyXukGELcCzY/Xu9i28U7wV6kGsX/fmh7/g4w48b93 C1wK/oV5I1fUlbLGikpmOlTDYnR8QJsf1otw0fCzSeMFWy/IdUE9CgqE0d4GDTYLRbQd bG7rWOO54bBBCy7UifW+t8UF243CZEYbzmXzO9OyJ/pi9JIir6sqcxoTM+Hsbh7V3WHK mHUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=kMpVZlkR98KLQohjfLGaqieOVI5mlDmYYzLpVIJ3+Co=; b=YL9dl6WP2qmWh8/7s4DqvhZ36QDYoA7YnPLZDMYWUO6mIoPiYXJUAQ1CcVNca2m8KI BiYvJGaQ8ukqB/OrK3xcj9ytqUN8TYV44LndtUECB/VhoKWjsGEHEOI+UZmKkx5YWEyN FH5xeDZXZr4LSA3bSqEocJNp76dSa78DcnkgJ3cPpIzbjhbbbltKuT/95aykQ8U2GaIZ UzImZGs/wUWfRgVSgn3kvBPykNkBHD120V/sQHYRpbByoAuVFv4cSE5zh56MYBEBn1we UOWW45cBj9To1Cb6eB/vyA+CaJYmJVWXqjaXMGSUS9rZxC1umF5oZ4eOiyMWALhzEbmR Kkug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=CNSjIQxz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mp27-20020a1709071b1b00b00781c1645926si14240890ejc.524.2022.12.06.04.00.53; Tue, 06 Dec 2022 04:01:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=CNSjIQxz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234286AbiLFL6a (ORCPT <rfc822;jaysivo@gmail.com> + 99 others); Tue, 6 Dec 2022 06:58:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235175AbiLFL5s (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 6 Dec 2022 06:57:48 -0500 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06421B7D6 for <linux-kernel@vger.kernel.org>; Tue, 6 Dec 2022 03:57:46 -0800 (PST) Received: by mail-ed1-x530.google.com with SMTP id f7so19931372edc.6 for <linux-kernel@vger.kernel.org>; Tue, 06 Dec 2022 03:57:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=kMpVZlkR98KLQohjfLGaqieOVI5mlDmYYzLpVIJ3+Co=; b=CNSjIQxzqCV1Ed/RyG27x1c8mgM8Tm7zw0uvRKceaLzWH646iHNwQ1x8wRdEfDtUKH ISwpGpz79jBDwK3kHgqoi86GP80S170WIaoqWbZnWFfYDEaxNk96RkF0B+BPF7bVeDFB BBb4e7yL2DQV9/Q8b/epz5m5Y1T809jO/LZaivf8pWfqikakzWK8Xe2cAI2VxdSzXjNO gi9b5c3kbfHAei05cGAPV2I3nf3kObO+BpnsMPHeYAdIbRHjtu1XYgvjn8CnWCJ2yGa5 YefpFp13s+Epzc+uZOF+SIZ4PFV3shbKfwkDIbyju4KHUwLDawcfT7zf6kGFpCXy1r7y IwdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kMpVZlkR98KLQohjfLGaqieOVI5mlDmYYzLpVIJ3+Co=; b=euRgYDdbJCWlRhD5VFZtrEdWPSuGGQljv6OCjvke6aGkYjCzVa3O4YhShgIfh56tsy UwDFSKnaDPN0W0uLPuDgHMWxG4PSV9E+X39bomaoG4Gajzw+0IhwjuWfFJarvmfLc8K1 CmGtW/QEc1LJcTkm674ephE4O4hLMDn3N7tBPQwOLw0CbaFnZxdeyTPyEvAs+9gYXZIj D9oiD5LX6aSiRtIa4FFoPJRfzCFFODTWABqOx0/1OoAY0LrHr9BBwEHkcLPnm8S4E3mq EqfvahGKb7EcJpYcMQ/lNBmSpzWXdq2Pn9zxBYOcKBwBCFDWr9rEgjiQbDepFTDMNVla 7TSQ== X-Gm-Message-State: ANoB5plW/pYH9Na1XK9lc/13/CUDqtSarr+Pr4Ap6TV1NWQcNzGcbaut v4b4gxcw+l6fWEU3j98Fl/lY4g== X-Received: by 2002:a05:6402:78e:b0:46c:6f53:bf19 with SMTP id d14-20020a056402078e00b0046c6f53bf19mr11625077edy.299.1670327864545; Tue, 06 Dec 2022 03:57:44 -0800 (PST) Received: from blmsp.fritz.box ([2001:4091:a245:805c:8713:84e4:2a9e:cbe8]) by smtp.gmail.com with ESMTPSA id ky20-20020a170907779400b007c0ac4e6b6esm6472076ejc.143.2022.12.06.03.57.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Dec 2022 03:57:44 -0800 (PST) From: Markus Schneider-Pargmann <msp@baylibre.com> To: Chandrasekar Ramakrishnan <rcsekar@samsung.com>, Marc Kleine-Budde <mkl@pengutronix.de>, Wolfgang Grandegger <wg@grandegger.com> Cc: linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Markus Schneider-Pargmann <msp@baylibre.com> Subject: [PATCH v2 10/11] can: tcan4x5x: Fix register range of first two blocks Date: Tue, 6 Dec 2022 12:57:27 +0100 Message-Id: <20221206115728.1056014-11-msp@baylibre.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221206115728.1056014-1-msp@baylibre.com> References: <20221206115728.1056014-1-msp@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751465934813666229?= X-GMAIL-MSGID: =?utf-8?q?1751465934813666229?= |
Series |
can: m_can: Optimizations for tcan and peripheral chips
|
|
Commit Message
Markus Schneider-Pargmann
Dec. 6, 2022, 11:57 a.m. UTC
According to the datasheet 0x10 is the last register in the first block,
not register 0x2c.
The datasheet lists the last register of the second block as 0x830, not
0x83c.
Signed-off-by: Markus Schneider-Pargmann <msp@baylibre.com>
---
Notes:
v2:
- Fix end of first range, was 0x1c, is now 0x10
- Add fix for the end of the second range, was 0x3c, is now 0x30.
drivers/net/can/m_can/tcan4x5x-regmap.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/can/m_can/tcan4x5x-regmap.c b/drivers/net/can/m_can/tcan4x5x-regmap.c index 26e212b8ca7a..33aed989e42a 100644 --- a/drivers/net/can/m_can/tcan4x5x-regmap.c +++ b/drivers/net/can/m_can/tcan4x5x-regmap.c @@ -91,8 +91,8 @@ static int tcan4x5x_regmap_read(void *context, } static const struct regmap_range tcan4x5x_reg_table_yes_range[] = { - regmap_reg_range(0x0000, 0x002c), /* Device ID and SPI Registers */ - regmap_reg_range(0x0800, 0x083c), /* Device configuration registers and Interrupt Flags*/ + regmap_reg_range(0x0000, 0x0010), /* Device ID and SPI Registers */ + regmap_reg_range(0x0800, 0x0830), /* Device configuration registers and Interrupt Flags*/ regmap_reg_range(0x1000, 0x10fc), /* M_CAN */ regmap_reg_range(0x8000, 0x87fc), /* MRAM */ };