[WCNCR00158507] power-save: Refine suspend flow

[Description]
Add error handling when WiFi suspend fail
1. When WiFi suspend fail, return -EFAULT to inform caller to
   do resume flow.

Change suspend flow when pre_suspend command timeout.
1. Suspend flow is not finished when pre_suspend timeout.
2. Because the suspend flow of driver and firmware are separete,
   driver should still finish its suspend flow and retrun an
   error code even driver doesn't receive the firmware event.
3. So both suspend failure (resume callback) and suspend success
   (reset_resume callback) can use mtk_usb_resume() callback.

Change-Id: I83cda93d67bcea7a7919f585f2486e1bc622b820
CR-Id: WCNCR00158507
Feature: power-save
Signed-off-by: Alice Ou <alice.ou@mediatek.com>
1 file changed