]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: mach-shmobile: sh7372 LCDC1 suspend fix
authorMagnus Damm <damm@opensource.se>
Wed, 24 Aug 2011 20:38:43 +0000 (22:38 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Wed, 24 Aug 2011 20:38:43 +0000 (22:38 +0200)
commit3a4e7071dfeacf65c4cd3de381a3e8ca463c6e2c
treebb0337f626329bd4c6dc33dc773fc4a94eb636b1
parent1b6cf631d0b33731762b179d83a30427bdc3a42e
ARM: mach-shmobile: sh7372 LCDC1 suspend fix

Associate the HDMI clock together with LCDC1 on sh7372.

Without this patch Suspend-to-RAM hangs on the boards
AP4EVB and Mackerel. The code hangs in the LCDC driver
where the software is waiting forever for the hardware to
power down. By explicitly associating the HDMI clock with
LCDC1 we can make sure the HDMI clock is enabled using
Runtime PM whenever the driver is accessing the hardware.

This HDMI and LCDC1 dependency is documented in the sh7372
data sheet. Older kernels did work as expected but the
recently merged (3.1-rc)

 d9b18f1 drivers: sh: late disabling of clocks V2

introduced code to turn off clocks lacking software reference
which happens to include the HDMI clock that is needed by
LCDC1 to operate as expected.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
arch/arm/mach-shmobile/board-ap4evb.c
arch/arm/mach-shmobile/board-mackerel.c
arch/arm/mach-shmobile/clock-sh7372.c