From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mo6-p05-ob.smtp.rzone.de ([2a01:238:20a:202:5305::4]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WiMGP-0001Nx-OJ for linux-mtd@lists.infradead.org; Thu, 08 May 2014 11:13:22 +0000 Message-ID: <536B66D7.3000007@denx.de> Date: Thu, 08 May 2014 13:13:27 +0200 From: Stefan Roese MIME-Version: 1.0 To: Pekon Gupta , Brian Norris , Artem Bityutskiy Subject: Re: [PATCH v2] mtd: nand: Fix problem with NAND_CMD_RNDOUT (05h-E0h) References: <1399372120-24089-1-git-send-email-pekon@ti.com> In-Reply-To: <1399372120-24089-1-git-send-email-pekon@ti.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Steven Kipisz , Marek Belisko , linux-mtd , Bacem Daassi , Samuel Egli List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 06.05.2014 12:28, Pekon Gupta wrote: > From: Bacem Daassi > > Though the NAND_CMD_READ "Page Read" command expects the full address footprint > (2bytes for column address + 3bytes for row address). > But once the page is loaded into the read buffer, NAND_CMD_RNDOUT (05h-E0h) also > called "Random Data Output" command expects to see only the column address that > should be addressed within the already loaded page present in read buffers. > Only 2 address cycles with ALE active should be provided between the 05h and E0h > So expected sequence for NAND_CMD_RNDOUT is > <05h> > > Though most NAND Devices mentioned above tend to work even if extra cycles of > page-address is issued between <05h> .... command. But some Spansion and > Hynix devices break on this non-compliance. > The same issue has been reported by Bacem Daassi > http://e2e.ti.com/support/arm/sitara_arm/f/791/t/259699.aspx > > This patch fixes nand_command for all vendors devices as datasheet of all > devices expect same sequence. > > +--------+------------------------+--------------------------------------------- > |Vendor | Datasheet/Part# | Reference > +--------+------------------------+--------------------------------------------- > |Spansion| S34ML{01|02|04}G2 | Figure 6.12 Random Data Output In a Page > |Micron | MT29F{16|32|64|128}G08A| Figure 47: CHANGE READ COLUMN (05h-E0h) Operation > |Macronix| MX30LF1G08AA | Figure 10. AC Waveforms for Random Data Output > |Toshiba | TC58NVG1S3ETAI0 | Figure Column Address Change in Read Cycle Timing Diagram (2/2) > +--------+------------------------+--------------------------------------------- > > Reported-by: Bacem Daassi > Reported-by: Marek Belisko > Reported-by: Steven Kipisz > Signed-off-by: Pekon Gupta Looks good, so: Reviewed-by: Stefan Roese Thanks, Stefan