commit | 8b177d4db972dff43ee70a44edda9cd6c76005de | [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 | abd3a3bf38191a36c98499e18433581c91434eae [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>