linux/drivers/staging/mt7621-mmc
George Hilliard 7ca8c2c8bb staging: mt7621-mmc: Initialize completions a single time during probe
The module was initializing completions whenever it was going to wait on
them, and not when the completion was allocated.  This is incorrect
according to the completion docs:

    Calling init_completion() on the same completion object twice is
    most likely a bug [...]

Re-initialization is also unnecessary because the module never uses
complete_all().  Fix this by only ever initializing the completion a
single time, and log if the completions are not consumed as intended
(this is not a fatal problem, but should not go unnoticed).

Signed-off-by: George Hilliard <thirtythreeforty@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-03-27 23:39:31 +09:00
..
Kconfig staging: mt7621-mmc: Remove obsolete Kconfig flags 2019-03-27 23:37:30 +09:00
Makefile
TODO
board.h staging: mt7621-mmc: Use BIT macro instead of explicit shifting in board.h 2018-07-29 10:08:02 +02:00
dbg.c staging: mt7621-mmc: Fix warning when reloading module with debug msgs enabled 2019-03-22 15:20:27 +01:00
dbg.h staging: mt7621-mmc: Fix warning when reloading module with debug msgs enabled 2019-03-22 15:20:27 +01:00
mt6575_sd.h staging: mt7621-mmc: Fix BRUST -> BURST typo 2019-03-20 08:23:18 +01:00
sd.c staging: mt7621-mmc: Initialize completions a single time during probe 2019-03-27 23:39:31 +09:00