On Tuesday 27 of August 2024 05:49:26 Doug Brown wrote: > Use QEMU's helper functions can_dlc2len() and can_len2dlc() for > translating between the raw DLC value and the SocketCAN length value. > This also has the side effect of correctly handling received CAN FD > frames with a DLC of 0-8, which was broken previously. > > Signed-off-by: Doug Brown <d...@schmorgal.com>
Reviewed-by: Pavel Pisa <p...@cmp.felk.cvut.cz> -- Pavel Pisa phone: +420 603531357 e-mail: p...@cmp.felk.cvut.cz Department of Control Engineering FEE CVUT Karlovo namesti 13, 121 35, Prague 2 university: http://control.fel.cvut.cz/ personal: http://cmp.felk.cvut.cz/~pisa social: https://social.kernel.org/ppisa projects: https://www.openhub.net/accounts/ppisa CAN related:http://canbus.pages.fel.cvut.cz/ RISC-V education: https://comparch.edu.cvut.cz/ Open Technologies Research Education and Exchange Services https://gitlab.fel.cvut.cz/otrees/org/-/wikis/home