Skip to content

Commit 320bdb5

Browse files
Abhishek Sahumiquelraynal
authored andcommitted
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>
1 parent c168ac2 commit 320bdb5

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

drivers/mtd/nand/raw/qcom_nandc.c

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2325,15 +2325,8 @@ static int qcom_nand_host_setup(struct qcom_nand_host *host)
23252325
bool wide_bus;
23262326
int ecc_mode = 1;
23272327

2328-
/*
2329-
* the controller requires each step consists of 512 bytes of data.
2330-
* bail out if DT has populated a wrong step size.
2331-
*/
2332-
if (ecc->size != NANDC_STEP_SIZE) {
2333-
dev_err(nandc->dev, "invalid ecc size\n");
2334-
return -EINVAL;
2335-
}
2336-
2328+
/* controller only supports 512 bytes data steps */
2329+
ecc->size = NANDC_STEP_SIZE;
23372330
wide_bus = chip->options & NAND_BUSWIDTH_16 ? true : false;
23382331

23392332
if (ecc->strength >= 8) {

0 commit comments

Comments
 (0)