diff options
author | Pavan Savoy <pavan_savoy@ti.com> | 2011-08-10 17:18:32 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-08-22 23:13:32 +0200 |
commit | 74a4fcf19eed6550651f455db5741fd216b4f004 (patch) | |
tree | 4883f1c181e9f57dd586f36d2d134d89c076b390 | |
parent | drivers:misc:ti-st: platform hooks for chip states (diff) | |
download | linux-74a4fcf19eed6550651f455db5741fd216b4f004.tar.xz linux-74a4fcf19eed6550651f455db5741fd216b4f004.zip |
drivers:misc: ti-st: reinit completion on ver read
After the version information has been read, the completion which assists in
wait_for_completion during the firmware send/wait sequence is being re-used
and hence this needs to be re-initialised for fool proof firmware download
retries.
Signed-off-by: Pavan Savoy <pavan_savoy@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/misc/ti-st/st_kim.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/misc/ti-st/st_kim.c b/drivers/misc/ti-st/st_kim.c index 6884dd1c997b..e5639ca97dce 100644 --- a/drivers/misc/ti-st/st_kim.c +++ b/drivers/misc/ti-st/st_kim.c @@ -210,6 +210,7 @@ static long read_local_version(struct kim_data_s *kim_gdata, char *bts_scr_name) pr_err(" waiting for ver info- timed out "); return -ETIMEDOUT; } + INIT_COMPLETION(kim_gdata->kim_rcvd); version = MAKEWORD(kim_gdata->resp_buffer[13], |