mtd: nand: remove meaningless delay from nand_unlock
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Mon Nov 7 11:59:03 EST 2011
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=d3f2ed520b51f06d4f3c8c96bd4ba6e7e57643a3
Commit: d3f2ed520b51f06d4f3c8c96bd4ba6e7e57643a3
Parent: 1754aab9bb869c173aa03b57587256827250e488
Author: Jiri Pinkava <jiri.pinkava at vscht.cz>
AuthorDate: Wed Jun 1 15:56:40 2011 +0200
Committer: Artem Bityutskiy <artem.bityutskiy at intel.com>
CommitDate: Sun Sep 11 15:01:57 2011 +0300
mtd: nand: remove meaningless delay from nand_unlock
This delay is meaningless. If delay is needed it is device specific
and must be reimplemented by specific driver, otherwise no delay is
needed.
Signed-off-by: Jiri Pinkava <jiri.pinkava at vscht.cz>
Acked-by: Vimal Singh <vimal.newwork at gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
---
drivers/mtd/nand/nand_base.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index 422e787..e57ea83 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -915,7 +915,6 @@ static int __nand_unlock(struct mtd_info *mtd, loff_t ofs,
/* Call wait ready function */
status = chip->waitfunc(mtd, chip);
- udelay(1000);
/* See if device thinks it succeeded */
if (status & 0x01) {
DEBUG(MTD_DEBUG_LEVEL0, "%s: Error status = 0x%08x\n",
@@ -1024,7 +1023,6 @@ int nand_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len)
/* Call wait ready function */
status = chip->waitfunc(mtd, chip);
- udelay(1000);
/* See if device thinks it succeeded */
if (status & 0x01) {
DEBUG(MTD_DEBUG_LEVEL0, "%s: Error status = 0x%08x\n",
More information about the linux-mtd-cvs
mailing list