Skip to content

NAND: sunxi: Return ENOTSUPP on onfi functions

Mylène Josserand u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mtd: nand: nand_base: Convert EINVAL into ENOTSUPPdrivers/mtd/nand/nand_base.c+2 -22 replies
2/2mtd: nand: sunxi: Return on set_feature only when not ENOTSUPPdrivers/mtd/nand/sunxi_nand.c+1 -11 reply

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchJagan Teki
1/2Acked--by
2/2Acked--by

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [U-Boot] [PATCH 0/2] NAND: sunxi: Return ENOTSUPP on onfi functions

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(-)
Signature · 1 line
2.11.0