mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
Merge "soc: qcom: pmic_glink: Use SERVREG_NOTIF_SERVICE_STATE_DOWN_V01 for PDR"
This commit is contained in:
commit
9fd9a0c73e
1 changed files with 2 additions and 8 deletions
|
|
@ -171,17 +171,11 @@ static int pmic_glink_pdr_notifier_cb(struct notifier_block *nb,
|
|||
pr_debug("code: %#lx\n", code);
|
||||
|
||||
switch (code) {
|
||||
case SERVREG_NOTIF_SERVICE_STATE_EARLY_DOWN_V01:
|
||||
case SERVREG_NOTIF_SERVICE_STATE_DOWN_V01:
|
||||
pr_debug("PD state down for %s\n", pgdev->pdr_service_name);
|
||||
pmic_glink_notify_clients(pgdev, PMIC_GLINK_STATE_DOWN);
|
||||
atomic_set(&pgdev->pdr_state, code);
|
||||
break;
|
||||
case SERVREG_NOTIF_SERVICE_STATE_DOWN_V01:
|
||||
/*
|
||||
* PMIC Glink clients have been notified already. So do
|
||||
* nothing here.
|
||||
*/
|
||||
break;
|
||||
case SERVREG_NOTIF_SERVICE_STATE_UP_V01:
|
||||
/*
|
||||
* Do not notify PMIC Glink clients here but rather from
|
||||
|
|
@ -608,7 +602,7 @@ static void pmic_glink_init_work(struct work_struct *work)
|
|||
int rc;
|
||||
|
||||
if (atomic_read(&pgdev->pdr_state) ==
|
||||
SERVREG_NOTIF_SERVICE_STATE_EARLY_DOWN_V01 ||
|
||||
SERVREG_NOTIF_SERVICE_STATE_DOWN_V01 ||
|
||||
atomic_read(&pgdev->prev_state) == SUBSYS_BEFORE_SHUTDOWN) {
|
||||
pmic_glink_notify_clients(pgdev, PMIC_GLINK_STATE_UP);
|
||||
atomic_set(&pgdev->pdr_state,
|
||||
|
|
|
|||
Loading…
Reference in a new issue