staging: sm750fb: Fix the power state error in resume
authorBinbin Zhou <zhoubb@lemote.com>
Mon, 12 Oct 2015 01:48:27 +0000 (09:48 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Oct 2015 03:33:51 +0000 (20:33 -0700)
The PM_EVENT_RESUME state is needed when SM750 resume, otherwise it
will be failed in the second time of continuous suspend/resume.

Cc: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Binbin Zhou <zhoubb@lemote.com>
Reviewed-by: Huacai Chen <chenhc@lemote.com>
Reviewed-by: Teddy Wang <teddy.wang@siliconmotion.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/sm750.c

index 494017f5235cd6b55ccfc7cea915be5bb162a2ba..8c1ecb32f95384b0f486d5947282274b0bc7ea50 100644 (file)
@@ -511,6 +511,7 @@ static int lynxfb_resume(struct pci_dev *pdev)
                fb_set_suspend(info, 0);
        }
 
+       pdev->dev.power.power_state.event = PM_EVENT_RESUME;
        console_unlock();
        return ret;
 }