Rework spi_write function
Rework spi_write function

Improve spi write to require no dummy on success, always read entire
packet on duplex read, improve accuracy of NACK detection, smaller
readability/efficiency changes

Cascoda/ca8210-linux