]> git.baikalelectronics.ru Git - kernel.git/commit
OMAPDSS: use sync versions of pm_runtime_put
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 23 Jan 2012 11:23:08 +0000 (13:23 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 26 Jan 2012 11:46:24 +0000 (13:46 +0200)
commit99880f7c23e343ab6f7504b385782475c1973aa7
tree86e5ee5d7dfc603da3b61ab5ab573080533d3373
parent888b92aa3b90df36c9ceadae9197d28bcf2aef33
OMAPDSS: use sync versions of pm_runtime_put

omapdss doesn't work properly on system suspend. The problem seems to be
the fact that omapdss uses pm_runtime_put() functions when turning off
the hardware, and when system suspend is in process only sync versions
are allowed.

Using non-sync versions normally and sync versions when suspending would
need rather ugly hacks to convey the information of
suspending/not-suspending to different functions. Optimally the driver
wouldn't even need to care about this, and the PM layer would handle
syncing when suspend is in process.

This patch changes all omapdss's pm_runtime_put calls to
pm_runtime_put_sync. This fixes the suspend problem, and probably the
performance penalty of always using sync versions is negligible.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Acked-by: Kevin Hilman <khilman@ti.com>
drivers/video/omap2/dss/dispc.c
drivers/video/omap2/dss/dsi.c
drivers/video/omap2/dss/dss.c
drivers/video/omap2/dss/hdmi.c
drivers/video/omap2/dss/rfbi.c
drivers/video/omap2/dss/venc.c