[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210825215227.4947-1-stefan.maetje@esd.eu>
Date: Wed, 25 Aug 2021 23:52:26 +0200
From: Stefan Mätje <stefan.maetje@....eu>
To: linux-can@...r.kernel.org, Marc Kleine-Budde <mkl@...gutronix.de>
Cc: Wolfgang Grandegger <wg@...ndegger.com>, netdev@...r.kernel.org,
Stefan Mätje <stefan.maetje@....eu>
Subject: [PATCH 0/1] can: usb: esd_usb2: Fix the interchange of CAN TX and RX error counters
In the driver for the esd CAN-USB/2 the CAN RX and TX error counters
were fetched interchanged from the ESD_EV_CAN_ERROR_EXT message and
therefore delivered wrong to the user.
To verify the now correct behavior call the candump tool to print CAN
error frames with extra infos (including CAN RX and TX error counters)
like "candump -e -x can4,0:0,#fffffffff".
Then send a CAN frame to the open (no other node) but terminated CAN
bus. The TX error counter must increase by 8 for each transmit attempt
until CAN_STATE_ERROR_PASSIVE is reached.
Stefan Mätje (1):
can: usb: esd_usb2: Fix the interchange of the CAN RX and TX error
counters.
drivers/net/can/usb/esd_usb2.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
base-commit: cbe8cd7d83e251bff134a57ea4b6378db992ad82
--
2.25.1
Powered by blists - more mailing lists