]> git.baikalelectronics.ru Git - kernel.git/commit
drm: crc: Wait for a frame before returning from open()
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Mon, 2 Jan 2017 12:59:10 +0000 (13:59 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 5 Jan 2017 08:53:12 +0000 (09:53 +0100)
commit939ed8f392145145ddfee414cbf5e18b20618943
tree8c4052379d8c52430ea2835e10d5c12807d245d8
parentb2301cac7e081a8a93ce44b88c8af128b291d4a7
drm: crc: Wait for a frame before returning from open()

Don't return from the open() call on the crc/data file until the HW has
produced a first frame, as there's great variability in when the HW is
able to do that and userspace shouldn't have to guess when this specific
HW is ready to start giving frame CRCs.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20170102125912.22305-3-tomeu.vizoso@collabora.com
drivers/gpu/drm/drm_debugfs_crc.c