]> asedeno.scripts.mit.edu Git - linux.git/commit
mtd: nand: qcom: fix config error for BCH
authorAbhishek Sahu <absahu@codeaurora.org>
Thu, 3 Aug 2017 15:56:39 +0000 (17:56 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Wed, 23 Aug 2017 14:49:14 +0000 (16:49 +0200)
commit10777de570016471fd929869c7830a7772893e39
tree0b494a85af1cb8e25880339a765b605d2a70d85c
parentf7b8103ec33e53b73b60551ca7bb8f5350d06d6d
mtd: nand: qcom: fix config error for BCH

The configuration for BCH is not correct in the current driver.
The ECC_CFG_ECC_DISABLE bit defines whether to enable or disable the
BCH ECC in which

0x1 : BCH_DISABLED
0x0 : BCH_ENABLED

But currently host->bch_enabled is being assigned to BCH_DISABLED.

Fixes: c76b78d8ec05a ("mtd: nand: Qualcomm NAND controller driver")
Cc: stable@vger.kernel.org
Signed-off-by: Abhishek Sahu <absahu@codeaurora.org>
Reviewed-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/qcom_nandc.c