Re: [U-Boot] [PATCH v2 13/21] spi: Extend the core to ease integration of SPI memory controllers

2018-07-12 Thread Miquel Raynal
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, > > +

Re: [U-Boot] [PATCH v2 13/21] spi: Extend the core to ease integration of SPI memory controllers

2018-07-12 Thread Stefan Roese
Hi Miquel, just a quick comment below (something I stumbled upon while testing). On 11.07.2018 17:25, Miquel Raynal wrote: > From: Boris Brezillon > > Some controllers are exposing high-level interfaces to access various > kind of SPI memories. Unfortunately they do not fit in the current > spi

[U-Boot] [PATCH v2 13/21] spi: Extend the core to ease integration of SPI memory controllers

2018-07-11 Thread Miquel Raynal
From: Boris Brezillon Some controllers are exposing high-level interfaces to access various kind of SPI memories. Unfortunately they do not fit in the current spi_controller model and usually have drivers placed in drivers/mtd/spi-nor which are only supporting SPI NORs and not SPI memories in gen