{"action":"created","issue":{"url":"https://api.github.com/repos/OpenNuvoton/NUC970_Linux_Kernel/issues/6","repository_url":"https://api.github.com/repos/OpenNuvoton/NUC970_Linux_Kernel","labels_url":"https://api.github.com/repos/OpenNuvoton/NUC970_Linux_Kernel/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/OpenNuvoton/NUC970_Linux_Kernel/issues/6/comments","events_url":"https://api.github.com/repos/OpenNuvoton/NUC970_Linux_Kernel/issues/6/events","html_url":"https://github.com/OpenNuvoton/NUC970_Linux_Kernel/issues/6","id":231931033,"number":6,"title":"keypad can not wakup the system?","user":{"login":"junwushi","id":1411047,"avatar_url":"https://avatars1.githubusercontent.com/u/1411047?v=3","gravatar_id":"","url":"https://api.github.com/users/junwushi","html_url":"https://github.com/junwushi","followers_url":"https://api.github.com/users/junwushi/followers","following_url":"https://api.github.com/users/junwushi/following{/other_user}","gists_url":"https://api.github.com/users/junwushi/gists{/gist_id}","starred_url":"https://api.github.com/users/junwushi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junwushi/subscriptions","organizations_url":"https://api.github.com/users/junwushi/orgs","repos_url":"https://api.github.com/users/junwushi/repos","events_url":"https://api.github.com/users/junwushi/events{/privacy}","received_events_url":"https://api.github.com/users/junwushi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2017-05-29T05:38:49Z","updated_at":"2017-06-12T10:32:06Z","closed_at":null,"body":"i configured with \"CONFIG_NUC970_KEYPAD_WKUP \" option in kernel, and after I  input the command \"echo freeze > /sys/power/state \" or  \"echo mem > /sys/power/state \" to suspend, but the system can't be wakeup whatever  I press  any key  . and use keypad to wakeup that need some additional hardware design? see attach file for kernel conflagration.\r\n\r\n[config.tar.gz](https://github.com/OpenNuvoton/NUC970_Linux_Kernel/files/1034891/config.tar.gz)\r\n\r\n\r\nroot@gateway:~# echo freeze > /sys/power/state \r\n[   18.060000] PM: Syncing filesystems ... done.\r\n[   18.100000] Freezing user space processes ... (elapsed 0.02 seconds) done.\r\n[   18.140000] Freezing remaining freezable tasks ... (elapsed 0.02 seconds) done.\r\n[   18.160000] Suspending console(s) (use no_console_suspend to debug)\r\n"},"comment":{"url":"https://api.github.com/repos/OpenNuvoton/NUC970_Linux_Kernel/issues/comments/307752001","html_url":"https://github.com/OpenNuvoton/NUC970_Linux_Kernel/issues/6#issuecomment-307752001","issue_url":"https://api.github.com/repos/OpenNuvoton/NUC970_Linux_Kernel/issues/6","id":307752001,"user":{"login":"junwushi","id":1411047,"avatar_url":"https://avatars1.githubusercontent.com/u/1411047?v=3","gravatar_id":"","url":"https://api.github.com/users/junwushi","html_url":"https://github.com/junwushi","followers_url":"https://api.github.com/users/junwushi/followers","following_url":"https://api.github.com/users/junwushi/following{/other_user}","gists_url":"https://api.github.com/users/junwushi/gists{/gist_id}","starred_url":"https://api.github.com/users/junwushi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junwushi/subscriptions","organizations_url":"https://api.github.com/users/junwushi/orgs","repos_url":"https://api.github.com/users/junwushi/repos","events_url":"https://api.github.com/users/junwushi/events{/privacy}","received_events_url":"https://api.github.com/users/junwushi/received_events","type":"User","site_admin":false},"created_at":"2017-06-12T10:32:06Z","updated_at":"2017-06-12T10:32:06Z","body":"i think this code has issue:\r\nstatic int nuc970fb_suspend(struct platform_device *dev, pm_message_t state)\r\n{\r\n\tstruct fb_info\t   *fbinfo = platform_get_drvdata(dev);\r\n\tstruct nuc970fb_info *info = fbinfo->par;\r\n\tunsigned long timeout;\r\n\t\t\r\n\tprintk(KERN_INFO \"nuc970fb suspend\\n\");\r\n\tinfo->powerdown = 1;\r\n\t\r\n\ttimeout = **_wait_for_completion_interruptible_timeout_**\r\n\t\t\t (&info->completion, NUC970_FB_TIMEOUT);\r\n\t\t\t\r\n\tnuc970fb_stop_lcd(fbinfo);\r\n\r\n\treturn 0;\r\n}"}}
{"actor":{"display_login":"junwushi"}}