-
由 Jan Glauber 提交于
After issuing a request an endless loop was used to read the completion state from memory which is asynchronously updated by the ZIP coprocessor. Add an upper bound to the retry attempts to prevent a CPU getting stuck forever in case of an error. Additionally, add a read memory barrier and a small delay between the reading attempts. Signed-off-by: NJan Glauber <jglauber@cavium.com> Reviewed-by: NRobert Richter <rrichter@cavium.com> Cc: stable <stable@vger.kernel.org> # 4.14 Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
c782a8c4