]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00160692 - MXC HDMI: Unbalanced clk disable
authorDanny Nold <dannynold@freescale.com>
Mon, 24 Oct 2011 16:11:17 +0000 (11:11 -0500)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:09:47 +0000 (14:09 +0200)
commit89c09c38f17d408268cfeeb7f12a6e5f371854a8
tree756c7f8e781f94c88f8ca3c80387472ddba3d2a8
parente0df8e15d2c3af826c0e0593894ea866cbd0be54
ENGR00160692 - MXC HDMI: Unbalanced clk disable

HDMI IAHB clock was capable of being disabled twice consecutively
due to a race condition between enabling the HDMI interrupts
and disabling the HDMI clock.  A spinlock has been added to protect
against the race condition.

Another race condition was present due to the driver handling
HPD (hotplug detect) and RX Sense interrupts separately.  Only HPD
interrupts handled now, simplifying enable/disable flow and
eliminating the race condition.

One final race condition fixed during HDMI driver initialization.
IRQ request moved to after place where IAHB is disabled, to ensure
balanced enable/disable of IAHB clock.

Signed-off-by: Danny Nold <dannynold@freescale.com>
drivers/video/mxc_hdmi.c