[PATCH v4 16/23] mtd: nand: denali: use interrupt instead of polling for bank reset

2017-06-05 Thread Masahiro Yamada
The current bank reset implementation polls the INTR_STATUS register until interested bits are set. This is not good because: - polling simply wastes time-slice of the thread - The while() loop may continue eternally if no bit is set, for example, due to the controller problem. The

[PATCH v4 16/23] mtd: nand: denali: use interrupt instead of polling for bank reset

2017-06-05 Thread Masahiro Yamada
The current bank reset implementation polls the INTR_STATUS register until interested bits are set. This is not good because: - polling simply wastes time-slice of the thread - The while() loop may continue eternally if no bit is set, for example, due to the controller problem. The