diff options
| author | Boris Brezillon <boris.brezillon@free-electrons.com> | 2017-07-31 10:31:27 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-16 13:46:50 -0700 |
| commit | a0e1953e0310ad79c9aa6ff019b5425d342566aa (patch) | |
| tree | dbe6cf3d0bf92bbe9d24369a5fc18c85bc11e38f /include | |
| parent | 867c07788e9764cee324bbe1193ba93febe08e3c (diff) | |
| download | linux-a0e1953e0310ad79c9aa6ff019b5425d342566aa.tar.gz linux-a0e1953e0310ad79c9aa6ff019b5425d342566aa.tar.bz2 linux-a0e1953e0310ad79c9aa6ff019b5425d342566aa.zip | |
mtd: nand: Declare tBERS, tR and tPROG as u64 to avoid integer overflow
commit 6d29231000bbe0fb9e4893a9c68151ffdd3b5469 upstream.
All timings in nand_sdr_timings are expressed in picoseconds but some
of them may not fit in an u32.
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Fixes: 204e7ecd47e2 ("mtd: nand: Add a few more timings to nand_sdr_timings")
Reported-by: Alexander Dahl <ada@thorsis.com>
Reviewed-by: Alexander Dahl <ada@thorsis.com>
Tested-by: Alexander Dahl <ada@thorsis.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/mtd/nand.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index 8f67b1581683..a3ebb64b1cf4 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h @@ -638,10 +638,10 @@ struct nand_buffers { * @tWW_min: WP# transition to WE# low */ struct nand_sdr_timings { - u32 tBERS_max; + u64 tBERS_max; u32 tCCS_min; - u32 tPROG_max; - u32 tR_max; + u64 tPROG_max; + u64 tR_max; u32 tALH_min; u32 tADL_min; u32 tALS_min; |
