[PATCH] mtd: nand: provide helpful error message when trying disabled ecc mode

Sascha Hauer sha at pengutronix.de
Fri Jul 9 13:56:34 PDT 2021


On Thu, Jul 08, 2021 at 01:26:29PM +0200, Enrico Jorns wrote:
> We know the reason to return -ENOSYS, thus let the user know.
> This will give him a much better hint why his NAND is not working than
> only getting the generic
> 
> | probe failed: Function not implemented
> 
> Signed-off-by: Enrico Jorns <ejo at pengutronix.de>
> ---
>  drivers/mtd/nand/nand_base.c | 1 +
>  1 file changed, 1 insertion(+)

Applied, thanks

Sascha


-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list