]> 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)
commit4de095a7e368f8edd6e7280d38a7f38e38fb4032
tree3c5d57dd84791e774df8fa29af67f88bbc59b759
parentdd10055e762fa15f34aefd531f62b26aae3aeead
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