From: Dario Binacchi Date: Tue, 2 Mar 2021 21:54:33 +0000 (+0100) Subject: can: c_can: use 32-bit write to set arbitration register X-Git-Tag: accepted/tizen/unified/20230118.172025~7335^2~297^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fcbded019855136a3d99d74ef8b44e8f87120fb2;p=platform%2Fkernel%2Flinux-rpi.git can: c_can: use 32-bit write to set arbitration register The arbitration register is already set up with 32-bit writes in the other parts of the code except for this point. Link: https://lore.kernel.org/r/20210302215435.18286-5-dariobin@libero.it Signed-off-by: Dario Binacchi Signed-off-by: Marc Kleine-Budde --- diff --git a/drivers/net/can/c_can/c_can.c b/drivers/net/can/c_can/c_can.c index 980abf6..8fd2030 100644 --- a/drivers/net/can/c_can/c_can.c +++ b/drivers/net/can/c_can/c_can.c @@ -279,8 +279,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); }