diff options
author | Gao Pan <pandy.gao@nxp.com> | 2016-11-28 11:02:59 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-11-30 17:45:51 +0000 |
commit | d2ad0a62d4ee235fbfcf7816a0bee5d09da8ddbe (patch) | |
tree | 7dc66050493e02652c311809a184c846880da36b /Makefile | |
parent | 14de3918eacfc624023775c319e85e6597514195 (diff) |
spi: fsl-lpspi: use wait_for_completion_timeout() while waiting transfer done
It's a potential problem to use wait_for_completion() because the
completion condition may never come. Thus, it's better to repalce
wait_for_completion() with wait_for_completion_timeout().
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'Makefile')