]> git.baikalelectronics.ru Git - kernel.git/commit
drm: bridge/dw_hdmi: clean up phy configuration
authorRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 31 Mar 2015 17:34:11 +0000 (18:34 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 18 Aug 2015 10:27:14 +0000 (11:27 +0100)
commit91737037051aa84c03d8158e63fac241fc6c217a
treea17be5e81b6ab7a63d2698892e2c9b6e120828b4
parentd29c5bf660311067dcf6cbbbcf542fa39f2196af
drm: bridge/dw_hdmi: clean up phy configuration

The phy configuration is dependent on the SoC, and we look up values for
some of the registers in SoC specific data.  However, we had partially
programmed the phy before we had successfully looked up the clock rate.
Also, we were only checking that we had a valid configuration for the
currctrl register.

Move all these lookups to the start of this function instead, so we can
check that all lookups were successful before beginning to program the
phy.

Tested-by: Yakir Yang <ykk@rock-chips.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/gpu/drm/bridge/dw_hdmi.c