Skip to content

Commit

Permalink
AUO-K190x: set the correct runtime-pm state in recover
Browse files Browse the repository at this point in the history
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 <heiko@sntech.de>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
  • Loading branch information
Heiko Stübner authored and Tomi Valkeinen committed Apr 4, 2013
1 parent 70f1e28 commit 4e0ab85
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/video/auo_k190x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 4e0ab85

Please sign in to comment.