diff options
| author | Masahiro Yamada <[email protected]> | 2017-06-13 22:45:41 +0900 |
|---|---|---|
| committer | Boris Brezillon <[email protected]> | 2017-06-20 09:14:37 +0200 |
| commit | d49f5790278d18fd6b8e474397d9abfdf29a48f2 (patch) | |
| tree | a128e070ed70fc11e3ddaa1c752523be78a5b526 /tools/perf/util/scripting-engines/trace-event-python.c | |
| parent | f486287d2372422d68768c88fe54e80a48aee8ec (diff) | |
mtd: nand: denali: use interrupt instead of polling for bank reset
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 denali_wait_for_irq()
uses wait_for_completion_timeout(), which is safer.
We can use interrupt by moving the denali_reset_bank() call below
the interrupt setup.
Signed-off-by: Masahiro Yamada <[email protected]>
Signed-off-by: Boris Brezillon <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions