From patchwork Sat Nov 16 18:02:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3634 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 8A4C93F033 for ; Sat, 16 Nov 2024 19:03:11 +0100 (CET) Received: by mail-ed1-f69.google.com with SMTP id 4fb4d7f45d1cf-5cfa7244068sf453494a12.2 for ; Sat, 16 Nov 2024 10:03:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1731780191; cv=pass; d=google.com; s=arc-20240605; b=NDcbCaOQXLgEgoCVp9KwrCxNg3h3h/ZnXkjDpoxystRJILq9KFin13jWApaYDwwoTg KSeYrt+K1MouAVs7Hkw/CPMe4PCNw/2ZDDH9SFpS//iQFdvp1fcScocTmbeCxUVK2bfQ jandj147ucDZnzHsve4Hc9XH5rskBtJpAndm842PsMorrQ0QNbmxviPXrnXiOTP5KAJX hGUZBrkb357UShr4uP1Zj8lh9XIHAAmAd6mzELPTTqse8E+YMQZU638qa/qcI324VQ4t PICL7c4yK4NHVD9j/nq49aybVBAuQkh0kxZkxRePUSwvCtMfYp9NjmD182/Pg9DioZvO dVrA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=dfcJiOC3rCC9UoaVLofFI0WOEi5PUHsDrWWK7BU2v4g=; fh=XIi+kkH+mKQZjoKwbyktYaMKsdYpYXvyPRvyi1RSu9c=; b=gLNgOHrJ8L6VEVXriDEKlgmS2XDfwk1ZIeq68Vk5ZwKYAJfJFULiwUnSBi1at+IagQ FJtUUclgdQ2f+7P7q58oCn7FM+fIxKLAMlFVyIAlhxB72HqbuRG8XOh6nLqBMKK9HT3B 3FLfaqau/Vyo01RJ3n22WuRY/SqRteGW67GI/Q41XQMR1Wwq4RBh0u7G/9agxTaB4Ice 6M5ZLU03eQ51hcNoMuKCZOCPzj+YyyKj67oyF9XRhojorffCYRdSTf2Bvevpk2Crkrho DgPBS+YJG/bMei1vBqgPg5s/rFq+G3TgmHSIdcQlX/me8yFA0rOulFwm7vrrp4mz3l7U 6CgQ==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YnGHFA4i; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1731780191; x=1732384991; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :from:to:cc:subject:date:message-id:reply-to; bh=dfcJiOC3rCC9UoaVLofFI0WOEi5PUHsDrWWK7BU2v4g=; b=IMuMRPmWxTLt3LUM165uvRbL7gcEH+h73TsoShK9Gp5v6NRxS8u4ahYoJ1ZLkteFwH aAA94k6J1oBXJRYpDNebSfgK6tBrTeKRFvq2cRmVszPk6BNZhz32iFSa9bU/CFM1IKmL u0Xp7mrpvo4NtMyIEnodQd0hyOod4i9I43LwU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731780191; x=1732384991; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:x-beenthere:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=dfcJiOC3rCC9UoaVLofFI0WOEi5PUHsDrWWK7BU2v4g=; b=YqTSz6qI/mkr40bTahJToJ+SQCdFeOGQt6mLffbemleUW+HhnylHclw+Q79ek10NlK d1jcYK2s6wzOoa989zbnCnURS/PNGxaNwx1dUbBn1lsr0TPCy6VqXtkUaoeZAyx2uNc3 ffrvyEfV3RYMt9upiPkNYnvrx2tkxSBZzBqvNOCD15XgU3ff5FhemFio4c6ZtdymWefQ oWtQ1Dv2eFmrXQl8GLuLC8n/T8i4+lmFne0OeM9P44G49CEjaoNA6Ai47V+iLarteGu2 K2Zj1tF6AX89/rHSuLPTD5EU+epn5HymovhwZOf7sK7k2eh9n+djqN6VPK111c/9A4fu MQqQ== X-Forwarded-Encrypted: i=2; AJvYcCXwPy4BeJ5HbL/lthiCER3jymY3oeGWt3+a6m+qC5qsL9ONzBpX/3KiERb6QlCLqp1Zrfhnl4svEhjBugEJ@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YwiBXKY2z2FC/5rUWHhotfUneenCnHYciPZ6ftcZGQeeEqNh37z kn+zUMtYx7SqHPS0fjBYyntaZGZSzlAXI8I3SXIYMeLwdXZMPUsNy+4zJLEwbvRwiQ== X-Google-Smtp-Source: AGHT+IEV3rUxJInm8aC47Y1Qg0YOS5Hbjsc58V6LIN9jBDi19TfbVcw4AoKuUYs/fO4LBxeoSR8B2A== X-Received: by 2002:a05:6402:1e8a:b0:5cf:af70:454b with SMTP id 4fb4d7f45d1cf-5cfaf7047damr1137089a12.32.1731780190766; Sat, 16 Nov 2024 10:03:10 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:1c1c:b0:5cf:801e:4b3d with SMTP id 4fb4d7f45d1cf-5cfa2d25137ls126651a12.2.-pod-prod-06-eu; Sat, 16 Nov 2024 10:03:09 -0800 (PST) X-Received: by 2002:a17:907:3e9c:b0:a9e:b150:a99d with SMTP id a640c23a62f3a-aa4833f22d7mr645409866b.5.1731780188414; Sat, 16 Nov 2024 10:03:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1731780188; cv=none; d=google.com; s=arc-20240605; b=OY3bwffWp7FBvK3EIUf3p/HsOJm7yv4T5dMJhBBNqNXZZXume1xwWlRzB0Ygyop8tN 6Y2Ep40/iEPX9jvIseGZsfly+hQH35XHc3HI3DtaaQYydwRWZxqcc1aRUqiZ2guKGuMy ISXQ+CWnnw1V3ABjOLaNRxwMrT1Am+woUvbYT/a77a9HuTMdL4RKDjJ5jR5YNi6Nu8uX m1a1OrbpG+9bSFUyXp8bgvy9/IYb2hNrqemQfe+5KrdPZz+nrVVlS0EV0Uf503nYbbhL 5QjuVaQFqTo2L3qQFtHbFaRo27TCe0pcRLGp7GsPxXvnLwhUb7mgYt/1POSdiaoQeg6u vbpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=aGohF+muowKkt4fdau+AubKELBZgZqyCJ8OaVgT7H9o=; fh=L2dUSexLx9npRIIykL1Js/fGtBAdEuFQtWmhQ2vEKh4=; b=NF6Vw+79Mf6hTcVaKURKyKtW5RbdfksOyW3HbIPFTEIBpNvCFZlCOkoBwqZdIPH1R+ XvjEpKQnun8KIY6VDB3fMapgrvvKp7fRQvNWTsAPrGy8mpM07m1gLDd2SJ02hodqqGOw wIE/BX9xTT23JvRYT+74Vnv7d1lQ6YeaSpD/HLzmR/0NejXEmU2Yx3aiiqOC3WXIyntv 0hC6kUQdqTUavqZWV3OzH3L0ntbPC1gwCeaPkBEonFGrYvSsaR4wjE/dcG7sOKQAB+aa N2vIKlU08EiUDazlGohABgaMJKfvwUhRhYDbUM0bAFEgB5pHw9imyDnhOoQZXj+e4dKo F4oQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YnGHFA4i; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id a640c23a62f3a-aa20e06e12dsor242695666b.17.2024.11.16.10.03.08 for (Google Transport Security); Sat, 16 Nov 2024 10:03:08 -0800 (PST) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:907:9413:b0:aa3:722c:cc8a with SMTP id a640c23a62f3a-aa483525d25mr654985366b.40.1731780186523; Sat, 16 Nov 2024 10:03:06 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-82-54-94-193.retail.telecomitalia.it. [82.54.94.193]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-aa20dc6d364sm329549066b.0.2024.11.16.10.03.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Nov 2024 10:03:06 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Dario Binacchi , Akshay Bhat , Andrew Lunn , Chandrasekar Ramakrishnan , Chen-Yu Tsai , "David S. Miller" , Dong Aisheng , Eric Dumazet , Fengguang Wu , Gerhard Bertelsmann , Jakub Kicinski , Jernej Skrabec , "Ji-Ze Hong (Peter Hong)" , Krzysztof Kozlowski , Marc Kleine-Budde , Marek Vasut , Maxime Ripard , Oliver Hartkopp , Paolo Abeni , Samuel Holland , Sebastian Haas , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Varka Bhadram , Vincent Mailhol , Wolfgang Grandegger , linux-arm-kernel@lists.infradead.org, linux-can@vger.kernel.org, linux-sunxi@lists.linux.dev, netdev@vger.kernel.org Subject: [PATCH 0/7] Fix {rx,tx}_errors CAN statistics Date: Sat, 16 Nov 2024 19:02:29 +0100 Message-ID: <20241116180301.3935879-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YnGHFA4i; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This series extends the patch 4d6d26537940 ("can: c_can: fix {rx,tx}_errors statistics"), already merged into the mainline, to other CAN devices that similarly do not correctly increment the error counters for reception/transmission. Dario Binacchi (7): can: m_can: fix {rx,tx}_errors statistics can: ifi_canfd: fix {rx,tx}_errors statistics can: hi311x: fix {rx,tx}_errors statistics can: sja1000: fix {rx,tx}_errors statistics can: sun4i_can: fix {rx,tx}_errors statistics can: ems_usb: fix {rx,tx}_errors statistics can: f81604: fix {rx,tx}_errors statistics drivers/net/can/ifi_canfd/ifi_canfd.c | 29 +++++++++++++++++++-------- drivers/net/can/m_can/m_can.c | 7 ++++++- drivers/net/can/sja1000/sja1000.c | 7 +++++-- drivers/net/can/spi/hi311x.c | 17 ++++++++++------ drivers/net/can/sun4i_can.c | 7 +++++-- drivers/net/can/usb/ems_usb.c | 7 +++++-- drivers/net/can/usb/f81604.c | 7 +++++-- 7 files changed, 58 insertions(+), 23 deletions(-)