lin-bus / linux-lin

Linux kernel LIN bus support implemented as TTY line discipline for generic UART conrollers, documentation https://github.com/lin-bus/linux-lin/wiki, based on https://github.com/lin-bus/linux-lin/wiki/sllin-rtlws14-paper.pdf, more CAN related projects http://canbus.pages.fel.cvut.cz/
https://github.com/lin-bus/linux-lin/wiki
38 stars 26 forks source link

Kernel 5 preliminary changes #5

Closed kbader94 closed 3 years ago

kbader94 commented 3 years ago

These are most of the changes I believe should be required for newer kernels while trying to retain full backwards compatibility. I haven't done any extensive testing with it yet, all I can confirm is that it does compile and load successfully on kernel 5.10.17. I'm going to try and test this across different kernel versions with some physical devices, I'll keep this as a draft until then, but if anyone wants to test it, it *might work lol.

kbader94 commented 3 years ago

@ppisa

Thanks for the effort. I am not sure on which version you base patches. I have updated https://github.com/lin-bus/linux-lin/ repo to include all my changes which end by commit b56f1ea for now.

Ok I'll fetch your latest and branch off of that. I just saw you made some useful changes after I initially forked. I've gone through and reviewed my code to comment and help explain the changes I made, many of them weren't based on the patches but on changes to the kernel that resulted in changes to network drivers such as drivers/net/can/slcan.c which I based my work off of. All of them were necessary to get it to work with linux 5.10.17 although I won't merge anything until I confirm it works with older versions as well.