From: Vignesh R Date: Tue, 15 Nov 2016 10:33:05 +0530 Subject: [U-Boot] [PATCH] spi: cadence_qspi_apb: Use 32 bit indirect write transaction when possible In-Reply-To: References: <20161110051857.6547-1-vigneshr@ti.com> Message-ID: <4b4f0da7-93ea-6c94-1469-20788d2dcfeb@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sunday 13 November 2016 03:13 AM, Marek Vasut wrote: > On 11/10/2016 06:18 AM, Vignesh R wrote: >> According to Section 11.15.4.9.2 Indirect Write Controller of K2G SoC >> TRM SPRUHY8D[1], the external master is only permitted to issue 32-bit >> data interface writes until the last word of an indirect transfer >> otherwise indirect writes is known to fails sometimes. So, make sure >> that QSPI indirect writes are 32 bit sized except for the last write. >> >> [1]www.ti.com/lit/ug/spruhy8d/spruhy8d.pdf >> >> Signed-off-by: Vignesh R > > I would if it wouldn't be better to use bounce buffer for the txbuf . > See common/bouncebuf.c > Yeah, I guess that will also help in implementing DMA support. How about having a generic implementation of bounce buffer support in spi_flash_cmd_{read/write}_ops? -- Regards Vignesh