]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: nand: Check if NAND is locked tight before lock cmds
authorJoe Hershberger <joe.hershberger@ni.com>
Fri, 8 Feb 2013 09:27:19 +0000 (09:27 +0000)
committerScott Wood <scottwood@freescale.com>
Sat, 23 Feb 2013 01:06:34 +0000 (19:06 -0600)
commitfcecb4a52c780d5fa7e8781db7ef5440aff0b48c
tree7ee6c4291d201a85e48fd473cec8b251997ff39d
parentced199dc858d57e807d3ec2a511c4bd9a4bd8765
mtd: nand: Check if NAND is locked tight before lock cmds

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@ni.com>
drivers/mtd/nand/nand_util.c