[U-Boot] [PATCH v2 13/21] spi: Extend the core to ease integration of SPI memory controllers
Miquel Raynal
miquel.raynal at bootlin.com
Thu Jul 12 14:46:23 UTC 2018
Hi Stefan,
> > + memset(tx_buf + pos, 0xff, op->dummy.nbytes);
> > + pos += op->dummy.nbytes;
> > + }
> > +
> > + if (tx_data)
> > + memcpy(tx_buf + pos, op->data.buf.out, op->data.nbytes);
> > +
> > + ret = spi_xfer(slave, xfer_len * 8, tx_buf, rx_buf,
> > + SPI_XFER_BEGIN | SPI_XFER_END);
> > + spi_release_bus(slave);
> > +
> > + for (i = 0; i < pos; i++)
> > + debug("%02x ", tx_buf[i]);
> > + debug("| [%dB %s] ",
> > + tx_data || rx_data ? op->data.nbytes : 0,
> > + tx_data || rx_data ? (tx_data ? "out" : "in") : "-");
> > + for (; i < xfer_len; i++)
> > + debug("%02x ", rx_buf[i]);
>
> debug("%02x ", tx_data ? tx_buf[i] : rx_buf[i]);
>
> I won't have much more time today. Will get back to this in ~2 weeks.
Sure!
Debug line changed.
Thanks,
Miquèl
More information about the U-Boot
mailing list