OMAPDSS: TPO-TD03MTEA1: fix suspend hang
authorGrazvydas Ignotas <notasas@gmail.com>
Tue, 7 Feb 2012 00:13:49 +0000 (02:13 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 21 Feb 2012 07:40:00 +0000 (09:40 +0200)
commit8df4f5ce64e9dc986570799f94c8850f57f8ced9
treeff7a357cafd48cc0940f8f73ff393a89af5e1b55
parentda8f14fc3bb054081c90abc9dd38679bb9308dbb
OMAPDSS: 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>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/displays/panel-tpo-td043mtea1.c