Skip to content

Commit 74a4fcf

Browse files
Pavan Savoygregkh
authored andcommitted
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>
1 parent 0d7c5f2 commit 74a4fcf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/misc/ti-st/st_kim.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ static long read_local_version(struct kim_data_s *kim_gdata, char *bts_scr_name)
210210
pr_err(" waiting for ver info- timed out ");
211211
return -ETIMEDOUT;
212212
}
213+
INIT_COMPLETION(kim_gdata->kim_rcvd);
213214

214215
version =
215216
MAKEWORD(kim_gdata->resp_buffer[13],

0 commit comments

Comments
 (0)