video: mxsfb: Make sure axi clock is enabled when accessing registers
authorLiu Ying <Ying.Liu@freescale.com>
Fri, 3 Apr 2015 04:51:05 +0000 (12:51 +0800)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 7 May 2015 10:59:45 +0000 (13:59 +0300)
commit2fa3b4c4a78a5db3502ab9e32630ea660ff923d0
treefdad0becd90b117f0f0e307ee781506ee26ec55b
parenta7c42990f1bed8665037fd5a3848ffb02de3b553
video: mxsfb: Make sure axi clock is enabled when accessing registers

The LCDIF engines embedded in i.MX6sl and i.MX6sx SoCs need the axi clock
as the engine's system clock.  The clock should be enabled when accessing
LCDIF registers, otherwise the kernel would hang up.  We should also keep
the clock enabled when the engine is being active to scan out frames from
memory.  This patch makes sure the axi clock is enabled when accessing
registers so that the kernel hang up issue can be fixed.

Reported-by: Peter Chen <peter.chen@freescale.com>
Tested-by: Peter Chen <peter.chen@freescale.com>
Cc: <stable@vger.kernel.org> # 3.19+
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/fbdev/mxsfb.c