]> git.baikalelectronics.ru Git - kernel.git/commit
OMAPDSS: HDMI: wait for framedone when stopping video
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 24 Mar 2015 13:46:34 +0000 (15:46 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 17 Jun 2015 12:53:40 +0000 (15:53 +0300)
commit4ebf46a9e9ec2cf737d1a26a937e219309a2ad25
treeba02721c18ecc96e77c6372047086fedec0d9ff4
parent13d14edcb255375fd556204f7df40d4072b81081
OMAPDSS: HDMI: wait for framedone when stopping video

At the moment when HDMI video output is stopped, we just clear the
enable bit and return. While it's unclear if this can cause any issues,
I think it's still better to wait for FRAMEDONE interrupt after clearing
the enable bit so that we're sure the HDMI IP has finished.

As we don't have any ready-made irq handling for HDMI, and this only
needs to be done when disabling the HDMI output, this patch implements a
simple loop with sleep, polling the FRAMEDONE bit.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/fbdev/omap2/dss/hdmi_wp.c