[mvebu]: preliminary support for the WRT1900AC (work in progress)
[openwrt/svn-archive/archive.git] / target / linux / mvebu / patches-3.14 / 010-pxa3xx_nand_print_ECC_strength.patch
1 From e634ce51baa52c131e4a35c01bba9e596a0eb86d Mon Sep 17 00:00:00 2001
2 From: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
3 Date: Thu, 27 Feb 2014 14:13:26 -0300
4 Subject: mtd: nand: pxa3xx: Print actual ECC strength in error message
5
6 The actual ECC strength used to select the ECC scheme is 'ecc_strength'.
7 Use it in the error message.
8
9 Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
10 Signed-off-by: Brian Norris <computersforpeace@gmail.com>
11
12 --- a/drivers/mtd/nand/pxa3xx_nand.c
13 +++ b/drivers/mtd/nand/pxa3xx_nand.c
14 @@ -1531,7 +1531,7 @@ KEEP_CONFIG:
15 if (!ret) {
16 dev_err(&info->pdev->dev,
17 "ECC strength %d at page size %d is not supported\n",
18 - chip->ecc_strength_ds, mtd->writesize);
19 + ecc_strength, mtd->writesize);
20 return -ENODEV;
21 }
22