From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gate.crashing.org ([63.228.1.57]) by bombadil.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1THDHR-0005YJ-BN for linux-mtd@lists.infradead.org; Thu, 27 Sep 2012 12:33:26 +0000 Subject: Re: [PATCH] driver/mtd:IFC NAND:Initialise internal SRAM before any write Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=us-ascii From: Kumar Gala In-Reply-To: <1347526489-20186-1-git-send-email-prabhakar@freescale.com> Date: Thu, 27 Sep 2012 07:33:17 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <35D2D92E-D6B7-46CB-A3F2-6DAE2134EA30@kernel.crashing.org> References: <1347526489-20186-1-git-send-email-prabhakar@freescale.com> To: Prabhakar Kushwaha Cc: scottwood@freescale.com, linuxppc-dev@lists.ozlabs.org, linux-mtd@lists.infradead.org, dedekind1@gmail.com List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Sep 13, 2012, at 3:54 AM, Prabhakar Kushwaha wrote: > IFC-1.1.0 uses 28nm techenology for SRAM. This tech has known = limitaion for > SRAM i.e. "byte select" is not supported. Hence Read Modify Write is > implemented in IFC for any "system side write" into sram buffer. = Reading an > uninitialized memory results in ECC Error from sram wrapper. >=20 > Hence we must initialize/prefill SRAM buffer by any data before = writing > anything in SRAM from system side. To initialize SRAM user can use = "READID" > NAND command with read bytes equal to SRAM size. It will be a one time > activity post boot. >=20 > Signed-off-by: Prabhakar Kushwaha > --- > Based upon git://git.infradead.org/linux-mtd.git branch master > The compilation of this patch depends upon following patch. > http://patchwork.ozlabs.org/patch/177893/ > This patch is currently applied on = git://git.kernel.org/pub/scm/linux/kernel/git/galak/powerpc.git=20 > branch next and status is "Awaiting Upstream" >=20 >=20 > drivers/mtd/nand/fsl_ifc_nand.c | 56 = ++++++++++++++++++++++++++++++++++++++- > 1 file changed, 55 insertions(+), 1 deletion(-) applied to next - k=