video: tegra: Improve hdmi worker
authorJon Mayo <jmayo@nvidia.com>
Thu, 5 Sep 2013 01:17:40 +0000 (18:17 -0700)
committerDan Willemsen <dwillemsen@nvidia.com>
Tue, 17 Sep 2013 00:40:52 +0000 (17:40 -0700)
commit8b9e108371bdb7ddb795422d83ea8bcb58186c7d
tree52ac798160579f8e04bc86e0b7d87b5709d3cf21
parenta247d811097306b7c15333507c011d55ddbe17ff
video: tegra: Improve hdmi worker

original change by Mike J. Chen <mjchen@google.com>, but some changes
were made to bring it onto the newer kernel.
- fixed checkpatch warnings.
- used rt_mutex instead of spinlocks, as irq handler is threaded.

original commit message below:

It's now a full blown state machine.  Ported from similar work
we did for OMAP.  Handles TV's that occassionally drop HPD
briefly.

This also fixes a deadlock that could happen because the
old worker function grabbed the dc->lock, but then later
calls a function that grabs the fb lock.  FB_BLANK ioctl
grabs the same locks but in the oppossite order.  The
new worker thread does not grab the dc->lock.

Change-Id: Id5f54d934041e02859c92b9484ff08f4117c33b8
Signed-off-by: Mike J. Chen <mjchen@google.com>
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/270245
drivers/video/tegra/dc/Makefile
drivers/video/tegra/dc/edid.h
drivers/video/tegra/dc/hdmi.c
drivers/video/tegra/dc/hdmi.h
drivers/video/tegra/dc/hdmi_state_machine.c [new file with mode: 0644]
drivers/video/tegra/dc/hdmi_state_machine.h [new file with mode: 0644]