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)
commitc0c9dfa8adf09dbbb7dc32c20d9ccb33e19250c0
treed16318d0cfcab9696df55d75905df343872af934
parent166f08c7b6ab2f98eebbb6fc1fdb0be1efe0a566
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