Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2622908pxb; Sun, 17 Oct 2021 20:47:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxaffuAAy7LMzoqV7vs+ihFA73VG9Uo3kzrliiRxkE2ndKRhFs0ZJoeVPvD9PELMPD9cO/q X-Received: by 2002:a05:6a00:1a88:b0:44c:cf5d:f77e with SMTP id e8-20020a056a001a8800b0044ccf5df77emr26013543pfv.23.1634528867468; Sun, 17 Oct 2021 20:47:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634528867; cv=none; d=google.com; s=arc-20160816; b=K345fa3ssEA+y+wfr1r+UDgroHJDPgWawQDK0nra+PCCPuTam59glVe9m8VDdszJMA +/Wob3bICC6u8y70D+Xpmpxm0kadoUs5hxqk2GTBJVTkXloBz/c69/Qq7qQJq9Gd0yyZ t1W7B0AEfS4VkXvtnDvCNyBWRYzyv0SoUFu1DrbJinC4hEQtpqUybeQWT1cajZEjCmeR /8ARGD2pXtUzXW7YQgWwHk5uyM/IurFV0G89txhp1GJKrhN1poU+C3UIC6xkrfYOl9Sd xDZoct5pFWkdNODHpycL0OHX7TnoyZ7+iLtLkVfjo55r20MHcxyPowNqTDdHNt1wksqL UAZQ== 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=fQfMtQ3P8xfZD61N3pcqn9dO0b5NSsUD2yWqTGyLL5U=; b=UZK73c0VM8HzCTS1Q4JgAr0L+lEzgX7b0bSHucK6+roeinRp4YmncjYeF5Z0xMbpih n2Ijzsj0dFVxLs1j1V8mOAZ8ST1fEZYwz2aDTb/7Fzdank0Bw7J/9AWswMVaheJmwKcN Fft/d+LUJN620I+hn+jE+gfGefwd8OPtWRHhjAxRR2ws1zMVp6b0YhM6DxaO+qk3BGmh aVb2TPIJQ6eoL75g9MUhiZMX5sg/wO1cSDDYcjNF4VxhpRKUHzhWWsmfVzznn/DsT+xs ikmuhQg/eZe92qCZOdgXjn2CKx5ZausREIGeScRMDlbrP5KRc+wo32RazUDRkyjKXEhz tQKQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s197si19089512pfc.152.2021.10.17.20.47.34; Sun, 17 Oct 2021 20:47:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344582AbhJQUql (ORCPT + 98 others); Sun, 17 Oct 2021 16:46:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242454AbhJQUql (ORCPT ); Sun, 17 Oct 2021 16:46:41 -0400 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 1419DC06161C for ; Sun, 17 Oct 2021 13:44:31 -0700 (PDT) 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 1mcD0y-0007C8-H2; Sun, 17 Oct 2021 22:44:16 +0200 Received: from pengutronix.de (2a03-f580-87bc-d400-c215-888e-54eb-c2bc.ip6.dokom21.de [IPv6:2a03:f580:87bc:d400:c215:888e:54eb:c2bc]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) 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 50031695E9B; Sun, 17 Oct 2021 20:44:13 +0000 (UTC) Date: Sun, 17 Oct 2021 22:44:12 +0200 From: Marc Kleine-Budde To: Aswath Govindraju Cc: Lokesh Vutla , Chandrasekar Ramakrishnan , Wolfgang Grandegger , "David S. Miller" , Jakub Kicinski , Matt Kline , linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] can: m_can: m_can_platform: Fix iomap_read_fifo() and iomap_write_fifo() Message-ID: <20211017204412.2jvp24tgaibvmcz3@pengutronix.de> References: <20210920123344.2320-1-a-govindraju@ti.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="vyrpaejnfoakxj4h" Content-Disposition: inline In-Reply-To: <20210920123344.2320-1-a-govindraju@ti.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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --vyrpaejnfoakxj4h Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 20.09.2021 18:03:43, Aswath Govindraju wrote: > The read and writes from the fifo are from a buffer, with various fields > and data at predefined offsets. So, they should not be done to the same > address(or port) in case of val_count greater than 1. Therefore, fix this > by using iowrite32/ioread32 instead of ioread32_rep/iowrite32_rep. >=20 > Also, the write into fifo must be performed with an offset from the messa= ge > ram base address. Therefore, fix the base address to mram_base. >=20 > Fixes: e39381770ec9 ("can: m_can: Disable IRQs on FIFO bus errors") > Signed-off-by: Aswath Govindraju Applied to linux-can/testing. Thanks, Marc --=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 | --vyrpaejnfoakxj4h Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEK3kIWJt9yTYMP3ehqclaivrt76kFAmFsixkACgkQqclaivrt 76nANAf8CPQsL+cF95xUlCMoxS4E7BgIb7HAWVRKEdE0wYn5DOWOhHSQ/Ct2OzNy PwglN9CFRcSlMR4N2vmtpuu76UZ2ifmm2oiGHGCXQ6tgwUIFAIEWjm4dA91FdTQV Gj/hWgb5HOJa3vC+Yre01EhElbGDOCwNRJo/eFKTRIF5DO9UaBiC7ut+S4zPsL/i +BkMkvAg5v2ePo2gvJSqZinSshcWWTyX3oxDoB6cuXZq0MDedy5Lv4WfGWRqh5kO UbvlS2/UXAjHagMQaBzPz/4wxMz7Dqu0n9k3X6Dz1ZnbfV2A4kthJ+tAGVmRkiVz nkxcH8wyiizCaPTGO5qtfkKibial/w== =7CHm -----END PGP SIGNATURE----- --vyrpaejnfoakxj4h--