From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sourav Poddar Date: Tue, 23 Jul 2013 20:23:05 +0530 Subject: [U-Boot] [PATCHv2 5/8] drivers: mtd: spi: Modify read/write command for sfl256s flash. In-Reply-To: <20130723143023.GB7022@radagast> 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> <20130723143023.GB7022@radagast> Message-ID: <51EE98D1.5010708@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 Tuesday 23 July 2013 08:00 PM, Felipe Balbi wrote: > 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. > Yes, sorry. Its 4096 words.