[BUgfix][API-935]fix for cant sleep down

Change-Id: Icbd3d0981ad8d554cc94eabb38bc7eb9af19b329
(cherry picked from commit 9bc54dada7c4630a97688232975e9fe5410dd38b)
diff --git a/meta/meta-mediatek-mt2735/recipes-lynq/suspend-service/files/autosuspend_wakeup_count.c b/meta/meta-mediatek-mt2735/recipes-lynq/suspend-service/files/autosuspend_wakeup_count.c
index 6a9827a..db652dc 100755
--- a/meta/meta-mediatek-mt2735/recipes-lynq/suspend-service/files/autosuspend_wakeup_count.c
+++ b/meta/meta-mediatek-mt2735/recipes-lynq/suspend-service/files/autosuspend_wakeup_count.c
@@ -249,7 +249,7 @@
     lseek(wakeup_count_fd, 0, SEEK_SET);
     system("echo \"autosuspend:Sys seek\" >/dev/console");
     
-    RLOGD("suspend_ctrl: start write wakkeup_count\n");
+    RLOGD("suspend_ctrl: start read wakkeup_count\n");
     wakeup_count_len = TEMP_FAILURE_RETRY(read(wakeup_count_fd, wakeup_count,
                sizeof(wakeup_count)));
     if (wakeup_count_len < 0) {
@@ -258,7 +258,14 @@
             wakeup_count_len = 0;
             return -1;
      }
-
+    
+    RLOGD("suspend_ctrl: start write wakkeup_count\n");
+    ret = write(wakeup_count_fd, wakeup_count, wakeup_count_len);
+    if (ret < 0) {
+            strerror_r(errno, buf, sizeof(buf));
+            RLOGD("Error writing to %s: %s\n", SYS_POWER_WAKEUP_COUNT,buf);
+            return -1;
+        }
     system("echo \"autosuspend:Sys suspend\" >/dev/console");
     RLOGD("suspend_ctrl: start write reg_netsys\n");
     for(int i = 0;i < 5;i++)  //notify spm (other core) to handle pre-sleep configuration