]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Jul 2015 17:10:05 +0000 (10:10 -0700)
commitab12dcd70c11074e6ed28b0304f059a075e33db0
tree5ff7a5e9d8eb44252edbb83a247e7c6b4f03ef34
parent25d8f169eee423940158a0ab33ed5dd1dd995cf9
video: mxsfb: Make sure axi clock is enabled when accessing registers

commit 2fa3b4c4a78a5db3502ab9e32630ea660ff923d0 upstream.

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>
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/video/fbdev/mxsfb.c