[PATCH v2 1/3] spi: implemented driver for Cirrus EP93xx SPI controller
Martin Guy
martinwguy at gmail.com
Fri Apr 9 14:08:16 EDT 2010
Oops, I mean
- unsigned n; /* Number of bytes to send to the TX FIFO */
+ unsigned n; /* Number of words to send to the TX FIFO */
and
- n = t->len - espi->tx; /* Total number of bytes waiting to be
- * sent to the TX FIFO for this transfer */
+ /* Number of words still to be sent to the TX FIFO */
+ n = (t->len - espi->tx) / (bits_per_word(espi) > 8 ? 2 : 1);
sorry about that.
M
More information about the linux-arm-kernel
mailing list