Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7308464rwb; Tue, 6 Dec 2022 04:12:53 -0800 (PST) X-Google-Smtp-Source: AA0mqf6WpX1yd+XVzXKQsDxJNzuYjG6/CC0upwOeQJf58TVNk7ZS16u9jOCla/Qz5bIk4aHbpRkj X-Received: by 2002:a17:906:b0cd:b0:78d:8c6b:397b with SMTP id bk13-20020a170906b0cd00b0078d8c6b397bmr58132129ejb.364.1670328772583; Tue, 06 Dec 2022 04:12:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670328772; cv=none; d=google.com; s=arc-20160816; b=zUrKQtztAhS+PyDilMwIN+r1W/Jwk567A0A0LBwmYQpl29+D34N85p18B58oDqGtJ9 lFpj6pEno0tKjW6UkaExwRbi/qIeeVcSPjTcjziuCiTJBkNH5OSZ70uhWD3nalF6lbKO SlGa9GauccTNnwFiethKBd1U4Xd29R1kqzDyfBB7ymE+Vv/BWqSQkflD8QAMOf/CXzwy PLA8d+efMZ11QQEWLr/GamNmd74nHwaE2qm1OhrrPtbgZ+1S76cjqd8o2frKHd3Dd8XN /5PDZ78ZYOuWNPmkU8kEe0XJpF7Kd3Yca2qL9rPc/Q7E0hEv0++qkK4kidmbmVfr7M8K Abfg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hp24-20020a1709073e1800b0078e11cbb722si3471212ejc.92.2022.12.06.04.12.33; Tue, 06 Dec 2022 04:12:52 -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 + 79 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 ); 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 ; Tue, 6 Dec 2022 03:57:46 -0800 (PST) Received: by mail-ed1-x530.google.com with SMTP id f7so19931372edc.6 for ; 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 To: Chandrasekar Ramakrishnan , Marc Kleine-Budde , Wolfgang Grandegger Cc: linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Markus Schneider-Pargmann 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 */ }; -- 2.38.1