summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAbhishek Sahu <absahu@codeaurora.org>2018-06-20 10:27:31 +0300
committerMiquel Raynal <miquel.raynal@bootlin.com>2018-07-18 10:24:06 +0300
commit320bdb5fb9c4a6b67ceadab2d7ed74c21c957561 (patch)
tree602ba2d3eade64b6f7f164c1b540b539556fe225 /drivers
parentc168ac273ce34b8fb181b230544c4eac80f55b9f (diff)
downloadlinux-320bdb5fb9c4a6b67ceadab2d7ed74c21c957561.tar.xz
mtd: rawnand: qcom: remove dt property nand-ecc-step-size
QCOM NAND controller supports only one step size (512) so nand-ecc-step-size DT property is redundant. This property can be removed and ecc step size can be assigned with 512 value. Signed-off-by: Abhishek Sahu <absahu@codeaurora.org> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mtd/nand/raw/qcom_nandc.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/drivers/mtd/nand/raw/qcom_nandc.c b/drivers/mtd/nand/raw/qcom_nandc.c
index 6a5519f0ff25..bf80a61dd941 100644
--- a/drivers/mtd/nand/raw/qcom_nandc.c
+++ b/drivers/mtd/nand/raw/qcom_nandc.c
@@ -2325,15 +2325,8 @@ static int qcom_nand_host_setup(struct qcom_nand_host *host)
bool wide_bus;
int ecc_mode = 1;
- /*
- * the controller requires each step consists of 512 bytes of data.
- * bail out if DT has populated a wrong step size.
- */
- if (ecc->size != NANDC_STEP_SIZE) {
- dev_err(nandc->dev, "invalid ecc size\n");
- return -EINVAL;
- }
-
+ /* controller only supports 512 bytes data steps */
+ ecc->size = NANDC_STEP_SIZE;
wide_bus = chip->options & NAND_BUSWIDTH_16 ? true : false;
if (ecc->strength >= 8) {