|
@@ -1550,7 +1550,7 @@ static int atmel_of_init_port(struct atmel_nand_host *host,
|
|
if ((val != 2) && (val != 4) && (val != 8) && (val != 12) &&
|
|
if ((val != 2) && (val != 4) && (val != 8) && (val != 12) &&
|
|
(val != 24)) {
|
|
(val != 24)) {
|
|
dev_err(host->dev,
|
|
dev_err(host->dev,
|
|
- "Unsupported PMECC correction capability: %d; should be 2, 4, 8, 12 or 24\n",
|
|
|
|
|
|
+ "Required ECC strength not supported: %u\n",
|
|
val);
|
|
val);
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
}
|
|
}
|
|
@@ -1560,7 +1560,7 @@ static int atmel_of_init_port(struct atmel_nand_host *host,
|
|
if (of_property_read_u32(np, "atmel,pmecc-sector-size", &val) == 0) {
|
|
if (of_property_read_u32(np, "atmel,pmecc-sector-size", &val) == 0) {
|
|
if ((val != 512) && (val != 1024)) {
|
|
if ((val != 512) && (val != 1024)) {
|
|
dev_err(host->dev,
|
|
dev_err(host->dev,
|
|
- "Unsupported PMECC sector size: %d; should be 512 or 1024 bytes\n",
|
|
|
|
|
|
+ "Required ECC sector size not supported: %u\n",
|
|
val);
|
|
val);
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
}
|
|
}
|