summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@free-electrons.com>2015-12-02 15:57:20 +0100
committerBoris Brezillon <boris.brezillon@free-electrons.com>2016-04-19 22:05:37 +0200
commit2d43457f79e48ee427666fdbfe9a53f35d3a1672 (patch)
tree5148f96a688dc32ed56a49eebf028c3873a554c8 /include/linux
parent2f9992e080b8892a10d189cbc846c06e6594ad0b (diff)
downloadcachepc-linux-2d43457f79e48ee427666fdbfe9a53f35d3a1672.tar.gz
cachepc-linux-2d43457f79e48ee427666fdbfe9a53f35d3a1672.zip
mtd: nand: sunxi: fix EDO mode selection
The ONFI spec says that EDO should be enabled if the host drives tRC less than 30ns, but the code just tests for the tRC_min value extracted from the timings exposed by the NAND chip not the timings actually configured in the NAND controller. Fix that by first rounding down the requested clk_rate with clk_round_rate() and then checking if tRC is actually smaller than 30ns. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions