diff --git a/drivers/soc/qcom/sdx_ext_ipc.c b/drivers/soc/qcom/sdx_ext_ipc.c index a4d0c35f9353..2691bf1bf07b 100644 --- a/drivers/soc/qcom/sdx_ext_ipc.c +++ b/drivers/soc/qcom/sdx_ext_ipc.c @@ -142,15 +142,13 @@ static int sideband_notify(struct notifier_block *nb, switch (action) { - case EVT_WAKE_UP: + case EVENT_REQUEST_WAKE_UP: gpio_set_value(mdm->gpios[WAKEUP_OUT], 1); usleep_range(10000, 20000); gpio_set_value(mdm->gpios[WAKEUP_OUT], 0); break; - default: - dev_info(mdm->dev, "Invalid action passed %d\n", - action); } + return NOTIFY_OK; } diff --git a/drivers/usb/gadget/function/f_ipc.c b/drivers/usb/gadget/function/f_ipc.c index d0c1613a1d27..f9c20c8b0dac 100644 --- a/drivers/usb/gadget/function/f_ipc.c +++ b/drivers/usb/gadget/function/f_ipc.c @@ -276,7 +276,7 @@ retry_write: /* Notify GPIO driver to wakup the host if host * is in suspend mode. */ - sb_notifier_call_chain(EVT_WAKE_UP, NULL); + sb_notifier_call_chain(EVENT_REQUEST_WAKE_UP, NULL); wait_event_interruptible(ipc_dev->state_wq, ipc_dev->online || ipc_dev->current_state == IPC_DISCONNECTED); pr_debug("%s: Interface ready, Retry IN request\n", __func__); @@ -298,7 +298,7 @@ retry_write_done: * completion structure. */ } else if (ipc_dev->connected && !ipc_dev->online) { - sb_notifier_call_chain(EVT_WAKE_UP, NULL); + sb_notifier_call_chain(EVENT_REQUEST_WAKE_UP, NULL); reinit_completion(&ipc_dev->write_done); goto retry_write_done; } diff --git a/include/soc/qcom/sb_notification.h b/include/soc/qcom/sb_notification.h index 20bbe7334419..93b79ccb86cc 100644 --- a/include/soc/qcom/sb_notification.h +++ b/include/soc/qcom/sb_notification.h @@ -16,7 +16,7 @@ #define _SB_NOTIFICATION_H /* Indicates a system wake up event */ -#define EVT_WAKE_UP 0x01 +#define EVENT_REQUEST_WAKE_UP 0x01 #ifdef CONFIG_QTI_NOTIFY_SIDEBAND /**