mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
drivers: soc: qcom: Rename wakeup sideband notification
Rename EVT_WAKE_UP to EVENT_REQUEST_WAKE_UP to clearly expalin that this notification is to request to wake up the remote processor. Change-Id: Icc829f3b6c6d8b0cfc2e0ff189a0152759bb6415 Signed-off-by: Shreyas K K <shrekk@codeaurora.org>
This commit is contained in:
parent
89086d9cfb
commit
bf97bd1e5c
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user