diff options
Diffstat (limited to 'drivers/net/can/m_can/m_can.c')
-rw-r--r-- | drivers/net/can/m_can/m_can.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/can/m_can/m_can.c b/drivers/net/can/m_can/m_can.c index b2ecb6c5e94b..2e04b3aeeb37 100644 --- a/drivers/net/can/m_can/m_can.c +++ b/drivers/net/can/m_can/m_can.c | |||
@@ -956,6 +956,11 @@ static struct net_device *alloc_m_can_dev(void) | |||
956 | priv->can.data_bittiming_const = &m_can_data_bittiming_const; | 956 | priv->can.data_bittiming_const = &m_can_data_bittiming_const; |
957 | priv->can.do_set_mode = m_can_set_mode; | 957 | priv->can.do_set_mode = m_can_set_mode; |
958 | priv->can.do_get_berr_counter = m_can_get_berr_counter; | 958 | priv->can.do_get_berr_counter = m_can_get_berr_counter; |
959 | |||
960 | /* CAN_CTRLMODE_FD_NON_ISO is fixed with M_CAN IP v3.0.1 */ | ||
961 | priv->can.ctrlmode = CAN_CTRLMODE_FD_NON_ISO; | ||
962 | |||
963 | /* CAN_CTRLMODE_FD_NON_ISO can not be changed with M_CAN IP v3.0.1 */ | ||
959 | priv->can.ctrlmode_supported = CAN_CTRLMODE_LOOPBACK | | 964 | priv->can.ctrlmode_supported = CAN_CTRLMODE_LOOPBACK | |
960 | CAN_CTRLMODE_LISTENONLY | | 965 | CAN_CTRLMODE_LISTENONLY | |
961 | CAN_CTRLMODE_BERR_REPORTING | | 966 | CAN_CTRLMODE_BERR_REPORTING | |