Clemens Gruber
f594b5feab
network: can: Fix CAN initialization
...
When introducing CAN-FD support, the .can_fd_mode was not initalized
with -1 and due to cm.mask containing the CAN_CTRLMODE_FD bit, it was
not ignored when FDMode was not configured but instead disabled.
The same thing happened when listen-only mode support was introduced.
On chips that do not support these features, this lead to an error:
can0: Failed to configure CAN link: Operation not supported
Fix it by intializing all the CAN related tristate variables
(.can_listen_only, .can_fd_mode and .can_non_iso) to -1.
2020-08-24 09:33:25 +02:00
..
2019-12-12 19:01:24 +09:00
2020-07-21 10:32:01 +02:00
2020-07-17 00:40:09 +09:00
2020-07-15 17:15:25 +09:00
2019-10-24 14:18:09 +09:00
2020-07-01 13:51:33 +09:00
2020-07-20 15:24:40 +09:00
2020-07-17 00:40:09 +09:00
2019-05-07 16:55:19 +02:00
2020-08-08 12:31:12 +09:00
2020-07-29 02:05:05 +09:00
2020-07-17 00:40:09 +09:00
2019-06-30 04:45:56 +09:00
2020-07-17 00:40:09 +09:00
2020-04-01 20:07:20 +02:00
2020-07-17 00:40:09 +09:00
2020-03-03 11:53:49 +09:00
2020-08-18 20:33:58 +02:00
2020-07-16 10:51:46 +09:00
2020-07-29 05:50:08 +09:00
2020-07-29 05:50:08 +09:00
2020-07-17 00:40:09 +09:00
2020-06-02 17:06:01 +09:00
2020-06-04 11:16:15 +02:00
2020-06-04 11:16:15 +02:00
2020-07-21 04:08:22 +09:00
2020-06-18 13:08:18 +09:00
2020-07-17 00:40:09 +09:00
2019-07-11 22:22:29 +09:00
2020-03-07 01:42:52 +09:00
2020-07-29 02:05:05 +09:00
2019-06-30 04:45:56 +09:00
2020-07-17 00:40:09 +09:00
2020-07-22 19:55:15 +09:00
2020-07-21 04:08:22 +09:00
2020-08-08 12:41:03 +09:00
2020-08-08 12:41:03 +09:00
2020-04-23 20:01:30 +02:00
2019-05-11 06:14:39 +09:00
2020-07-28 11:24:55 +02:00
2020-04-08 00:20:54 +02:00
2020-07-21 04:08:22 +09:00
2019-07-17 06:59:12 +09:00
2020-07-29 02:05:05 +09:00
2020-07-29 02:05:05 +09:00
2020-07-29 02:05:05 +09:00
2020-07-29 02:05:05 +09:00
2020-07-29 02:05:05 +09:00
2019-08-12 20:28:19 +09:00
2019-06-30 05:12:51 +09:00
2019-06-30 05:12:51 +09:00
2020-07-29 05:50:08 +09:00
2020-08-24 09:33:25 +02:00
2020-07-29 05:50:08 +09:00
2020-07-17 00:40:09 +09:00
2019-10-14 21:32:48 +09:00
2020-07-29 05:50:08 +09:00
2020-07-29 05:50:08 +09:00
2020-07-29 02:05:05 +09:00
2020-07-29 02:05:05 +09:00
2020-07-29 02:05:05 +09:00
2020-02-03 08:25:48 +09:00
2019-06-16 09:13:12 +09:00
2019-06-01 10:24:47 +09:00
2020-07-17 00:40:09 +09:00
2020-07-01 13:51:35 +09:00
2020-07-22 19:55:14 +09:00
2020-05-30 14:18:43 +02:00
2019-10-25 16:43:18 +09:00
2019-10-15 01:59:13 +09:00
2020-07-02 17:12:23 +02:00
2020-03-07 01:42:52 +09:00
2019-07-17 06:59:12 +09:00
2020-02-19 07:41:36 +01:00
2019-10-30 22:23:43 +09:00
2020-06-03 18:25:37 +02:00
2020-07-26 11:32:06 +02:00
2020-07-29 02:05:05 +09:00