]> git.karo-electronics.de Git - linux-beck.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)
commite8fa5671183c80342d520ad81d14fa79a9d4a680
tree8c4052379d8c52430ea2835e10d5c12807d245d8
parent1aa81be3af121636824e40eec737706e62c9da0c
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