From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Mon, 14 Sep 2015 10:17:20 -0500 Subject: [U-Boot] [PATCH] mtd: nand: fsmc: Fixes and cleanup for fsmc_nand_switch_ecc() In-Reply-To: <1442213267-9343-1-git-send-email-sr@denx.de> References: <1442213267-9343-1-git-send-email-sr@denx.de> Message-ID: <1442243840.2909.65.camel@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 Mon, 2015-09-14 at 08:47 +0200, Stefan Roese wrote: > This patch addresses some comments raised by Scott in the last versions. > Here the changes in detail: > > - Removed __maybe_unused as its not needed > - Added check for strength == 4 and error out for the unsupported > ECC strength values > - Don't set .caclulate, .correct, and .bytes for NAND_ECC_SOFT_BCH as this > will be done in nand_scan_tail() > - Set .caclulate back to fsmc_read_hwecc() in the HW case > - Added comment that this function will only be called on SPEAr platforms, > not supporting the BCH8 HW ECC (FSMC_VER8) > > Signed-off-by: Stefan Roese > Cc: Scott Wood > Cc: Tom Rini > --- > drivers/mtd/nand/fsmc_nand.c | 21 +++++++++++++++------ > 1 file changed, 15 insertions(+), 6 deletions(-) Acked-by: Scott Wood -Scott