drivers:misc: ti-st: reinit completion before send
authorPavan Savoy <pavan_savoy@ti.com>
Wed, 10 Aug 2011 15:18:34 +0000 (10:18 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 22 Aug 2011 21:13:33 +0000 (14:13 -0700)
commit2f81a02ce0693863019dc3fcc532533af6dc0dcd
tree4a54dd12adf21d355511e056fd92bcbd82c76b4d
parent78bb9697e2c4b62c426f1a2571c293a2e4463adf
drivers:misc: ti-st: reinit completion before send

download firmware behaves differently at different times, when logs are
enabled and the system is loaded, the wait_for_completion is able to wait for
every send, However during other times the wait does not happen.

So, for reliability reinitializing the completion before every send, makes
sure the wait happens for every send.

Signed-off-by: Pavan Savoy <pavan_savoy@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/misc/ti-st/st_kim.c