]> 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)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:33:18 +0000 (08:33 +0200)
commit1573177c5f14810a9918b34baf0ccb7e9cac3a10
tree756c7f8e781f94c88f8ca3c80387472ddba3d2a8
parent5cd9eeeabdcf49038890c1a875cdcb1611acb0c4
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