drm/rockchip: vop: Correct enabled clocks during setup
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Fri, 6 Nov 2015 12:22:24 +0000 (13:22 +0100)
committerMark Yao <mark.yao@rock-chips.com>
Tue, 1 Dec 2015 10:52:05 +0000 (18:52 +0800)
commitd7b53fd9e37a4127077720f4fef10330e284107c
tree3c5d57dd84791e774df8fa29af67f88bbc59b759
parentb50a1705b598fa4074a5e5e4f20ca46485d1cd0e
drm/rockchip: vop: Correct enabled clocks during setup

When doing the initial setup both the hclk and the aclk need to be
enabled otherwise the board will simply hang. This only occurs when
building the vop driver as a module, when its built-in the initial setup
happens to run before the clock framework shuts of unused clocks
(including the aclk).

While there also switch to doing prepare and enable in one step rather
then separate steps to reduce the amount of code required.

Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Acked-by: Mark Yao <mark.yao@rock-chips.com>
Tested-by: Yakir Yang <ykk@rock-chips.com>
Tested-by: Romain Perier <romain.perier@gmail.com>
drivers/gpu/drm/rockchip/rockchip_drm_vop.c