mtd: nand: fix mention to CONFIG_MTD_NAND_ECC_BCH
Subsystems (2)
PATCH 1/1 mtd: nand: fix mention to CONFIG_MTD_NAND_ECC_BCH
Mention to CONFIG_MTD_ECC_BCH in the warning message can be confusing as this doesn't match the exact name of the configuration option.
This warning showed up once to me when I was starting to set up BCH. After checking my .config file, it took a moment before realizing it is CONFIG_MTD_NAND_ECC_BCH instead of CONFIG_MTD_ECC_BCH.
--- drivers/mtd/nand/nand_base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/nand/nand_base.c +1 -1
@@ -3825,7 +3825,7 @@ int nand_scan_tail(struct mtd_info *mtd)case NAND_ECC_SOFT_BCH :if (!mtd_nand_has_bch ()) { -pr_warn ("CONFIG_MTD_ECC_BCH not enabled\n" ); +pr_warn ("CONFIG_MTD_NAND_ECC_BCH not enabled\n" );BUG (); } ecc->calculate = nand_bch_calculate_ecc;
Signature · 1 line
1.9.0
Quoted 16 lines
Mention to
CONFIG_MTD_ECC_BCHin the warning message can be confusing as this doesn't match the exact name of the configuration option.
This warning showed up once to me when I was starting to set up BCH. After checking my .config file, it took a moment before realizing it isCONFIG_MTD_NAND_ECC_BCHinstead ofCONFIG_MTD_ECC_BCH.Signed-off-by Erico Nunes <[email protected]>--- drivers/mtd/nand/nand_base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/mtd/nand/nand_base.c +0
-0
drivers/mtd/nand/nand_base.c int nand_scan_tail(struct mtd_info *mtd) · line 3831
Quoted 8 lines
drivers/mtd/nand/nand_base.c +1
-1@@ -3825,7 +3825,7 @@ int nand_scan_tail(struct mtd_info *mtd)case NAND_ECC_SOFT_BCH :if (!mtd_nand_has_bch ()) { -pr_warn ("CONFIG_MTD_ECC_BCH not enabled\n" ); +pr_warn ("CONFIG_MTD_NAND_ECC_BCH not enabled\n" );BUG (); } ecc->calculate = nand_bch_calculate_ecc;
Not sure if CONFIG options should be printed in the log at all, but the correct option is better than an incorrect one. Seeing as CONFIG_MTD_ECC_BCH doesn't actually exist:
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
2014-03-11 1:31 GMT-03:00 Erico Nunes <[email protected]>:
Quoted 25 lines
Mention to
CONFIG_MTD_ECC_BCHin the warning message can be confusing as this doesn't match the exact name of the configuration option.
This warning showed up once to me when I was starting to set up BCH. After checking my .config file, it took a moment before realizing it isCONFIG_MTD_NAND_ECC_BCHinstead ofCONFIG_MTD_ECC_BCH.Signed-off-by Erico Nunes <[email protected]>--- drivers/mtd/nand/nand_base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/mtd/nand/nand_base.c +1
-2@@ -3825,7 +3825,7 @@ int nand_scan_tail(struct mtd_info *mtd)case NAND_ECC_SOFT_BCH :if (!mtd_nand_has_bch ()) { -pr_warn ("CONFIG_MTD_ECC_BCH not enabled\n" ); +pr_warn ("CONFIG_MTD_NAND_ECC_BCH not enabled\n" );BUG (); } ecc->calculate = nand_bch_calculate_ecc; --
Quoted 2 lines
1.9.0
Ping.
Brian Norris
AppliedQuoted 7 lines · Erico Nunes
Mention to
CONFIG_MTD_ECC_BCHin the warning message can be confusing as this doesn't match the exact name of the configuration option.
This warning showed up once to me when I was starting to set up BCH. After checking my .config file, it took a moment before realizing it isCONFIG_MTD_NAND_ECC_BCHinstead ofCONFIG_MTD_ECC_BCH.Signed-off-by Erico Nunes <[email protected]>
Pushed to l2-mtd.git. Thanks!
Brian