Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

can: netlink: Add CAN_CTRLMODE_PRESUME_ACK flag

Most CAN controllers have a support for ignoring ACK absence. Some of
them refer to this feature as a self test mode (e. g. SJA1000) and some
include it as a part of a loopback mode (e. g. MCP2510).

Setting the introduced flag via netlink should make CAN controller
perform a successful transmission, even if there is no acknowledgement
(dominant ACK bit) received.

Signed-off-by: Nikita Edward Baruzdin <nebaruzdin@gmail.com>
Acked-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>

authored by

Nikita Edward Baruzdin and committed by
Marc Kleine-Budde
4b9e1bab f736d998

+1
+1
include/uapi/linux/can/netlink.h
··· 97 97 #define CAN_CTRLMODE_ONE_SHOT 0x08 /* One-Shot mode */ 98 98 #define CAN_CTRLMODE_BERR_REPORTING 0x10 /* Bus-error reporting */ 99 99 #define CAN_CTRLMODE_FD 0x20 /* CAN FD mode */ 100 + #define CAN_CTRLMODE_PRESUME_ACK 0x40 /* Ignore missing CAN ACKs */ 100 101 101 102 /* 102 103 * CAN device statistics