I used the py-spidev library in AT91SAM9260 board. I got the error IOError: [Error 92]: Protocol not available during SPI transfer. The problem was actually caused due to the Atmel SPI driver not supporting per transfer setting of speed and _bits_perword. So this quick fix in _spidevmodule.c solved the problem for me. I set the following variables in the xfer function to zero.
+ xfer.speed_hz = 0;
+ xfer.bits_per_word = 0;
Is there a better fix for this problem? I would like to contribute a proper patch for this issue. Thank you.
I used the py-spidev library in AT91SAM9260 board. I got the error IOError: [Error 92]: Protocol not available during SPI transfer. The problem was actually caused due to the Atmel SPI driver not supporting per transfer setting of speed and _bits_perword. So this quick fix in _spidevmodule.c solved the problem for me. I set the following variables in the xfer function to zero.
Is there a better fix for this problem? I would like to contribute a proper patch for this issue. Thank you.