commit | fcecb4a52c780d5fa7e8781db7ef5440aff0b48c | [log] [tgz] |
---|---|---|
author | Joe Hershberger <joe.hershberger@ni.com> | Fri Feb 08 09:27:19 2013 +0000 |
committer | Scott Wood <scottwood@freescale.com> | Fri Feb 22 19:06:34 2013 -0600 |
tree | 7ee6c4291d201a85e48fd473cec8b251997ff39d | |
parent | ced199dc858d57e807d3ec2a511c4bd9a4bd8765 [diff] |
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>