Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp981125pxb; Wed, 3 Mar 2021 23:23:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJxBjI5EuqiE+PU/dRim7pIOj1WYzKui7RQ6lVaHGuaOWqPUZwA1qw339a5IlrOakVaU90XO X-Received: by 2002:a17:906:ca50:: with SMTP id jx16mr1806813ejb.72.1614842588683; Wed, 03 Mar 2021 23:23:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614842588; cv=none; d=google.com; s=arc-20160816; b=GzOa5wcrpxQ3xtufL80DX01mLxxZke6x0BDF3x6mcqUA0PI7PY+/nLPKKOoLCEcB35 4OG+nzRN70p4jfbDooZgw/6RGEEbYLrOgZCNQ/jgrCt5a3GDi82qJpXJX70cv2mPePwD TwFVtLCVhyKyQ2EJ9HP1+RmIFvsKxZamR3hBrPlaHe8ykTxI/+ZTf5NI/dsnZk9Lin1L 9meHQsTzvtaD409UO8UHcQfnaAfBhnOyVTJw6FnDTSr5rOxbwDBIsQ8y0vX2q+k3xrxW nRp+PpfVKCyqwZdJIfcTmHu6oxtjX0t2R/fnVISUtiWkCqWogkb9AaIZ9EWfGuGEA9D/ O6PQ== 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=gGBb0if76oFz8ZwaKKCbLEQjDj90X/5zDbKBMeSdiUc=; b=JKT4hc5hBa4NWuuQg2sieFfFtb97EaAjC59LG6qa5wHTll5ByWM3kdr402eyzeKrku E46sWQh4kKsEdJP+mP4da2q399RZ0ca+rYsqJUzrEucS/NsCiRR55TU80XDAAJkSv+Qa CMpYIrS+bQN+3v4R0JV5WmC/aj7kQTSELCAhSwGgdLncsAIOLV/52JQC5o2o2MgJNJpm lRQd/rS7KNPXMfXi9/L6qsrXF4rj0y2HuhVnpR/+yd43CuLlCU2vKFRZrK8uAeIsiby0 Il3tmmXhAJI2SWO2iOuKLrid1Dfk/EoWNIdPSzjhdEwykoxeihL1zcfrTGuRt3iYqRcw pErg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@libero.it header.s=s2021 header.b=T8B5Zefq; 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 bu8si16655819edb.349.2021.03.03.23.22.46; Wed, 03 Mar 2021 23:23:08 -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=T8B5Zefq; 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 S1383589AbhCBWjS (ORCPT + 99 others); Tue, 2 Mar 2021 17:39:18 -0500 Received: from smtp-17.italiaonline.it ([213.209.10.17]:35362 "EHLO libero.it" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2359540AbhCBWAt (ORCPT ); Tue, 2 Mar 2021 17:00:49 -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: 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 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); } -- 2.17.1