projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbe9ea2
)
mtd: nand: sunxi: Return on set_feature only when not ENOTSUPP
author
Mylène Josserand
<
[email protected]
>
Fri, 13 Jul 2018 16:10:24 +0000
(18:10 +0200)
committer
Jagan Teki
<
[email protected]
>
Tue, 31 Jul 2018 15:15:50 +0000
(20:45 +0530)
Return the error code of the set_features function only if
the error code is not ENOTSUPP. Otherwise, if this function
is not supported, it will return and fail to initialize the
NAND.
Signed-off-by: Mylène Josserand <
[email protected]
>
Acked-by: Jagan Teki <
[email protected]
>
drivers/mtd/nand/sunxi_nand.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/sunxi_nand.c
b/drivers/mtd/nand/sunxi_nand.c
index bb87aca6987ffbf3345e51912dc2d43efff1d393..3ccb168d1371584dd7a99affac105731ece471ba 100644
(file)
--- a/
drivers/mtd/nand/sunxi_nand.c
+++ b/
drivers/mtd/nand/sunxi_nand.c
@@
-1369,7
+1369,7
@@
static int sunxi_nand_chip_init_timings(struct sunxi_nand_chip *chip)
ONFI_FEATURE_ADDR_TIMING_MODE,
feature);
chip->nand.select_chip(mtd, -1);
- if (ret)
+ if (ret
&& ret != -ENOTSUPP
)
return ret;
}
}