Unfortunately the mcp2515 driver is lazy in that it expects to read and write zeroes to the all bits of the CANCTRL register below bit 5. You would probably want to create a shadow register to hold the lower bits so that they can be ORed in, and to be careful to mask them out when checking the REQOP value.
Statistics: Posted by PhilE — Mon Apr 15, 2024 11:06 am