[NEUS7920-133]wlbt: mxman_suspend() don't block suspend when FW failed
authorIvan Priest <i.priest@samsung.com>
Wed, 13 Mar 2019 17:32:20 +0000 (17:32 +0000)
committerYoungmin Nam <youngmin.nam@samsung.com>
Tue, 21 May 2019 10:45:21 +0000 (19:45 +0900)
The call to mxman_suspend() returned an error if WLBT FW
is failed, this prevents platform suspend if the firmware
does not recover. Return success even though message is
dropped.

Change-Id: I8c293aaa69dc356ad8125d37f06321392894978c
SCSC-Bug-Id: SSB-50585
Signed-off-by: Ivan Priest <i.priest@samsung.com>
drivers/misc/samsung/scsc/mxman.c

index 820f02eb220090231b999836c1be93dc300eb9ae..fc9cbd91ff295f456846aca7a0dd92af7933bf2f 100755 (executable)
@@ -2054,7 +2054,7 @@ int mxman_suspend(struct mxman *mxman)
        if (srvman && srvman->error) {
                mutex_unlock(&mxman->mxman_mutex);
                SCSC_TAG_INFO(MXMAN, "Called during error - ignore\n");
-               return -EINVAL;
+               return 0;
        }
 
        /* Call Service suspend callbacks */