Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8925293rwb; Tue, 13 Dec 2022 12:17:03 -0800 (PST) X-Google-Smtp-Source: AA0mqf6ot+Vdv0CEL3RZ2lfSX8jIRTcpde1oe59FWPCD4bYjFy7tx+Cnps1MKvF8MY+AJ40EaPco X-Received: by 2002:a17:906:8ce:b0:7ad:dd10:c614 with SMTP id o14-20020a17090608ce00b007addd10c614mr17501064eje.44.1670962623437; Tue, 13 Dec 2022 12:17:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670962623; cv=none; d=google.com; s=arc-20160816; b=0kPAcL6WKlYvHohoNQeDFnrN5FHFP3ASutMgN3NfqdqMNaj35sXuaySz7gbGoenzcT YITaQb36vMbfO93/FMX4WDuiz98/9Z4G9hOns42ndgvFNJO2bCmJ8IHMnnANZVNN8ol0 dYpyHGK9bdASi8BNG4MogdaLXPAvLAldd0RYXdsnB82c+p3S3LSMdqRXqNPVA48cRVpT 4nfYO9E1mtDsASRvon8ruGf5UQfuRWjsiK12Yd1QoUmmDgyEimzebdFeum84oNzxStQ7 VK2gfaJDFGL7DC+fR2A9BW2+VD2HLWHfQhcZfK1im2IZr6iFgwl+WDd1pCC46mlRfNw2 TmMA== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=YB2zoZgzfOVD0XLCaIjp6ouesB1j3+hq28sBf8VmRvs=; b=UyGnRxrXuJm7do8awm6LqSFMnelKyFpTxTxkyMoA9ORXaXEW79xCGIpJ2o/NhhJsw9 dn1XI+3cbDflQ6TOm1uyWLP3uZwn7kafkveaEnDtKTV3VOPEJ5Qqn0D3CbK+Co+HLI+o LhurFtPXWVNnmJ06ZlxBVSjnZVKcCuuI6J5X1MpIbrbZQioj97cErnGmNSuOVSZmufkg n7TBsh2M/xyrZHoQ3jJKkaP/nPPuEjOapGnkXCzZ3p2km/b8CI2n3toNjOSIIOrjUpLS 9fisNYsJEM1W2ZtO4O2Zyx6jM3kaaWJmCL8EKUOBqdO1f7xuX2U3iLZTjAAQa1iC2OyH Y7ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=o6LMJPH4; 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 f16-20020a0564021e9000b00457f31c1a10si11981259edf.584.2022.12.13.12.16.45; Tue, 13 Dec 2022 12:17:03 -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=o6LMJPH4; 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 S235574AbiLMTKe (ORCPT + 72 others); Tue, 13 Dec 2022 14:10:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235762AbiLMTKa (ORCPT ); Tue, 13 Dec 2022 14:10:30 -0500 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 274A4E0CA for ; Tue, 13 Dec 2022 11:10:28 -0800 (PST) Received: by mail-wm1-x32d.google.com with SMTP id r127-20020a1c4485000000b003d1e906ca23so1335865wma.3 for ; Tue, 13 Dec 2022 11:10:28 -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-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=YB2zoZgzfOVD0XLCaIjp6ouesB1j3+hq28sBf8VmRvs=; b=o6LMJPH4/JumqJrtckqwMsecIkzo9XW5STBjmxMmpaAbosMIEjAzDvLrfi+XDlxUFD 5YMmfh2L4vK7PpeJMgBFOC40jZBnF7hvalMqDluw5jy6HiI+6jOh1FaTXV2Q3pU6e98U iqIHZpEUMDGZuLavrXT6imbpG+QtxlDxrXIXrBbOsMx1IjUwbKP2PTur93gbUsm1Ge04 hVfoVNA+bPIKbrqxc7/Jr2Yyb5LRHgqC6HfKK1G32vtuMFtudGyvqTPo/k7a6CasMXOx F2mCm0orS/kZyto4+34T1Ln7auUE6RQJY5nXFnktS6Kpqr7oVG6sgu1+zRRKQfflDVYL 40fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to: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=YB2zoZgzfOVD0XLCaIjp6ouesB1j3+hq28sBf8VmRvs=; b=6aKuiAaHJV8Fr0BF1KNDsTEtAtj10S8x5Jpuw2CsBeCMjoRNp/6s85PG85LJSN/wMu PJNiSYvpipHT0K6BeyMrEYfU/WtDRvKLIAzvGUSRr7C+bfGURknhNd1OElkWcdb8tleT 2TgrSRHd2u3qPku9u/qAdiMKQ0INhblJo0ZrIWFVmuHucOXproGBm78gmRlXj+rfThqT dVow2jU/LW3Vp1jYbn3XR92BVlrawr/0dErKSB2IVgcOtvBUpXX+rHPkWPHAmKqtkQEB kFZVlbgbuuCYT/eHHg4v3DQrahotq49dhupQE7THjAAarJv+/SHWhgmA+TvJfi1eIcdq b6HQ== X-Gm-Message-State: ANoB5plz/7k4UHsZcAJi+OcgIKilwYepGFa4XLBVqKsXu/XrcjgggfIF F5E9sVcvPylFW81EVomoifssAg== X-Received: by 2002:a05:600c:1e26:b0:3d2:2043:9cb7 with SMTP id ay38-20020a05600c1e2600b003d220439cb7mr9380463wmb.5.1670958626589; Tue, 13 Dec 2022 11:10:26 -0800 (PST) Received: from blmsp ([2001:4091:a245:805c:8713:84e4:2a9e:cbe8]) by smtp.gmail.com with ESMTPSA id n41-20020a05600c3ba900b003d23928b654sm28772wms.11.2022.12.13.11.10.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Dec 2022 11:10:26 -0800 (PST) Date: Tue, 13 Dec 2022 20:10:25 +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: <20221213191025.ibq4xjhxcrlmcp45@blmsp> References: <20221206115728.1056014-1-msp@baylibre.com> <20221206115728.1056014-12-msp@baylibre.com> <20221206162001.3cgtod46h5d5j7fx@pengutronix.de> <20221212105444.cdzzh2noebni4ibj@pengutronix.de> <20221213171034.7fg7m5zdehj2ksmj@blmsp> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20221213171034.7fg7m5zdehj2ksmj@blmsp> 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=ham 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, On Tue, Dec 13, 2022 at 06:10:36PM +0100, Markus Schneider-Pargmann wrote: > 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. So it is indeed a typo in table 8-8. The register is R/W. Best, Markus