Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2193442rwb; Fri, 2 Dec 2022 06:44:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf68yv61wZsjhofPmeCF8CsTkXTtKM33MrmDEoGGWcO1lVYh3KghhbK+oEbPwCJlXelCw0yB X-Received: by 2002:a50:fc11:0:b0:45a:1bfa:98bf with SMTP id i17-20020a50fc11000000b0045a1bfa98bfmr64596418edr.413.1669992250182; Fri, 02 Dec 2022 06:44:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669992250; cv=none; d=google.com; s=arc-20160816; b=V7w5evrHy8+IPVL7ebzs8tdrKsPkxuyHMytfuMyII0zNVFolPhRDoXIHmuB35mkytS v+OiwNKN4zvp/BuKxi/NpDnmwIyr2j75EddvKy8oi2N+S09uIFo0VoR7dICYwV0+qz7N QLPxWem7rBIKZMkQRFs47DuCbARvOGOkPZ6pCmQTpW1suStRLfghCKyUyWxc/0ZuHSsW RxJX+GdJkc8f/nmKoKFd/hXbCY0UwfpaviPRoDB4CaXzyHHV7vpZxy0KPj/ivwxQPgUo ZeRmCpL2nnNFpRg+mJ5LQ+SVXcYYVnmwELoC9SjR9f5E9+xintOCouKL/HA0r27QbTMp YrBg== 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; bh=zjIvqgTGd6BA6fw9RCym/w68lqM7ofCYdGuetBMKJIE=; b=rWvueQUvr+WDSJm+5Af2K+w6pDF6hux0aLredG2tk5IwzAOkl/zsriuU5PiZb296gD PnxyneBFqO7pExDZuUIiPJS3WJuUFhXlmja3fuC+fHTmuE9WaHxq/bKbov67ageOyzFH LaZjVxY7ga4fPji59uIaG2cwhvfRw2yvxCNQT0I6ZcJzqZf64wrSvDqyIdHOf0sRK5IA /rTD7aI2S7N6qmXSYUN76znIrZVgJEgd2GTVSPvQ8FxzKvXryxIs9VR4PJYp32ipx30c l2bliJxEBZS1katHiAjXCV13+x9lQr60KttPAujAF2aqblgaXZPpo7OGEQCfrR8EZG5K NsQw== ARC-Authentication-Results: i=1; mx.google.com; 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 d4-20020a50ea84000000b0046c3b3aa791si1254502edo.477.2022.12.02.06.43.44; Fri, 02 Dec 2022 06:44:10 -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; 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 S233594AbiLBOSL (ORCPT + 82 others); Fri, 2 Dec 2022 09:18:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232953AbiLBOSJ (ORCPT ); Fri, 2 Dec 2022 09:18:09 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D484D7BC1E for ; Fri, 2 Dec 2022 06:18:08 -0800 (PST) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=bjornoya.blackshift.org) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p16rc-0007hV-3u; Fri, 02 Dec 2022 15:18:04 +0100 Received: from pengutronix.de (unknown [IPv6:2a03:f580:87bc:d400:63a6:d4c5:22e2:f72a]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: mkl-all@blackshift.org) by smtp.blackshift.org (Postfix) with ESMTPSA id 60B521316F4; Fri, 2 Dec 2022 14:18:02 +0000 (UTC) Date: Fri, 2 Dec 2022 15:17:56 +0100 From: Marc Kleine-Budde To: Markus Schneider-Pargmann Cc: Chandrasekar Ramakrishnan , Wolfgang Grandegger , linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 12/15] can: tcan4x5x: Remove invalid write in clear_interrupts Message-ID: <20221202141756.tmgn2brrzfxz3wio@pengutronix.de> References: <20221116205308.2996556-1-msp@baylibre.com> <20221116205308.2996556-13-msp@baylibre.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="tjjtkhgzls42vba2" Content-Disposition: inline In-Reply-To: <20221116205308.2996556-13-msp@baylibre.com> X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: mkl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, 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 --tjjtkhgzls42vba2 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 16.11.2022 21:53:05, Markus Schneider-Pargmann wrote: > Register 0x824 TCAN4X5X_MCAN_INT_REG is a read-only register. Any writes > to this register do not have any effect. >=20 > Remove this write. The m_can driver aldready clears the interrupts in > m_can_isr() by writing to M_CAN_IR which is translated to register > 0x1050 which is a writable version of this register. >=20 > Signed-off-by: Markus Schneider-Pargmann Please add a fixes tag. Marc > --- > drivers/net/can/m_can/tcan4x5x-core.c | 5 ----- > 1 file changed, 5 deletions(-) >=20 > diff --git a/drivers/net/can/m_can/tcan4x5x-core.c b/drivers/net/can/m_ca= n/tcan4x5x-core.c > index 41645a24384c..1fec394b3517 100644 > --- a/drivers/net/can/m_can/tcan4x5x-core.c > +++ b/drivers/net/can/m_can/tcan4x5x-core.c > @@ -204,11 +204,6 @@ static int tcan4x5x_clear_interrupts(struct m_can_cl= assdev *cdev) > if (ret) > return ret; > =20 > - ret =3D tcan4x5x_write_tcan_reg(cdev, TCAN4X5X_MCAN_INT_REG, > - TCAN4X5X_ENABLE_MCAN_INT); > - if (ret) > - return ret; > - > ret =3D tcan4x5x_write_tcan_reg(cdev, TCAN4X5X_INT_FLAGS, > TCAN4X5X_CLEAR_ALL_INT); > if (ret) > --=20 > 2.38.1 >=20 >=20 --=20 Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | --tjjtkhgzls42vba2 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEBsvAIBsPu6mG7thcrX5LkNig010FAmOKCRIACgkQrX5LkNig 010QRQgAlebC0+TGnpSKg603pRTk0d9B/O8c7/5XdIPh/LwjCzsvTEMqrf5htK+q vtfGcWjxwYXXGpntx6xVfBR5gYrcfDMLeT90Xno6BoigsMdajRN7YAcJ0MjNY4EW jZNhyotXhs+fU2eJv48+Z6y31qTyDLIMkmbu1EOjyzX5/qJbRdJ6wq5gFgBYkNFF YaJnXWlWq3utr/FwXENNp5H3z6FwUmgb1i21tpLZabWxJijGFnf4ZXtqJXmP1iN6 k0jsjqD+uvIUdkFSPRU69CfUjBpnTi07Zfmx6S0x19RJp9F4P3ZKIPq7XfSgvKTF GYFHmf1dGNiVKOUZvoGePApB/+T7lQ== =Nb9w -----END PGP SIGNATURE----- --tjjtkhgzls42vba2--