]> git.baikalelectronics.ru Git - kernel.git/commit
can: ifi: Treat CAN_CTRLMODE_FD_NON_ISO correctly
authorMarek Vasut <marex@denx.de>
Sat, 7 May 2016 22:34:14 +0000 (00:34 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 9 May 2016 09:07:28 +0000 (11:07 +0200)
commite46827f621e70a4d9aac0baa2bbeb378ec0599b0
tree34f5153e538b7fa1d4a9c4ca8249219e70302972
parent16e3da3fb09b5a3c7b8b5c5c50195f0453239de9
can: ifi: Treat CAN_CTRLMODE_FD_NON_ISO correctly

The CAN_CTRLMODE_FD flag is set for both ISO and BOSCH CANFD mode,
while the CAN_CTRLMODE_FD_NON_ISO is additional flag which is only
set for CANFD-BOSCH mode. Fix the handling of the flags to reflect
this.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marc Kleine-Budde <mkl@pengutronix.de>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Oliver Hartkopp <socketcan@hartkopp.net>
Cc: Wolfgang Grandegger <wg@grandegger.com>
Reviewed-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/ifi_canfd/ifi_canfd.c