Two MCP2515-based CAN modules connected via SPI
Issue Description:
I have two MCP2515 CAN controllers connected to my Raspberry Pi via SPI (spi0.0 for can1 and spi0.1 for can0). The modules initialize successfully, but I can only bring one interface up at a time.
When I try to enable both CAN interfaces:
sudo ip link set can0 up type can bitrate 500000
sudo ip link set can1 up type can bitrate 500000
can0 successfully comes up, but when I attempt to bring can1 up, the Raspberry Pi freezes or fails to enable it.
If I start with can1, it works, but then trying can0 results in
Device or resource busy
Checking dmesg | grep can shows both modules initialized:
mcp251x spi0.1 can0: MCP2515 successfully initialized.
mcp251x spi0.0 can1: MCP2515 successfully initialized.