]> 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)
commitb41abc7a706e03cf004fae13794f8609b0777379
tree8c4052379d8c52430ea2835e10d5c12807d245d8
parent1950d05587e8ce64763e634c2baa401831263c49
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