]> git.baikalelectronics.ru Git - kernel.git/commit
OMAPDSS: HDMI: fix PLL GO bit handling
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 16 Oct 2014 13:52:16 +0000 (16:52 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 22 Oct 2014 08:07:54 +0000 (11:07 +0300)
commit2ba346990521422ba3b229c754377f7cdf2962bc
treed4059080a56ec73653697d1319dc685cb8cc92dd
parent5f5aa5a0facce4d66d212fc71e8693c6ae003492
OMAPDSS: HDMI: fix PLL GO bit handling

The PLL settings are committed by setting GO bit, which is then cleared
by the HW when the settings have been taken into use.

The current PLL code handles this wrong: instead of waiting for the bit
to be cleared, it waits for the bit to be set. Usually, the bit is
always set, as the CPU has just set it before. However, if the CPU takes
enough time between setting the GO bit and checking it, the HW may
already have cleared the bit and this leads to timeout error.

Fix the wait to check the bit properly.

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