Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp740628pxb; Thu, 25 Feb 2021 14:00:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJwDRN9Svch8kkKjcfJiLtP4nWTr/8e77yT2ryCCjuqzJguy2xtDNrn917HfcMH78IhTNl20 X-Received: by 2002:a05:6402:2052:: with SMTP id bc18mr88530edb.74.1614290434516; Thu, 25 Feb 2021 14:00:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614290434; cv=none; d=google.com; s=arc-20160816; b=LtPGeasrjabGSUxE0pJfKiVcIy44MBWhtz8GwCRkoRzt/2eCRePumm1ug105SYiyeE nUMXKZzZmA/PFSPkFLPC1cl+WzYAEmwPa7cWSDw5xUGul/rripeYLjJxNyXD/sl9Mf7Y Iahh+ClyqnWDm6Kzbks8BGcMnBzPBCCfBgUhqdPJKz6jTTgRSG9G4xwwBeGoscBmiJ2o lqInv7LFAC//9+i2x15OIzahWv//65BivcOGGcsI4+xQadv8OkkBaOmqC0lt+KItXNDs SXu+3dvK+/oMy7eXxGqtBPgGcSXi2U3mP2+tU0t4xFcDhUSKNSyVz0T59s7HFRiytZGL H9Jw== 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=j7GRCoTejXM7B9fJVl1bTmRrEzrTT3KamKBLcuWoSdk=; b=L9eTG2esRrPdgdeL+vqHmhL2R59KKlUcz/u4UjlK98KtPpaIm7KEl5EQZT9kd4hdo6 6fhPrwYPTfVW5cpwTCMwgRX9pTSK1XnIa4BFRO6ApgX6uI3khq2fB0fgY7MPigLiIXDa 2cACRgE0L0jx07tzOpM8tL9r1WEqI/Kt6dh4WWuSANiawJv7Zn/x1F8kT21qdnC5Bw+p 9MphNr+NC/PNF5m/fUOaAuTsr/H54rKVcwOMVWEXJcNEeZ+oKt4lq7ZY0+9Jhl4x4PHI Brx4HIQzKq8fNi/1w2NgOY8ltQrIvYLMEfjH3SAGRi9sz/xyX9lfwXH7SfPl6dwirBQr oyWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@libero.it header.s=s2021 header.b=aQXhC9sB; 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 dn28si3981048edb.569.2021.02.25.14.00.12; Thu, 25 Feb 2021 14:00:34 -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=aQXhC9sB; 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 S234871AbhBYV5k (ORCPT + 99 others); Thu, 25 Feb 2021 16:57:40 -0500 Received: from smtp-17-i2.italiaonline.it ([213.209.12.17]:34156 "EHLO libero.it" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S234891AbhBYVz2 (ORCPT ); Thu, 25 Feb 2021 16:55:28 -0500 Received: from passgat-Modern-14-A10M.homenet.telecomitalia.it ([87.20.116.197]) by smtp-17.iol.local with ESMTPA id FOYQlNUJ2lChfFOYXlkbgJ; Thu, 25 Feb 2021 22:52:22 +0100 x-libjamoibt: 1601 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=libero.it; s=s2021; t=1614289942; bh=j7GRCoTejXM7B9fJVl1bTmRrEzrTT3KamKBLcuWoSdk=; h=From; b=aQXhC9sBNN93GeYw4esKYoNGJMPZMNLWgrYE83abP0Nw/CGXJoyoPv+KAzAnF5E/l QvzHd+pKIbGa5AvOD3OyDMhHTCw8Rvr5nzCK+GvkJCyAxH0CfjXBJ6ePScVG/lOzRA +zidJq7s9Vq/B9LusPURVs7elE+g/X3RRzCaDQB4g/Awe4Uq23D7bf64xwJs+zV2tb 3XsrkAN/+r1CijnWd1r4OQ9ByTRFxqaAOcAEDNN5K2hZoGVRKzuXL799Ea4wnu0CCG FOBnyXHLLYjfZN8dsqk5DQJzxKDKcXJvwl7OdBFm4UEpfkp67a6+0axJRdpCSe0kTh MU32eX7SV0vuQ== X-CNFS-Analysis: v=2.4 cv=S6McfKgP c=1 sm=1 tr=0 ts=60381c16 cx=a_exe a=AVqmXbCQpuNSdJmApS5GbQ==:117 a=AVqmXbCQpuNSdJmApS5GbQ==:17 a=6WxvSi62EpDuW4hn7DoA: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 v2 3/6] can: c_can: fix control interface used by c_can_do_tx Date: Thu, 25 Feb 2021 22:51:52 +0100 Message-Id: <20210225215155.30509-4-dariobin@libero.it> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210225215155.30509-1-dariobin@libero.it> References: <20210225215155.30509-1-dariobin@libero.it> X-CMAE-Envelope: MS4xfPTJVu/b4W/lDf0Rt18zHhRwMpHd1BkDGPYy0FpY80gMrR9Lu9WZompAs77KBBfKMdwZRlBBH0dvhFQeVLFKK3CGvAcOJ9BD+RkDPijbzbJ3Z27HSyBc wOItyxSDdpNDePV3OQmXEkG8mE+tGXsQF8jRD4tyIDGWGWu38s5QBQSmCDxTGITHVYuagr0DE6ux1lOJmBJLkiKh/+KzCfJ4EasyY0JTKmaBasKwIzQW8Qbs zDmkMzh4RpdZ3+LQ7eD2HvBgJaW52frQ/+d4jYvj+EAkgYOg61k/oPt65aqOjlBY2p+ZLpQ0xcu6e7OyYI/vrSHv2iElTTs5XgFDYkrqMyuKfJ0YNpnOAqKI uLEv/KOtms3BQNVwz8jXT+O5EcO57ZEj1kx3URL0OnNPHZnSLJzlPy5GOVQ4cv6hdTM7qX8LeomhWpfTVUg2+F7oBIXeUkYxwsF+Gm8iOm/93z9s22z2TVGZ 9ycaHOc35NAnPDFgttLcf/FWbfYOIhR15SNPqlHsaxAE+bIUd3JgDVQU156m8nM/LkduMCAvsqhPEpbuBNsWqi2kKlTKkkSYze6oiIlhwcSWmHwVnFd3/zhX /8fLDv61eFQezQaSTPPE8ok9UUayGvdQIpwM8phZkaTEvGtXYtlnfY2xiM2iMSusGT3X7yelQqEURw3j1XJQXGkpU7knR/CsxnNTsKrOwQP1eQ== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 --- (no changes since v1) 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++; -- 2.17.1