From: huang zhibao <hzb@rock-chips.com> Date: Mon, 13 Oct 2014 09:59:27 +0000 (+0800) Subject: input:ir, resume -> resume_early for wakeup one time X-Git-Tag: firefly_0821_release~4588 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=40b8094c7e64f8ec31da811b82cad321e743952c;p=firefly-linux-kernel-4.4.55.git input:ir, resume -> resume_early for wakeup one time --- 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