提交 4e0ab85b 编写于 作者: H Heiko Stübner 提交者: Tomi Valkeinen

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: NHeiko Stübner <heiko@sntech.de>
Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
上级 70f1e28e
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册