From: Heiko Stübner Date: Fri, 22 Mar 2013 14:14:22 +0000 (+0100) Subject: AUO-K190x: set the correct runtime-pm state in recover X-Git-Tag: v3.10-rc1~197^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4e0ab85bb9097ecc422d4237f9eec155993f2902;p=profile%2Fivi%2Fkernel-x86-ivi.git AUO-K190x: set the correct runtime-pm state in recover In the recover function the device gets powercycled and is after this again active, independent of its previous state. Signed-off-by: Heiko Stübner Signed-off-by: Tomi Valkeinen --- diff --git a/drivers/video/auo_k190x.c b/drivers/video/auo_k190x.c index bc0b643..17f8d09 100644 --- a/drivers/video/auo_k190x.c +++ b/drivers/video/auo_k190x.c @@ -588,10 +588,16 @@ static int auok190x_power(struct auok190xfb_par *par, bool on) static void auok190x_recover(struct auok190xfb_par *par) { + struct device *dev = par->info->device; + auok190x_power(par, 0); msleep(100); auok190x_power(par, 1); + /* after powercycling the device, it's always active */ + pm_runtime_set_active(dev); + par->standby = 0; + par->init(par); /* wait for init to complete */