static int bridge_resume(struct platform_device *pdev) { u32 status; status = pwr_wake_dsp(time_out); if (status) return -1; bridge_suspend_data.suspended = 0; wake_up(&bridge_suspend_data.suspend_wq); return 0; }
static int BRIDGE_RESUME(struct platform_device *pdev) { u32 status = 0; struct wmd_dev_context *dev_ctxt; dev_get_wmd_context(dev_get_first(), &dev_ctxt); if (!dev_ctxt) return -EFAULT; /* * only wake up the DSP if it was not in Hibernation before the * suspend transition */ if (dev_ctxt->dw_brd_state != BRD_DSP_HIBERNATION) status = pwr_wake_dsp(time_out); if (DSP_FAILED(status)) return status; bridge_suspend_data.suspended = 0; wake_up(&bridge_suspend_data.suspend_wq); return 0; }