]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: sunxi: poll for events instead of using interrupts
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 7 Mar 2016 14:34:39 +0000 (15:34 +0100)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 19 Apr 2016 20:05:45 +0000 (22:05 +0200)
commit4dbead00acd950d2d27a1801d23785bba57392a4
treed16318d0cfcab9696df55d75905df343872af934
parent12e0f990977c71a02da3f50d352ead4968688bf9
mtd: nand: sunxi: poll for events instead of using interrupts

Some NAND operations are so fast that it doesn't make any sense to use
interrupt based waits (the scheduling overhead is not worth it).
Rename sunxi_nfc_wait_int() into sunxi_nfc_wait_events() and add a
parameter to specify whether polling should be used or not.

Note that all sunxi_nfc_wait_int() are moved to the polling approach now,
but this should change as soon as we have more information about the
approximate time we are about to wait (can be extracted from the NAND
timings, and the type of operation).

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/sunxi_nand.c