Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2484914pxb; Sun, 28 Feb 2021 02:56:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJwYB/YOrqoPooC2QX0x0G/brETcggpxYXlzBjgkR4nhyoaX9e6dcetjp1VwxgjUWTQrDmrT X-Received: by 2002:a17:906:90d8:: with SMTP id v24mr139174ejw.547.1614509767865; Sun, 28 Feb 2021 02:56:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614509767; cv=none; d=google.com; s=arc-20160816; b=t/Vgr+pYERCnGjeHEcrBdeq5g2StjD9OUzCaTX5nEba8QNag1/wECkMZJlJyLGOBmY 0uSbaWEFKumoKCrS0rkS2iPwK3FBhcbai2Him3adWYx6PwfHb3GIOOQs0yeaCcf/Bf2N DekWVIX3UpXsuR89u0L3fcnhYRcZczWYmNW5G8O/jdp3Ag45IPer8m7/ApWICtLzFRom JVFClqSVpx/1O7sZV62v+cLnyqQilcd+FOB4MtZcCdUQu75JV7LQ5AWVmWurvbBOBe09 Uj/1Z8vTJb0YtCX2S6LoI7i7Rv6DjX3VUlLZecjbBe8cs7GoDTVOyzqDQG59h6iQ2hh4 RFAQ== 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=To8O8B9bkCT8mX2CLgnkmLM3bSGRPuYkJI6u4+s3AKi2LSy0GFkMIxo9MozQLt1A0f sJxZoRo1udp7DZ2mTWS+1r6NAd5QcBGkJfE51/k0YYmJhZh72xhtuzf3iJxzcko2iCv9 WAWmTSYJSOQVQ+EzjirYw0gYUeLTrZyQHvEQBc0dbM6OsOGuvkJmRAksAQ7S73amjIYp KuYVYQTP8/xOZy28AzzOAGwyV48/m5pJER//dcTqQi0SKfw1FkeJzHjauElmQJ8rSzko PH80QE8tyra4EYiLbUu3UqWoCOU0JNb9u69+/6DT7Eqv3ZOxOnnlV4RHjQAo1mRq4/2T d1jA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@libero.it header.s=s2021 header.b=pPaATL6S; 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 v7si9569224edj.572.2021.02.28.02.55.44; Sun, 28 Feb 2021 02:56:07 -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=pPaATL6S; 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 S230442AbhB1Kxb (ORCPT + 99 others); Sun, 28 Feb 2021 05:53:31 -0500 Received: from smtp-17-i2.italiaonline.it ([213.209.12.17]:58298 "EHLO libero.it" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231150AbhB1KxN (ORCPT ); Sun, 28 Feb 2021 05:53:13 -0500 Received: from passgat-Modern-14-A10M.homenet.telecomitalia.it ([87.20.116.197]) by smtp-17.iol.local with ESMTPA id GJTalhz13lChfGJTklvZU0; Sun, 28 Feb 2021 11:39:12 +0100 x-libjamoibt: 1601 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=libero.it; s=s2021; t=1614508752; bh=BCMzyFPGjvLZKNUS2sizrsXN5C/G8I7qiN9C3GvALOQ=; h=From; b=pPaATL6SaqBU+PARPe8/2w2axAMxjc7srRVKrIWhp1Lr1DeJj1i4DPLj0zZXJDzvX gLQxcun5BkKHoOqWa14kRjs1UKbgc+jWubl7I/hlTg8eSlFX06qduvN3lToJJ+7h6d s9DOL2GJunzpwLWN3oGGATKMEyDCcxhrvPL7C69YoCvBcLtCfntTFZ6XO30gTZnjjD 8FK0EhbEPFJqsjNVNtxPiDHXyI9NaitVnoEMHN2IuoxUbh5wU9fQB6KheMbA39EWuL X+P37kjuWC/K6b1waA2GapoOGDl5LC0QPDa+mByTuGxJGOHPvhHrCZqRXppRrDdK4+ 0N3OOwrWRNJ9g== X-CNFS-Analysis: v=2.4 cv=S6McfKgP c=1 sm=1 tr=0 ts=603b72d0 cx=a_exe a=AVqmXbCQpuNSdJmApS5GbQ==:117 a=AVqmXbCQpuNSdJmApS5GbQ==:17 a=YyHhdtpqV3cun0yf7GkA:9 From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Federico Vaga , Alexander Stein , 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 v3 4/6] can: c_can: use 32-bit write to set arbitration register Date: Sun, 28 Feb 2021 11:38:53 +0100 Message-Id: <20210228103856.4089-5-dariobin@libero.it> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210228103856.4089-1-dariobin@libero.it> References: <20210228103856.4089-1-dariobin@libero.it> X-CMAE-Envelope: MS4xfKf6mdjx4+1dDh8aTbBL1Or40zLaH6Q46OnNiVZTRbX6vXk7HMwz9iRKkagOahmfqD+nJPwMTuoYU5gTk9FCTvVLSY1FUSTThguPSDWHUH8hfVZxRwzG VOLn1uB0LZaq5Y0qMy1U8MRFbWOG/fSuKXK+aT07TSNXaAsID1qxdPOhWhs+hCqZAv9CWGcgSCQO8WrKc65LJaz1akGvQdU1i/mVP3R0RzydIKeLoFHp9L3J aCnAWYNZ9eZdmvgj7p319ROtPIU58y3VBFHPS3Mv1UVhoxoCg5gyUDNSluA6bIkCPgP31dk25AZdMUusL8cfrObWM/hFlkbZSPvH7mIdeFXT7eXhcFshz1MS xZOOi5tqCAJBpCj0Xz1VKtS9gr6XLSenbJdWyD/9XMyFmoxUb1tayptymlYLZt97VDQO+QcFk21uwvSjPv99Apykb2LJwntoKoIDMbL/Te/GQunPNhml9qYU EKzsMAHdPeDlaOq8YcNPUdNln0uGpzn01sxDh1DINR0iWV5TXOvBERRUmJ3eT14NT1dk7JHi4yD7ZPEFmSC9XEXiYZfG8E0F2GKRnjAhP3Zuf4qSGJ4UkY1q 4EqLiO4pcc2vx8hke6w+PSXxd2Wray6kr/0GgLJLZ57bB4xuK8RTEmRO/qeVATQN7vJiuUGHv7/qOUGHVPrznaB9yCK5QC9q/7wNcYA97gLR9Q== 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