Skip to content

Commit

Permalink
can: netlink: Add CAN_CTRLMODE_PRESUME_ACK flag
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nikita Edward Baruzdin authored and Marc Kleine-Budde committed Jul 15, 2014
1 parent f736d99 commit 4b9e1ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/uapi/linux/can/netlink.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ struct can_ctrlmode {
#define CAN_CTRLMODE_ONE_SHOT 0x08 /* One-Shot mode */
#define CAN_CTRLMODE_BERR_REPORTING 0x10 /* Bus-error reporting */
#define CAN_CTRLMODE_FD 0x20 /* CAN FD mode */
#define CAN_CTRLMODE_PRESUME_ACK 0x40 /* Ignore missing CAN ACKs */

/*
* CAN device statistics
Expand Down

0 comments on commit 4b9e1ba

Please sign in to comment.