drivers: fixes to the SPI low-level interface