Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8710066rwb; Tue, 13 Dec 2022 09:29:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf6OTqXgGgO0c4PEW0i0MddYoYbRmg+CUmPN+CwCDZfAggmIpYgmbuoC8RPtH+lw5YgM4KwA X-Received: by 2002:a05:6a20:9b8d:b0:ad:b14c:9e85 with SMTP id mr13-20020a056a209b8d00b000adb14c9e85mr7615200pzb.46.1670952578546; Tue, 13 Dec 2022 09:29:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670952578; cv=none; d=google.com; s=arc-20160816; b=ZRCEJeqHJDxQa25vwUtc15Cxe0NxpTrD2gaZt+lpLz3sAAgypGvnDeMKJFjyxUZown D6Leulte6Kq92K25YcV3smJTMY3gtoh31MDS5kaIvRxUHYr2QQjyGlu7GNPb64rS8bnC 4XUQYjHpJoUonbUtghFJ00TY9C1x0qEpS3mY3D88K2HpX67LnB9KuiRtBbK6VzEl38U+ 85AGmqEKuhQ5wYLl8Qjs2usmIBXayxQOno6GEbBtab/LUkUOwNq34gSA0bsgvwlC1yxS 5F7RXcZhyNrPtCBjGnTwJsg4TPQh74nQfBXLQl3HGgMFsZKhFYgUKwqu68HUEnM7/WrG jcLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=w7bINMp8tykjrtmdTLoMymqvaH8kKY42pvQKrznvouI=; b=S2r1RmSnrQXfqwZvmNYF8z4P1bsAMFNRTWEnwh0nMemFlXsVOWSa8riMIiU2iT8lJo +qeAWyfLh8ILOuoDkG1EPcnDuswQjhheWM3mUxAzuGM7nG0Os55+UEd5Lyrmr1gvxt2l 5U5ln6R5X9eWIUxHOttx5TH0n9mvlpRNeOqxWfvOr2Ef8J0PMK+13c+gOoHI08ymBpfw 14GmdVOtJpQ7WKWCkbfc+F9OBdTCrejGOK/YiWALfYUW9RO4FaL+PWIp8Byek1axgVzC yrLjN1sogQHJh1GsUUA8bJ0rEtkG3fsLgJ3j13LmqIxuesHwGRCGdhjfAH4H+5walr5u MrGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=j6prwx0G; 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 k70-20020a638449000000b0046f7941b7besi12524192pgd.112.2022.12.13.09.29.27; Tue, 13 Dec 2022 09:29:38 -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=j6prwx0G; 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 S235893AbiLMRKn (ORCPT + 73 others); Tue, 13 Dec 2022 12:10:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235216AbiLMRKj (ORCPT ); Tue, 13 Dec 2022 12:10:39 -0500 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89EF611A33 for ; Tue, 13 Dec 2022 09:10:37 -0800 (PST) Received: by mail-wr1-x42f.google.com with SMTP id y16so16363537wrm.2 for ; Tue, 13 Dec 2022 09:10:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=w7bINMp8tykjrtmdTLoMymqvaH8kKY42pvQKrznvouI=; b=j6prwx0GnzEerg7Au3dHa0SfMc9i9k16MzGFk9+Pbcxt2Vzml6Z695tAZx+8NKLHX7 01hRw45+/9m7O+apb/mP+1GnBZ2r8Wn5Fg2Jgd128IitWDClPnotNtTl4xeiTs1vClKe sT+Oi/n1klUvoX1QC1lpvkk2F8VwhCfcGvhv0a5/ZL7Shx6sqx2u8GdDj7Q2wSA6bimp rzZ9zooNPDIRGGmxQ/hWEhxRtkl8yKt0TR6VP9hfOlTxdlEWPydKAOszVMCQJwAFDSTf YXQBqjo/WIVf4xtEvE+WlPgMCg+edOfyqK4gskAuA77Dmx11sQD/Kjch3gciHBBGHFO8 tVGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=w7bINMp8tykjrtmdTLoMymqvaH8kKY42pvQKrznvouI=; b=vp8yOtjCF8A2RAYZPMf6qlHndQ38kRgffqhQOq4OedpcH5inxq6iKCYGmNrtGJeqC2 Gl8YrQwcWT/QwbFWFZFuA+O829FuJGmTF8Dxf43FRnMlqBD7ZadYUIQrF1FBiHmD/1Zd vEIPoZ3xHykqZ2MPHrdGg8KcGlusfojvKXNypDwlsnKXoOMNHV7GOVGO/4nCA7oaSw8u brncnFk1HZ/yxmwUpeGOgHks2sjQHti+gfqZa6E+N5PRqBKvlcAO4zO3WUgukQwEwwKQ Dz+rs33dx9gjwbBx2pdiGnnKkmMhXv9AyaFt/HKZ9Nr230v2MbPeBa5wazqH5EOvGL/x 12VA== X-Gm-Message-State: ANoB5pkL/loY4wZsrz3FLF4PGqycd2zY1Fx8bxZfhZ1LHlqIO3TALqeq FXB4YkUKx/9DvHEFCUJWg3ykXw== X-Received: by 2002:adf:fa0c:0:b0:242:1a1e:e074 with SMTP id m12-20020adffa0c000000b002421a1ee074mr12979095wrr.61.1670951436100; Tue, 13 Dec 2022 09:10:36 -0800 (PST) Received: from blmsp ([2001:4091:a245:805c:8713:84e4:2a9e:cbe8]) by smtp.gmail.com with ESMTPSA id j23-20020adfa557000000b00241ce5d605dsm275175wrb.110.2022.12.13.09.10.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Dec 2022 09:10:35 -0800 (PST) Date: Tue, 13 Dec 2022 18:10:34 +0100 From: Markus Schneider-Pargmann To: Marc Kleine-Budde Cc: Chandrasekar Ramakrishnan , Wolfgang Grandegger , linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 11/11] can: tcan4x5x: Specify separate read/write ranges Message-ID: <20221213171034.7fg7m5zdehj2ksmj@blmsp> References: <20221206115728.1056014-1-msp@baylibre.com> <20221206115728.1056014-12-msp@baylibre.com> <20221206162001.3cgtod46h5d5j7fx@pengutronix.de> <20221212105444.cdzzh2noebni4ibj@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221212105444.cdzzh2noebni4ibj@pengutronix.de> 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 Hi Marc, sorry for the delay. On Mon, Dec 12, 2022 at 11:54:44AM +0100, Marc Kleine-Budde wrote: > On 06.12.2022 17:20:01, Marc Kleine-Budde wrote: > > On 06.12.2022 12:57:28, Markus Schneider-Pargmann wrote: > > > Specify exactly which registers are read/writeable in the chip. This > > > is supposed to help detect any violations in the future. > > > > > > Signed-off-by: Markus Schneider-Pargmann > > > --- > > > drivers/net/can/m_can/tcan4x5x-regmap.c | 43 +++++++++++++++++++++---- > > > 1 file changed, 37 insertions(+), 6 deletions(-) > > > > > > diff --git a/drivers/net/can/m_can/tcan4x5x-regmap.c b/drivers/net/can/m_can/tcan4x5x-regmap.c > > > index 33aed989e42a..2b218ce04e9f 100644 > > > --- a/drivers/net/can/m_can/tcan4x5x-regmap.c > > > +++ b/drivers/net/can/m_can/tcan4x5x-regmap.c > > > @@ -90,16 +90,47 @@ static int tcan4x5x_regmap_read(void *context, > > > return 0; > > > } > > > > > > -static const struct regmap_range tcan4x5x_reg_table_yes_range[] = { > > > +static const struct regmap_range tcan4x5x_reg_table_wr_range[] = { > > > + /* Device ID and SPI Registers */ > > > + regmap_reg_range(0x000c, 0x0010), > > > > According to "Table 8-8" 0xc is RO, but in "8.6.1.4 Status (address = > > h000C) [reset = h0000000U]" it clearly says it has write 1 to clear bits > > :/. I am trying to clarify this. I guess table 8-8 is not correct, but we will see. > > > > > + /* Device configuration registers and Interrupt Flags*/ > > > + regmap_reg_range(0x0800, 0x080c), > > > + regmap_reg_range(0x0814, 0x0814), > > > > 0x814 is marked as reserved in "SLLSEZ5D – JANUARY 2018 – REVISED JUNE > > 2022"? > Yes that's a mistake, sorry. I will add a fixup for the upcoming series. > I'll take the series as is, that can be fixed later. Thank you!. Best, Markus