From: Felipe Balbi Date: Tue, 23 Jul 2013 17:30:23 +0300 Subject: [U-Boot] [PATCHv2 5/8] drivers: mtd: spi: Modify read/write command for sfl256s flash. In-Reply-To: <51EE91CA.6070709@ti.com> References: <1374569979-28660-1-git-send-email-sourav.poddar@ti.com> <1374569979-28660-6-git-send-email-sourav.poddar@ti.com> <51EE91CA.6070709@ti.com> Message-ID: <20130723143023.GB7022@radagast> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, On Tue, Jul 23, 2013 at 07:53:06PM +0530, Sourav Poddar wrote: > >@@ -311,7 +341,7 @@ int spi_flash_cmd_read_fast(struct spi_flash *flash, u32 offset, > > debug("SF: read failed\n"); > > break; > > } > >- > >+#endif > > offset += read_len; > > len -= read_len; > > data += read_len; > Elaborating a bit more on this, > There is a constrain on our hardware, which goes like this.. > > As soon as the words transfered is 4096 bytes, the CS gets deasserted > automatically. constraint is 4096 *words*. If you're using anything other than 8-bits per word, your statement doesn't make sense. -- balbi -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: