diff options
author | Mikko Perttunen <mperttunen@nvidia.com> | 2023-03-01 15:51:06 +0200 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2023-04-04 14:24:24 +0200 |
commit | c1aaee94380874fd40f7bb8417c597aba3f72c75 (patch) | |
tree | 0193b6841f85b30d86aee9ede799e2c9400916e3 /drivers/iio/gyro | |
parent | 1d83d1a2df0bfb6bd79400746c289e2c4edc5909 (diff) | |
download | linux-stable-c1aaee94380874fd40f7bb8417c597aba3f72c75.tar.gz linux-stable-c1aaee94380874fd40f7bb8417c597aba3f72c75.tar.bz2 linux-stable-c1aaee94380874fd40f7bb8417c597aba3f72c75.zip |
gpu: host1x: Don't rely on dma_fence_wait_timeout return value
dma_fence_wait_timeout (along with a host of other jiffies-based
timeouting functions) returns zero both in case of timeout and when
the wait completes during the last jiffy before timeout. As such,
we can't rely on it to distinguish between success and timeout.
To prevent confusing callers by returning -EAGAIN before the timeout
period has elapsed, check if the fence got signaled again after
the wait.
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/iio/gyro')
0 files changed, 0 insertions, 0 deletions