can: sja1000: Add support for CAN_CTRLMODE_PRESUME_ACK
authorNikita Edward Baruzdin <nebaruzdin@gmail.com>
Fri, 11 Jul 2014 12:13:23 +0000 (16:13 +0400)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 15 Jul 2014 07:34:27 +0000 (09:34 +0200)
commit5b853ec3494e34eb4882f65ebbcd04b495ff3c85
treefe4a2a3badfbaadaf8422ea5e0f6f9d3b7f47ce8
parentdcf9e152670ea74dec24ec9ad57c495e631edba9
can: sja1000: Add support for CAN_CTRLMODE_PRESUME_ACK

SJA1000 has a self test mode (STM) which does not require
acknowledgement for the successful message transmission. In this mode a
node test is possible without any other active node on the bus.

This patch adds a possibility to set STM for SJA1000 controller through
specifying the corresponding CAN_CTRLMODE_PRESUME_ACK netlink flag.

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>
drivers/net/can/sja1000/sja1000.c