[U-Boot] mtd: nand: Check if NAND is locked tight before lock cmds

Scott Wood scottwood at freescale.com
Sat Feb 23 02:14:48 CET 2013


On Fri, Feb 08, 2013 at 09:27:19AM -0000, Joe Hershberger wrote:
> If the NAND is locked tight, commands such as lock and unlock will not
> work, but the NAND chip may not report an error.  Check the lock tight
> status before attempting such operations so that an error status can be
> reported if we know the operation will not succeed.
> 
> Signed-off-by: Joe Hershberger <joe.hershberger at ni.com>
> 
> ---
> drivers/mtd/nand/nand_util.c | 19 ++++++++++++++++++-
>  1 file changed, 18 insertions(+), 1 deletion(-)

Applied to u-boot-nand-flash

-Scott



More information about the U-Boot mailing list