gpu: host1x: Don't complete a completed job
authorDmitry Osipenko <digetx@gmail.com>
Tue, 7 Aug 2018 13:07:12 +0000 (16:07 +0300)
committerThierry Reding <treding@nvidia.com>
Thu, 7 Feb 2019 17:30:58 +0000 (18:30 +0100)
commit5d6f043685fed86153ea6aeadd098a11267f58ef
tree95bf9626d6bc4bf13de511d4606908eb5a0e0db4
parente8bad659381e9d63164f61e3bdf37e1c12274016
gpu: host1x: Don't complete a completed job

There is a chance that the last job has been completed at the time of
CDMA timeout handler invocation. In this case there is no need to complete
the completed job.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/host1x/cdma.c