diff options
author | Huang Shijie <b32955@freescale.com> | 2013-01-30 03:03:56 +0100 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2013-02-04 08:36:39 +0100 |
commit | 6d2559f8bc297597f8058ee75bdb8060edd5214d (patch) | |
tree | db9bc5312953e6a72e79289f90099600639f4441 /drivers/mtd/nand/mxc_nand.c | |
parent | mtd: cfi_cmdset_0002: Support Persistent Protection Bits (PPB) locking (diff) | |
download | linux-6d2559f8bc297597f8058ee75bdb8060edd5214d.tar.xz linux-6d2559f8bc297597f8058ee75bdb8060edd5214d.zip |
mtd: fix the wrong timeo for panic_nand_wait()
The panic_nand_wait() expects the timeo in ms and not in jiffies.
But in nand_wait(), the timeo for panic_nand_wait() is assigned with
wrong value(jiffies + some delay). The timeo should be set like the
panic_nand_write() does.
This patch passes timeo in ms to panic_nand_wait().
And this patch also passes timeo in jiffies(converted by msecs_to_jiffies)
to time_before() which makes the code more readable.
Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'drivers/mtd/nand/mxc_nand.c')
0 files changed, 0 insertions, 0 deletions