The RX path maintained the number of received bytes incorrectly causing
the transmission to be aborted.
Signed-off-by: Imre Deak <imre.deak@nokia.com>
Signed-off-by: Juha Yrjölä <juha.yrjola@nokia.com>
*buf++ = (u8) val;
if (bytes == 2)
*buf++ = val >> 8;
*buf++ = (u8) val;
if (bytes == 2)
*buf++ = val >> 8;
#ifdef VERBOSE
pr_debug("%s: read-%d =%04x\n",
spi->dev.bus_id, bits, val);
#ifdef VERBOSE
pr_debug("%s: read-%d =%04x\n",
spi->dev.bus_id, bits, val);