[U-Boot] [PATCH 0/2] NAND: sunxi: Return ENOTSUPP on onfi functions
Mylène Josserand
mylene.josserand at bootlin.com
Fri Jul 13 16:10:22 UTC 2018
Hello everyone,
This is a first version of this series that fix code for NAND chip that
does not have ONFI get/set features support.
Patch 01:
The current code returns an invalid error if it is not supported.
It should return ENOTSUPP instead.
Patch 02:
In sunxi_nand driver, we should return of sunxi_nand_chip_init_timings
function only when the ONFI is supported and we got a real error while
setting the timing. If the onfi_get/set_features is not supported, we
should continue the NAND intialization.
Let me kow what you think.
Thank you in advance,
Best regards,
Mylène Josserand (2):
mtd: nand: nand_base: Convert EINVAL into ENOTSUPP
mtd: nand: sunxi: Return on set_feature only when not ENOTSUPP
drivers/mtd/nand/nand_base.c | 4 ++--
drivers/mtd/nand/sunxi_nand.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
--
2.11.0
More information about the U-Boot
mailing list