[U-Boot] [PATCH 1/4 v2] spi: spi-mem: Use 2 SPI messages instead of a single full-duplex one

2018-08-07 Thread Stefan Roese
Some SPI controller do not support full-duplex SPI transfers. This patch changes the SPI transfer into 2 separate transfers - or 1, if no data is to transmitted. With this change, no buffers need to be allocated anymore. We use the TX and RX buffers that are passed to spi_mem_exec_op() directly.

Re: [U-Boot] [PATCH 1/4 v2] spi: spi-mem: Use 2 SPI messages instead of a single full-duplex one

2018-08-07 Thread Boris Brezillon
On Tue, 7 Aug 2018 14:16:52 +0200 Stefan Roese wrote: > Some SPI controller do not support full-duplex SPI transfers. This patch > changes the SPI transfer into 2 separate transfers - or 1, if no data is > to transmitted. > > With this change, no buffers need to be allocated anymore. We use the

Re: [U-Boot] [PATCH 1/4 v2] spi: spi-mem: Use 2 SPI messages instead of a single full-duplex one

2018-08-08 Thread Miquel Raynal
Hi Stefan, Jagan, Boris Brezillon wrote on Tue, 7 Aug 2018 15:28:02 +0200: > On Tue, 7 Aug 2018 14:16:52 +0200 > Stefan Roese wrote: > > > Some SPI controller do not support full-duplex SPI transfers. This patch > > changes the SPI transfer into 2 separate transfers - or 1, if no data is > >

Re: [U-Boot] [PATCH 1/4 v2] spi: spi-mem: Use 2 SPI messages instead of a single full-duplex one

2018-08-08 Thread Miquel Raynal
Hi Stefan, Minor typo if you decide to send a v3. Boris Brezillon wrote on Tue, 7 Aug 2018 15:28:02 +0200: > On Tue, 7 Aug 2018 14:16:52 +0200 > Stefan Roese wrote: > > > Some SPI controller do not support full-duplex SPI transfers. This patch > > changes the SPI transfer into 2 separate tra

Re: [U-Boot] [PATCH 1/4 v2] spi: spi-mem: Use 2 SPI messages instead of a single full-duplex one

2018-08-08 Thread Stefan Roese
Hi Miquel, On 08.08.2018 10:56, Miquel Raynal wrote: Boris Brezillon wrote on Tue, 7 Aug 2018 15:28:02 +0200: On Tue, 7 Aug 2018 14:16:52 +0200 Stefan Roese wrote: Some SPI controller do not support full-duplex SPI transfers. This patch changes the SPI transfer into 2 separate transfers -

Re: [U-Boot] [PATCH 1/4 v2] spi: spi-mem: Use 2 SPI messages instead of a single full-duplex one

2018-08-08 Thread Stefan Roese
Hi Miquel, On 08.08.2018 11:58, Miquel Raynal wrote: Hi Stefan, Minor typo if you decide to send a v3. Boris Brezillon wrote on Tue, 7 Aug 2018 15:28:02 +0200: On Tue, 7 Aug 2018 14:16:52 +0200 Stefan Roese wrote: Some SPI controller do not support full-duplex SPI transfers. This patch

Re: [U-Boot] [PATCH 1/4 v2] spi: spi-mem: Use 2 SPI messages instead of a single full-duplex one

2018-08-09 Thread Miquel Raynal
Hi Stefan, Stefan Roese wrote on Thu, 9 Aug 2018 07:24:14 +0200: > Hi Miquel, > > On 08.08.2018 10:56, Miquel Raynal wrote: > > Boris Brezillon wrote on Tue, 7 Aug 2018 > > 15:28:02 +0200: > > >> On Tue, 7 Aug 2018 14:16:52 +0200 > >> Stefan Roese wrote: > >> > >>> Some SPI controller

Re: [U-Boot] [PATCH 1/4 v2] spi: spi-mem: Use 2 SPI messages instead of a single full-duplex one

2018-08-09 Thread Stefan Roese
Hi Miquel, On 09.08.2018 10:13, Miquel Raynal wrote: Stefan Roese wrote on Thu, 9 Aug 2018 07:24:14 +0200: Hi Miquel, On 08.08.2018 10:56, Miquel Raynal wrote: Boris Brezillon wrote on Tue, 7 Aug 2018 15:28:02 +0200: On Tue, 7 Aug 2018 14:16:52 +0200 Stefan Roese wrote: Some SPI co

Re: [U-Boot] [PATCH 1/4 v2] spi: spi-mem: Use 2 SPI messages instead of a single full-duplex one

2018-08-09 Thread Miquel Raynal
Hi Stefan, Stefan Roese wrote on Thu, 9 Aug 2018 11:10:15 +0200: > Hi Miquel, > > On 09.08.2018 10:13, Miquel Raynal wrote: > > Stefan Roese wrote on Thu, 9 Aug 2018 07:24:14 +0200: > > >> Hi Miquel, > >> > >> On 08.08.2018 10:56, Miquel Raynal wrote: > >>> Boris Brezillon wrote on Tue,

Re: [U-Boot] [PATCH 1/4 v2] spi: spi-mem: Use 2 SPI messages instead of a single full-duplex one

2018-08-09 Thread Stefan Roese
Hi Miquel, On 09.08.2018 16:50, Miquel Raynal wrote: Stefan Roese wrote on Thu, 9 Aug 2018 11:10:15 +0200: Hi Miquel, On 09.08.2018 10:13, Miquel Raynal wrote: Stefan Roese wrote on Thu, 9 Aug 2018 07:24:14 +0200: Hi Miquel, On 08.08.2018 10:56, Miquel Raynal wrote: Boris Brezillon wr