SPI: more fixes including DEBUG info