spi: conditional checking of mode and transfer bits.