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>
This commit is contained in:
parent
c168ac273c
commit
320bdb5fb9
@ -2325,15 +2325,8 @@ static int qcom_nand_host_setup(struct qcom_nand_host *host)
|
|||||||
bool wide_bus;
|
bool wide_bus;
|
||||||
int ecc_mode = 1;
|
int ecc_mode = 1;
|
||||||
|
|
||||||
/*
|
/* controller only supports 512 bytes data steps */
|
||||||
* the controller requires each step consists of 512 bytes of data.
|
ecc->size = NANDC_STEP_SIZE;
|
||||||
* 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;
|
|
||||||
}
|
|
||||||
|
|
||||||
wide_bus = chip->options & NAND_BUSWIDTH_16 ? true : false;
|
wide_bus = chip->options & NAND_BUSWIDTH_16 ? true : false;
|
||||||
|
|
||||||
if (ecc->strength >= 8) {
|
if (ecc->strength >= 8) {
|
||||||
|
Loading…
Reference in New Issue
Block a user