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 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot