From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Wed, 4 Jan 2012 15:52:08 -0600 Subject: [U-Boot] [PATCH 1/2] mtd/nand:Fix wrong address read in is_blank() In-Reply-To: <1325049770-7327-1-git-send-email-prabhakar@freescale.com> References: <1325049770-7327-1-git-send-email-prabhakar@freescale.com> Message-ID: <4F04CA08.9060903@freescale.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 12/27/2011 11:22 PM, Prabhakar Kushwaha wrote: > IFC NAND Machine calculates ECC on 512byte sector. Same is taken care in > fsl_ifc_run_command() while ECC status verification. Here buffer number is > calculated assuming 512byte sector and same is passed to is_blank. > However in is_blank() buffer address is calculated using mdt->writesize which is > wrong. It should be calculated on basis of ecc sector size. > > Also, in fsl_ifc_run_command() bufferpage is calculated on the basis of ecc sector > size instead of hard coded value. > > Signed-off-by: Poonam Aggrwal > Signed-off-by: Prabhakar Kushwaha > --- Same changes requested as in http://patchwork.ozlabs.org/patch/133500/ Also, please mention IFC in the subject. -Scott