diff options
| author | Linux Build Service Account <lnxbuild@quicinc.com> | 2017-07-26 19:22:54 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-07-26 19:22:54 -0700 |
| commit | 15d76668b0fb3a0bf05c57ec456316b85ed04ef3 (patch) | |
| tree | 1b87812bbd7ec2b80ae3a570ced54a2067d3fc60 | |
| parent | 0bce290a422e02d24b0ecaee135a8be4a1cc35ab (diff) | |
| parent | ddbc617f58aefc3b1448fc7cc7c379ef8815e89b (diff) | |
Merge "icnss: Set crash state for PDR"
| -rw-r--r-- | drivers/soc/qcom/icnss.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/soc/qcom/icnss.c b/drivers/soc/qcom/icnss.c index 271c6bd83bf3..bf815cb68f90 100644 --- a/drivers/soc/qcom/icnss.c +++ b/drivers/soc/qcom/icnss.c @@ -2603,21 +2603,22 @@ static int icnss_service_notifier_notify(struct notifier_block *nb, if (event_data == NULL) return notifier_from_errno(-ENOMEM); + event_data->crashed = true; + if (state == NULL) { - event_data->crashed = true; priv->stats.recovery.root_pd_crash++; goto event_post; } switch (*state) { case ROOT_PD_WDOG_BITE: - event_data->crashed = true; event_data->wdog_bite = true; priv->stats.recovery.root_pd_crash++; break; case ROOT_PD_SHUTDOWN: cause = ICNSS_ROOT_PD_SHUTDOWN; priv->stats.recovery.root_pd_shutdown++; + event_data->crashed = false; break; case USER_PD_STATE_CHANGE: if (test_bit(ICNSS_HOST_TRIGGERED_PDR, &priv->state)) { @@ -2629,7 +2630,6 @@ static int icnss_service_notifier_notify(struct notifier_block *nb, } break; default: - event_data->crashed = true; priv->stats.recovery.root_pd_crash++; break; } |
