From: =?UTF-8?q?Myl=C3=A8ne=20Josserand?= Date: Fri, 13 Jul 2018 18:10:22 +0200 Subject: [U-Boot] [PATCH 0/2] NAND: sunxi: Return ENOTSUPP on onfi functions Message-ID: <20180713161024.26384-1-mylene.josserand@bootlin.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: u-boot@lists.denx.de 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=C3=A8ne 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(-) --=20 2.11.0