简体   繁体   中英

RTNETLINK answers: Argument list too long

I backported mcp251xfd CAN driver for v4.9 I can see now can0 in ifconfig but when I do:

$ sudo ip link set can0 type can bitrate 125000
$ sudo ip link set up can0

I get the following: RTNETLINK answers: Argument list too long

It comes from the second command.

I needed to comment out the check here: https://elixir.bootlin.com/linux/v4.9.170/source/drivers/base/regmap/regmap.c#L1730

These lines:

if (map->max_raw_write && map->max_raw_write < val_len)
        return -E2BIG;

I saw that there no such check in newer kernel versions.

Thanks James Risner

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM