]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit95511d5efdfa70dc6faa330d4badbfb3bca16295
tree3c5d57dd84791e774df8fa29af67f88bbc59b759
parenta0b15e70e233acb87a370cb0d7bb8250b468b8c1
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