drm/bridge: dw-hdmi: add better clock disable control
authorRussell King <rmk+kernel@armlinux.org.uk>
Mon, 31 Jul 2017 14:29:46 +0000 (15:29 +0100)
committerArchit Taneja <architt@codeaurora.org>
Fri, 4 Aug 2017 13:32:55 +0000 (19:02 +0530)
commit7cc4ab225ae30bd9ec9239e7dba5b2937f526ccc
tree23a0ae16d3ac4b5ae8aa35504dd74c45be2ef2d1
parente84b8d75ac116e67ac3bdb23cafbd03430aa50b9
drm/bridge: dw-hdmi: add better clock disable control

The video setup path aways sets the clock disable register to a specific
value, which has the effect of disabling the CEC engine.  When we add the
CEC driver, this becomes a problem.

Fix this by only setting/clearing the bits that the video path needs to.

Reviewed-by: Jose Abreu <joabreu@synopsys.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Tested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Link: https://patchwork.freedesktop.org/patch/msgid/E1dcBha-00088l-DE@rmk-PC.armlinux.org.uk
drivers/gpu/drm/bridge/synopsys/dw-hdmi.c