Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp740172pxb; Thu, 25 Feb 2021 13:59:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJwp+Yvyf+eX2iTkWO1A4iLMbDK8hVay4/X+PYKVVdxOP+S4c8WrV3vqt8b6bm0MRPhNDXCL X-Received: by 2002:a17:906:c7c5:: with SMTP id dc5mr4759984ejb.470.1614290383327; Thu, 25 Feb 2021 13:59:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614290383; cv=none; d=google.com; s=arc-20160816; b=LCUAt4ugV/Vp/P8ymjUN+wyAI0Y/gXkiXINIUdBzJHNXCEOW4nCZM2DktrqRHD1XaO 8nRSyuTlSUJFKBMGqj5erJcOziu7mO8wUeD/SM68mxB+FV016f9vI19su19wWTxpBXmI Eb5zfW1CU0+yCNfNX2lVlTdQllmPjWHCRq1rCxcscwRyTays/kNqIcxpq7zbWG3qtwET gDYVoo3ES02JLkwc0FAYozx4WXD7kWzKVtXwhF1+yHBJ2EOXQAqfGBDHPP/w4QAdJSxV OeNXFMb8+v+6sJl9fwYN4F62Lr7xfFSaUH7hzmNHV7emRL1wxqiihMhBIN8UxKvwiDVI sM0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=BCMzyFPGjvLZKNUS2sizrsXN5C/G8I7qiN9C3GvALOQ=; b=uSbCGQ95m7hnLQzk2G/Cy+TThwKoy+vHVh65EfzE6YY9svP2juNZT2pCW/8gemawGz gJeev8DcrxOOXSTdzjjHxoswu1l6lpvkGNDbusLB0nFgwPQu5ayH/ZSXlGmLIIisFSOi MvqiCZoCS62Nv/cFB8xnQMz2HNvqVvlvqa0xQep6hLuCoPSQWS3TPCoXAtcZ4YZgVF8y SVKcgiiB74DS8hFvezkOCc5ivehdQJc6RW8hPfrhkEs8uq3yjUQSUmKRabvti2MbEq9x sd+QK2mlHRkTwOyd/SpEp9zr9SlisK4aEXsowj94XzPh8THodq6tPjFDs4WCty7tlYSZ Zexw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@libero.it header.s=s2021 header.b="G/sqbnbh"; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=libero.it Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e15si4651667eja.482.2021.02.25.13.59.21; Thu, 25 Feb 2021 13:59:43 -0800 (PST) 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; dkim=pass header.i=@libero.it header.s=s2021 header.b="G/sqbnbh"; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=libero.it Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233077AbhBYV6g (ORCPT + 99 others); Thu, 25 Feb 2021 16:58:36 -0500 Received: from smtp-17-i2.italiaonline.it ([213.209.12.17]:57169 "EHLO libero.it" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S234834AbhBYV5g (ORCPT ); Thu, 25 Feb 2021 16:57:36 -0500 Received: from passgat-Modern-14-A10M.homenet.telecomitalia.it ([87.20.116.197]) by smtp-17.iol.local with ESMTPA id FOYQlNUJ2lChfFOYYlkbgi; Thu, 25 Feb 2021 22:52:22 +0100 x-libjamoibt: 1601 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=libero.it; s=s2021; t=1614289943; bh=BCMzyFPGjvLZKNUS2sizrsXN5C/G8I7qiN9C3GvALOQ=; h=From; b=G/sqbnbhoBrcJVq4yhhyZ1gRfCNRus6HLixJb3gvcg+gdfpPzgd5whGJLColg977R 60z3nofAlamkDuTthuedA2r3ngmYH6sx8R9uPzzQdn3gjl7SC4VEtogzcc5QEVgbGM 7jeMlyzif3LpyaZ8aFMTuZe+07D5WlByeDV6SJN3/t2BqsrlA4vh+cWQVg63KCzVSM Ce4doVJeeEBLkgFB0KhcguInW0xHITeKXi106NVTBoG4rZmMBN+xh4skXjUJ4HEAng 8rMTBvXxyiYoqh+sNNTK2899ZSWKGdPqfeqyDyO8jXZRibZvhKE94wtGu9FH1MlyWA 7iQzwU/MRZU4g== X-CNFS-Analysis: v=2.4 cv=S6McfKgP c=1 sm=1 tr=0 ts=60381c17 cx=a_exe a=AVqmXbCQpuNSdJmApS5GbQ==:117 a=AVqmXbCQpuNSdJmApS5GbQ==:17 a=YyHhdtpqV3cun0yf7GkA:9 From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Alexander Stein , Federico Vaga , Dario Binacchi , "David S. Miller" , Jakub Kicinski , Marc Kleine-Budde , Oliver Hartkopp , Vincent Mailhol , Wolfgang Grandegger , YueHaibing , Zhang Qilong , linux-can@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH v2 4/6] can: c_can: use 32-bit write to set arbitration register Date: Thu, 25 Feb 2021 22:51:53 +0100 Message-Id: <20210225215155.30509-5-dariobin@libero.it> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210225215155.30509-1-dariobin@libero.it> References: <20210225215155.30509-1-dariobin@libero.it> X-CMAE-Envelope: MS4xfN5b3Rqft8U7sYPJxUkdMUWC1LS8OtnTPA11KZdrUvwXZNfnsJYRZ+Vn1uNUlhHDizOz33lXjueok4cZYUrttT9Of6L/P+Tc2dGCGoMKxQQs8KeSBVNo KtBLeHv0L07u/tTEJao2Ybhh4h/HrROJe/uHI3wOI8wwhIF9FSJCR9hgWWNJAtUzDYCwJWpVZPXit6HjCQOVeB0eo0BjmghmLlZOjLZPuK7+6Cg4rIDZIvCC 66o1nWgRniRAB8bjRte8XAxfZlxz8VtKCWDBverXiPHJmT57HaoZXGqUPDb4dZP8pufWDWCKWxdC9g2kF9XZU44SEzytO5YXEOzklNzuetTB57xyr5xlX/e0 Qi5W0claOPGkj+gpYTFmL3d36ZCQzR+C/U+pk2eNa0D53ZPiphE8MbFmgwTlfgCeuADde47OEwf+E8SddSKXeLFN9xhYmsu88aZehVdgu+g36I6NPDfA+RXB eDavfma1gpo6Vw/7NkzILVDeSq/GkSe5UQGvTlkhzhtGyp0+Y0GkZuEVSCE83lzB+NJLHfRMsZhofZe5qg6rfaIMuXpvJhl8FtSEQ7ffmCnGB0jDWBrkaTs2 smhF7ZLVjFugHl7vQ9rhfodC41wttg2vza7XzPP2RJcHa2qLtamUv3W7jzPVULpTK1o91l/DmcN48RD5epR8j8h8kUjVmTK0tRw/C0kWLn8bLA== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The arbitration register is already set up with 32-bit writes in the other parts of the code except for this point. Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/net/can/c_can/c_can.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/can/c_can/c_can.c b/drivers/net/can/c_can/c_can.c index 69526c3a671c..7081cfaf62e2 100644 --- a/drivers/net/can/c_can/c_can.c +++ b/drivers/net/can/c_can/c_can.c @@ -297,8 +297,7 @@ static void c_can_inval_msg_object(struct net_device *dev, int iface, int obj) { struct c_can_priv *priv = netdev_priv(dev); - priv->write_reg(priv, C_CAN_IFACE(ARB1_REG, iface), 0); - priv->write_reg(priv, C_CAN_IFACE(ARB2_REG, iface), 0); + priv->write_reg32(priv, C_CAN_IFACE(ARB1_REG, iface), 0); c_can_inval_tx_object(dev, iface, obj); } -- 2.17.1