Commit ec0caa96 authored by Martin Jeřábek's avatar Martin Jeřábek
Browse files

driver: perform bittiming adjustment as soon as possible (after setting)

parent 3592339e
......@@ -865,8 +865,11 @@ static int ctucan_probe(struct platform_device *pdev)
priv->can.bittiming_const = &ctu_can_fd_bit_timing_max;
priv->can.data_bittiming_const = &ctu_can_fd_bit_timing_data_max;
priv->can.do_set_mode = ctucan_do_set_mode;
//priv->can.do_set_bittiming = ctucan_set_bittiming;
//priv->can.do_set_data_bittiming = ctucan_set_data_bittiming;
/* Needed for timing adjustment to be performed as soon as possible */
priv->can.do_set_bittiming = ctucan_set_bittiming;
priv->can.do_set_data_bittiming = ctucan_set_data_bittiming;
priv->can.do_get_berr_counter = ctucan_get_berr_counter;
//priv->can.do_get_state = ctucan_get_state;
priv->can.ctrlmode_supported = CAN_CTRLMODE_LOOPBACK
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment