]> git.baikalelectronics.ru Git - kernel.git/commit
[MTD] [NAND] pxa3xx: convert from ns to clock ticks more accurately
authorMatt Reimer <mreimer@vpop.net>
Tue, 18 Nov 2008 18:54:32 +0000 (10:54 -0800)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 5 Jan 2009 12:03:20 +0000 (13:03 +0100)
commit16763b6eee717797e176da2bae87aa7927076e95
tree0b810dda67150d67279dc854cf98b10ec2c0fc85
parentd7ce24d6592ec73bacbcecdfcccddc608f10ad35
[MTD] [NAND] pxa3xx: convert from ns to clock ticks more accurately

The various fields in NDTR{01} are in units of clock ticks minus one, but the
ns2cycle macro mistakenly adds one, inflating the number of clock ticks and
making it impossible to set any of these fields to zero.

Signed-off-by: Matt Reimer <mreimer@vpop.net>
Signed-off-by: Eric Miao <eric.miao@marvell.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/pxa3xx_nand.c