Till now the flexcan module supported 8 byte payload size as per CAN 2.0 specifications. But now upcoming flexcan module in NXP LX2160A SOC supports CAN FD protocol too. These patches add the FD format changes to flexcan driver. These patches have been prepared on top of https://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next.git/log/?h=testing Cc: Varun Sethi <V.Sethi@xxxxxxx> Pankaj Bansal (6): net: can: flexcan: enable loopback mode in flexcan net: can: flexcan: move rx offload_add from probe to start net: can: flexcan: Add provision for variable payload size net: can: flexcan: split the Message Buffer RAM area net: can: flexcan: use CAN FD frames for Tx/Rx net: can: flexcan: can FD Format (FDF) changes drivers/net/can/flexcan.c | 417 +++++++++++++++++++++++++-------- drivers/net/can/rx-offload.c | 32 ++- include/linux/can/rx-offload.h | 6 +- 3 files changed, 342 insertions(+), 113 deletions(-) -- 2.17.1