]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
mtd: nand: denali: fix setup_data_interface to meet tCCS delay
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 29 Sep 2017 14:12:57 +0000 (23:12 +0900)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Sat, 7 Oct 2017 09:28:06 +0000 (11:28 +0200)
commit7963f58cbf3a722c93f946c80a12f185b86dc45c
tree0ccc6ea49a657c82c9bc6dc91e412b5b5a46f1f6
parent263c68afb521b2ff1ca386d312d155ff3d22b69a
mtd: nand: denali: fix setup_data_interface to meet tCCS delay

The WE_2_RE register specifies the number of clock cycles inserted
between the rising edge of #WE and the falling edge of #RE.

The current setup_data_interface implementation takes care of tWHR,
but tCCS is missing.  Wait for max(tCSS, tWHR) to meet the spec.

With setup_data_interface() properly programmed, the Denali NAND
controller can observe the timing, so NAND_WAIT_TCCS flag is unneeded.
Clarify this in the comment block.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/denali.c