Loading drivers/platform/msm/qpnp-power-on.c +6 −0 Original line number Diff line number Diff line Loading @@ -157,6 +157,9 @@ #define QPNP_POFF_REASON_UVLO 13 /* Wakeup event timeout */ #define WAKEUP_TIMEOUT_MSEC 3000 enum qpnp_pon_version { QPNP_PON_GEN1_V1, QPNP_PON_GEN1_V2, Loading Loading @@ -777,6 +780,9 @@ qpnp_pon_input_dispatch(struct qpnp_pon *pon, u32 pon_type) if (!cfg->key_code) return 0; if (device_may_wakeup(&pon->spmi->dev)) pm_wakeup_event(&pon->spmi->dev, WAKEUP_TIMEOUT_MSEC); /* check the RT status to get the current status of the line */ rc = spmi_ext_register_readl(pon->spmi->ctrl, pon->spmi->sid, QPNP_PON_RT_STS(pon), &pon_rt_sts, 1); Loading Loading
drivers/platform/msm/qpnp-power-on.c +6 −0 Original line number Diff line number Diff line Loading @@ -157,6 +157,9 @@ #define QPNP_POFF_REASON_UVLO 13 /* Wakeup event timeout */ #define WAKEUP_TIMEOUT_MSEC 3000 enum qpnp_pon_version { QPNP_PON_GEN1_V1, QPNP_PON_GEN1_V2, Loading Loading @@ -777,6 +780,9 @@ qpnp_pon_input_dispatch(struct qpnp_pon *pon, u32 pon_type) if (!cfg->key_code) return 0; if (device_may_wakeup(&pon->spmi->dev)) pm_wakeup_event(&pon->spmi->dev, WAKEUP_TIMEOUT_MSEC); /* check the RT status to get the current status of the line */ rc = spmi_ext_register_readl(pon->spmi->ctrl, pon->spmi->sid, QPNP_PON_RT_STS(pon), &pon_rt_sts, 1); Loading