Some bug fixes for SPI stack DMA slave protocol