]> git.baikalelectronics.ru Git - kernel.git/commit
can: m_can: update to support CAN FD features
authorDong Aisheng <b29396@freescale.com>
Tue, 18 Nov 2014 11:00:55 +0000 (19:00 +0800)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 18 Nov 2014 20:35:06 +0000 (21:35 +0100)
commitd2d8b7f06569c206798bc6ee7bfa2385cec63beb
tree66278a4176be077e2478ac72c5d2ea5b9154454b
parent9c02ff09782daa3aeeee2892ec410bf86a416099
can: m_can: update to support CAN FD features

Bosch M_CAN is CAN FD capable device. This patch implements the CAN
FD features include up to 64 bytes payload and bitrate switch function.
1) Change the Rx FIFO and Tx Buffer to 64 bytes for support CAN FD
   up to 64 bytes payload. It's backward compatible with old 8 bytes
   normal CAN frame.
2) Allocate can frame or canfd frame based on EDL bit
3) Bitrate Switch function is disabled by default and will be enabled
   according to CANFD_BRS bit in cf->flags.

Acked-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Dong Aisheng <b29396@freescale.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/m_can/m_can.c