From patchwork Wed Feb 24 22:52:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 387586 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, URIBL_BLOCKED, 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 13EBAC433E6 for ; Wed, 24 Feb 2021 23:00:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D9F2964F03 for ; Wed, 24 Feb 2021 23:00:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236133AbhBXXAK (ORCPT ); Wed, 24 Feb 2021 18:00:10 -0500 Received: from smtp-17-i2.italiaonline.it ([213.209.12.17]:40201 "EHLO libero.it" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S235969AbhBXXAA (ORCPT ); Wed, 24 Feb 2021 18:00:00 -0500 Received: from passgat-Modern-14-A10M.homenet.telecomitalia.it ([87.20.116.197]) by smtp-17.iol.local with ESMTPA id F32VlxCf1lChfF32blf7Ww; Wed, 24 Feb 2021 23:53:57 +0100 x-libjamoibt: 1601 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=libero.it; s=s2021; t=1614207237; bh=zrbOPNMigb21aFjhKEOuvQtWkpXK2Y1j2BXvj+PWIS8=; h=From; b=XEfg4qc01rtLuJ0Ua205sP6KUGopVoe5MhCOC2TLcLReWTkgrsfTWHK3BZbObHq2F J2AiKeB/Y12Bg4w1/lpiwlcbDVWOgv+1+mMjh67IdkDzeVbgml285H5p884MUlg3Jl seTkC01+VB4g2NxXD+hBB3jewCN1c/pdyt3GxjJh+x9J5wvVK8dQTNqWuptiVOlDYa IZdXkCw3LXpyEGZMYDj12Pu0SEcKTmMaHgdhAC9c/ClFMF4VTKN5wdCHzx15Sd+CVU vAUJhhskiLQ+a1jSLYFqzTqdJMV7bmpZhdcvs0ADc0X2RL47MFDiVP0sE6sRlp99Hj zdvYRHGgxk1tw== X-CNFS-Analysis: v=2.4 cv=S6McfKgP c=1 sm=1 tr=0 ts=6036d905 cx=a_exe a=AVqmXbCQpuNSdJmApS5GbQ==:117 a=AVqmXbCQpuNSdJmApS5GbQ==:17 a=6WxvSi62EpDuW4hn7DoA:9 From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: 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 3/6] can: c_can: fix control interface used by c_can_do_tx Date: Wed, 24 Feb 2021 23:52:43 +0100 Message-Id: <20210224225246.11346-4-dariobin@libero.it> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210224225246.11346-1-dariobin@libero.it> References: <20210224225246.11346-1-dariobin@libero.it> X-CMAE-Envelope: MS4xfJkuawPBeIAI7RvLQt2PqRPk8oryQV6eJXSBCTbyPJNMKZ5EydhRp9g3DZXGMF1HSBWwV4zzACoFYMCty3ptPV7UMmluayJhF940XCkOjbucwpIKmNGn Jz6vyFim9ORgc1NHfEK0rPUbZ5BzSqMd+KRA6yCYCqpYymkntrqekdKlbOR1Oqzb2+wRXyv8hLOLNIu6ht3N0yiT1GoaxnN4q92wevNtJTKgnPZep19Uk5Q8 CmOHFHzPxR5cgis75WP/k3R91/eV+cPbuWj4rx6b7rhAtelhX35PmCk9mBe6NY+ZJDsOGGkOV2Q9a+N/URJHrsup2+w/74kqYwo4vBjNFPD+X4rk3g8eXp2F j+/dN4lW+YXFYsSXQt7ueY6Xl07vbsszPhunCWYg8igatipAvnGkfdnOiX+DfO+3b4+iOLm+J+9bddtiyOPl/RiYFSzHC9WbQd181tAl/rl5wNhI/nx3Vkpd g6VVg+2mTUI2eMTOoKkh1I75rAGabjXkm/kwbPHHnItx/2rSebPZwZRklpiNY+F0OS+jNu9wALZczKXhInrDJgKWVCEb6NrigBhMjmu3SzoUMLUDC/gWrxPK x/yAFo3hC1S8HehAPnqZE+nd Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org According to commit 640916db2bf7 ("can: c_can: Make it SMP safe") let RX use IF1 (i.e. IF_RX) and TX use IF2 (i.e. IF_TX). Signed-off-by: Dario Binacchi --- drivers/net/can/c_can/c_can.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/can/c_can/c_can.c b/drivers/net/can/c_can/c_can.c index dbcc1c1c92d6..69526c3a671c 100644 --- a/drivers/net/can/c_can/c_can.c +++ b/drivers/net/can/c_can/c_can.c @@ -732,7 +732,7 @@ static void c_can_do_tx(struct net_device *dev) idx--; pend &= ~(1 << idx); obj = idx + C_CAN_MSG_OBJ_TX_FIRST; - c_can_inval_tx_object(dev, IF_RX, obj); + c_can_inval_tx_object(dev, IF_TX, obj); can_get_echo_skb(dev, idx, NULL); bytes += priv->dlc[idx]; pkts++;