]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
mtd: nand: Wait tCCS after a column change
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Sat, 1 Oct 2016 08:24:03 +0000 (10:24 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 7 Nov 2016 13:48:37 +0000 (14:48 +0100)
commit6ea40a3ba93e1b14ffb349e276f9dfefc4334b99
treef37e804a5eecaa681957ff24739964e7bd0c55e5
parent204e7ecd47e26cc12d9e8e8a7e7a2eeb9573f0ba
mtd: nand: Wait tCCS after a column change

Drivers implementing ->cmd_ctrl() and relying on the default ->cmdfunc()
implementation usually don't wait tCCS when a column change (RNDIN or
RNDOUT) is requested.
Add an option flag to ask the core to do so (note that we keep this as
an opt-in to avoid breaking existing implementations), and make use of
the ->data_interface information is available (otherwise, wait 500ns).

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Tested-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>
drivers/mtd/nand/nand_base.c
include/linux/mtd/nand.h