staging: ccree: replace msleep with a completion
authorGilad Ben-Yossef <gilad@benyossef.com>
Mon, 13 Nov 2017 14:45:50 +0000 (14:45 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Nov 2017 08:20:40 +0000 (09:20 +0100)
commitd59c6d9cee8c8c66a0fe67e025a32266cc963e16
tree720d87d7e64e8ad39366ec134ef7e581187ecba3
parent5a83a3937bb06c46a67a05dbc4ddbd433ed11a7c
staging: ccree: replace msleep with a completion

When the driver would try to queue commands to the HW FIFO but ran out of
slots it would use msleep as a delay until the FIFO would clear. This is
messy and not accurate.

Replace the msleep with a proper completion on the event of command
completion which should indicate at least one slot is free.

Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ccree/ssi_driver.c
drivers/staging/ccree/ssi_driver.h
drivers/staging/ccree/ssi_request_mgr.c