OSDN Git Service

OMAPDSS: HDMI: fix hdmi_wait_for_bit_change
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 28 Oct 2013 09:47:30 +0000 (11:47 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 13 Jan 2014 10:19:52 +0000 (12:19 +0200)
commit91b53e6a96aa9a6d06f55abfc52440945fc1d82e
treee9b110600fe9fef84df659e3a032886ef1e6e02e
parentbe07dcd7e239a854ae92041b3eb17863062e52e4
OMAPDSS: HDMI: fix hdmi_wait_for_bit_change

hdmi_wait_for_bit_change() has two issues:

The register index was passed as u16, even if the register index may be
u32. Fix the index to u32.

The function was copied from wait_for_bit_change() which waits for a
single bit to change, but the hdmi version was changed to wait for a bit
field. This change was not done correctly.

The function is supposed to return the (last) value of the bit field,
but it returned !val in case of timeout. This was correct for the single
bit version, but not for the hdmi version. Fix the function to return
the actual value in the register.

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