OMAP: DSS2: TPO-TD03MTEA1: fix suspend hang
authorGrazvydas Ignotas <notasas@gmail.com>
Mon, 6 Feb 2012 22:36:24 +0000 (00:36 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Fri, 17 Feb 2012 22:00:08 +0000 (00:00 +0200)
commit22b14bf75cc45efb01fbaaa710fd0cf45178d136
tree5ed229bea9d8fdeb580cfa13afdf85df94439225
parenteb11083c3dfbe9efd42150b64ae987f494eaa587
OMAP: DSS2: TPO-TD03MTEA1: fix suspend hang

During system suspend, at the time DSS is being suspended, SPI is
already suspended and it's clocks are cut. Because of this trying to
communicate with the LCD controller results in a deadlock.

To fix this, split out LCD programming parts of display enable/disable
functions and perform them from SPI PM callbacks instead when system is
being suspended. If the display is just being enabled/disabled, do it
from DSS callbacks as before.

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
drivers/video/omap2/displays/panel-tpo-td043mtea1.c