OpenCloudOS-Kernel/drivers/net/can/cc770
Oliver Hartkopp c971fa2ae4 can: Unify MTU settings for CAN interfaces
CAN interfaces only support MTU values of 16 (CAN 2.0) and 72 (CAN FD).
Setting the MTU to other values is pointless but it does not really hurt.
With the introduction of the CAN FD support in drivers/net/can a new
function to switch the MTU for CAN FD has been introduced.

This patch makes use of this can_change_mtu() function to check for correct
MTU settings also in legacy CAN (2.0) devices.

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2014-03-17 09:20:16 +01:00
..
Kconfig can: Kconfig: convert 'depends on CAN_DEV' into 'if CAN_DEV...endif' block 2013-01-26 16:58:58 +01:00
Makefile can: cc770: add platform bus driver for the CC770 and AN82527 2011-12-01 13:09:31 -05:00
cc770.c can: Unify MTU settings for CAN interfaces 2014-03-17 09:20:16 +01:00
cc770.h can: cc770: add driver core for the Bosch CC770 and Intel AN82527 2011-12-01 13:09:31 -05:00
cc770_isa.c net: can: use platform_{get,set}_drvdata() 2013-06-03 13:13:49 +02:00
cc770_platform.c can: cc770: use dev_get_platdata() 2013-09-21 15:43:13 +02:00