AUO-K190x: set the correct runtime-pm state in recover

A patch from »AUO-K190x: Rotation, truecolor and misc fixes« in state Mainline for linux-kernel

From: Heiko Stuebner <heiko@...> Date: Sun, 24 Jun 2012 14:08:26 +0200

Commit-Message

Patch-Comment

drivers/video/auo_k190x.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)

Statistics

  • 6 lines added
  • 0 lines removed

Changes

-------------------------- drivers/video/auo_k190x.c ---------------------------
index 6c2879d..954b781 100644
@@ -587,10 +587,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 */
 
 

Recent Patches

About Us

Sed lacus. Donec lectus. Nullam pretium nibh ut turpis. Nam bibendum. In nulla tortor, elementum vel, tempor at, varius non, purus. Mauris vitae nisl nec metus placerat consectetuer.

Read More...