linux/drivers/gpu/drm/msm
Nicholas Mc Guire 9f68ef90aa drm/msm: fixup wait_for_completion_timeout handling
wait_for_completion_timeout return >= 0 but never negative so the check
logic looks inconsistent. Further the return value of
wait_for_completion_timeout was being passed up the call chain but the
x call sites as drm_dp_i2c_do_msg()/drm_dp_dpcd_access() check for < 0
thus timeout was being treated as success case.

<snip> drivers/gpu/drm/drm_dp_helper.c:drm_dp_i2c_do_msg()
                mutex_lock(&aux->hw_mutex);
                ret = aux->transfer(aux, msg);
                mutex_unlock(&aux->hw_mutex);
                if (ret < 0) {
<snip>
logic in edp_aux_transfer() seems incorrect as it could return 0 (timeout)
but checks of <= 0 to indicate error so the return probably should be
-ETIMEDOUT in case wait_for_completion_timeout returns 0 (timeout
occurred).

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
2015-06-11 13:11:02 -04:00
..
adreno drm/msm: workaround for missing irq on a306/8x16 2015-06-11 13:11:01 -04:00
dsi drm/msm: update generated headers 2015-06-11 13:11:01 -04:00
edp drm/msm: fixup wait_for_completion_timeout handling 2015-06-11 13:11:02 -04:00
hdmi drm/msm: update generated headers 2015-06-11 13:11:01 -04:00
mdp drm/msm/mdp5: fix for crash in disable path 2015-06-11 13:11:02 -04:00
Kconfig drm/msm: Initial add DSI connector support 2015-04-01 19:29:38 -04:00
Makefile drm/msm/mdp5: Enable DSI connector in msm drm driver 2015-04-01 19:29:38 -04:00
msm_atomic.c Linux 4.0-rc3 2015-03-09 19:58:30 +10:00
msm_drv.c drm/msm: add missing DRIVER_ATOMIC flag 2015-06-11 13:11:00 -04:00
msm_drv.h drm/msm: Initial add DSI connector support 2015-04-01 19:29:38 -04:00
msm_fb.c drm/msm: fix unbalanced DRM framebuffer init/destroy 2015-05-14 11:48:54 -04:00
msm_fbdev.c drm/msm: add support for "stolen" mem 2015-04-01 19:29:33 -04:00
msm_gem_prime.c drm/msm: Allow exported dma-bufs to be mapped 2014-11-16 14:22:43 -05:00
msm_gem_submit.c drm/msm: add rd logging debugfs 2014-06-02 07:36:11 -04:00
msm_gem.c drm/msm: Fix a couple of 64-bit build warnings 2015-05-14 11:19:25 -04:00
msm_gem.h drm/msm: add support for "stolen" mem 2015-04-01 19:29:33 -04:00
msm_gpu.c drm/msm: adreno a306 support 2015-06-11 13:11:01 -04:00
msm_gpu.h drm/msm: adreno a306 support 2015-06-11 13:11:01 -04:00
msm_iommu.c drm/msm: Fix a couple of 64-bit build warnings 2015-05-14 11:19:25 -04:00
msm_kms.h drm/msm: Add split display interface 2015-04-01 19:29:37 -04:00
msm_mmu.h drm/msm: use upstream iommu 2014-08-04 11:55:29 -04:00
msm_perf.c drm/msm: add perf logging debugfs 2014-06-02 07:36:21 -04:00
msm_rd.c drm/msm: add rd logging debugfs 2014-06-02 07:36:11 -04:00
msm_ringbuffer.c drm/msm: fix locking inconsistencies in gpu->destroy() 2015-05-15 09:28:27 -04:00
msm_ringbuffer.h drm/msm: add a3xx gpu support 2013-08-24 14:57:18 -04:00
NOTES drm/msm: add mdp5/apq8x74 2014-01-09 14:44:06 -05:00