Message ID | CAOMZO5CGYe8tJRN6fXXQxqrWtMj71_VkETLE+pTjgQZKsyoOrA@mail.gmail.com |
---|---|
State | Changes Requested |
Headers | show |
--- a/drivers/spi/mxs_spi.c +++ b/drivers/spi/mxs_spi.c @@ -136,7 +136,7 @@ int spi_xfer(struct spi_slave *slave, unsigned int bitlen, if (!rx && !tx) return 0; - if (flags & SPI_XFER_BEGIN) + if ((flags & SPI_XFER_BEGIN) && len) mxs_spi_start_xfer(ssp_regs); while (len--) {