This cannot work. I do not understand what you are trying to achieve with this.
Matthias On 01/14/2012 07:54 PM, Fabio Estevam wrote: > On Sat, Jan 14, 2012 at 4:53 PM, Fabio Estevam <feste...@gmail.com> wrote: > >> Actually I meant this: > > One more time ;-) > > --- a/drivers/spi/mxs_spi.c > +++ b/drivers/spi/mxs_spi.c > @@ -130,13 +130,10 @@ int spi_xfer(struct spi_slave *slave, unsigned int > bitlen, > const char *tx = dout; > char *rx = din; > > - if (bitlen == 0) > - return 0; > - > if (!rx && !tx) > return 0; > > - if (flags & SPI_XFER_BEGIN) > + if ((flags & SPI_XFER_BEGIN) && len) > mxs_spi_start_xfer(ssp_regs); > > while (len--) { > _______________________________________________ > U-Boot mailing list > U-Boot@lists.denx.de > http://lists.denx.de/mailman/listinfo/u-boot _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot