From patchwork Tue Mar 2 21:54:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 393406 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D039CC2BA17 for ; Wed, 3 Mar 2021 04:23:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A23E364ECF for ; Wed, 3 Mar 2021 04:23:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1838595AbhCCEH1 (ORCPT ); Tue, 2 Mar 2021 23:07:27 -0500 Received: from smtp-17.italiaonline.it ([213.209.10.17]:52771 "EHLO libero.it" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2359539AbhCBWAu (ORCPT ); Tue, 2 Mar 2021 17:00:50 -0500 Received: from passgat-Modern-14-A10M.homenet.telecomitalia.it ([87.20.116.197]) by smtp-17.iol.local with ESMTPA id HCz0lBDmUlChfHCzBlGa0q; Tue, 02 Mar 2021 22:55:21 +0100 x-libjamoibt: 1601 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=libero.it; s=s2021; t=1614722121; bh=gGBb0if76oFz8ZwaKKCbLEQjDj90X/5zDbKBMeSdiUc=; h=From; b=T8B5ZefqPk3DmSIj78XmxkBIraj5oovEoTGNwI3NQdUftYczqjyYwtVeOPeO0WjdN VwEmR+E4viE9hJ+/PB3cjONepFPkrLiwZziq0ESRarJzX72x0/1TmMaAtLenEs83ZT Wzt67w6HL10O/lEaTI4YTXCCKaHYkCLHpWD9GYiZkO8X7yxBaXYELOz6dCBXJWjBQ1 SgMbyxHWD59HsSTkUFw94hwmjRkyXAgLM8zit3wzkAJfclg+c2J5yF0pzPX5LrwF/t FNffUmH3lWqs4Eftd3fymewl0OEd/5RR5ArHTwjVG++usdo889HwlQY9Gbi2gGAgnh I5LbG2BSsV8fA== X-CNFS-Analysis: v=2.4 cv=S6McfKgP c=1 sm=1 tr=0 ts=603eb449 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 v4 4/6] can: c_can: use 32-bit write to set arbitration register Date: Tue, 2 Mar 2021 22:54:33 +0100 Message-Id: <20210302215435.18286-5-dariobin@libero.it> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210302215435.18286-1-dariobin@libero.it> References: <20210302215435.18286-1-dariobin@libero.it> X-CMAE-Envelope: MS4xfALmbl+rhBfE4zafOS7jLa8Q+n7eEyC7LfLeVholBUrNRtsS4icLPd420gn24S1iGl7/F2v00nn0ztIvFSw3x2OYNtzQTD+NsS91Pkgzz4XXw7X7w5Kh Ld+nTL/fnRIOd2U6NtS717z6EmJmhr1XP2E5U0g2VjUil6TI4YchvC4rxhexKDqP7OXB870P9TvtyPnrZ0t58oNvdFkKJI0MjNTy8kqwluXWoM7wUTqMlEzf YzUul0/BzolOjdq+0a8bVBiRdpiDCU1xoPvuGmoC/OvRZLg9DnNrHPxrq2h5ed3wCW3mdzYT2eNzakA0L5sxAGCnRgljyNTMvfrMzmX0mf9MCrysHWZdxel3 QO6FtueafHelSduDqQCCly6SXty2mvxmyax2fZrk1LRWHw9zyhoM+bZr37K/LkLGWhHgNdvDKQTZfZrkbsOcH9fskjhZFee6dfHeYbtHYGKAcBKcFLDY/ac5 FeSnJPVy6air3fx2bIRbZKwtxmDb5d1/TXRKls0wMva5mkpKbG+Ou/cGkIBUxUBeqE+gm30oTIMIYPjU1gttCS2gUG1qa8jcpaYvc/MDP1p+ihVbLQHBgJ2n 5n9qaOGsri2Ub3j93+jY0nbyb1SFsnrlzIQyU0hT5fZrURLIMUwQNPVyNIscuxpQ/m3ZYN3lp7obxDu2o+UwrELXMQqJCfbm+FAiVX+H3tqdWQ== Precedence: bulk List-ID: X-Mailing-List: netdev@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 6c6d0d0ff7b8..77b9aee56154 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); }