From 40b8094c7e64f8ec31da811b82cad321e743952c Mon Sep 17 00:00:00 2001 From: huang zhibao Date: Mon, 13 Oct 2014 17:59:27 +0800 Subject: [PATCH] input:ir, resume -> resume_early for wakeup one time --- drivers/input/remotectl/rockchip_pwm_remotectl.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/input/remotectl/rockchip_pwm_remotectl.c b/drivers/input/remotectl/rockchip_pwm_remotectl.c index 614c6e522a4f..871de6584f48 100755 --- a/drivers/input/remotectl/rockchip_pwm_remotectl.c +++ b/drivers/input/remotectl/rockchip_pwm_remotectl.c @@ -207,7 +207,12 @@ static void rk_pwm_remotectl_do_something(unsigned long data) ddata->scandata = 0; ddata->count = 0; } else { - ddata->state = RMC_PRELOAD; + if (rk_remote_print_code){ + ddata->state = RMC_GETDATA; + ddata->scandata = 0; + ddata->count = 0; + } else + ddata->state = RMC_PRELOAD; } } } @@ -564,8 +569,8 @@ static int remotectl_resume(struct device *dev) } static const struct dev_pm_ops remotectl_pm_ops = { - .suspend = remotectl_suspend, - .resume = remotectl_resume, + .suspend_late = remotectl_suspend, + .resume_early = remotectl_resume, }; #endif -- 2.34.1