diff options
| author | Linux Build Service Account <lnxbuild@quicinc.com> | 2018-01-29 14:02:08 -0800 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-01-29 14:02:08 -0800 |
| commit | d10ff5a6dc2485a7ce6e39170f17bd9347e66dc8 (patch) | |
| tree | 4aebcc492e7e078918e840b5e04e894c8c11ae8f | |
| parent | 74b6b84c4a50b78f0d922b57ed84a9c98bee9544 (diff) | |
| parent | 352e75bb9ee4ff294f382467ca119b502df93ac9 (diff) | |
Merge "soc: qcom: qdss_bridge: add support for SSR"
| -rw-r--r-- | drivers/soc/qcom/qdss_bridge.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/soc/qcom/qdss_bridge.c b/drivers/soc/qcom/qdss_bridge.c index 443e9e384ea2..087f01154924 100644 --- a/drivers/soc/qcom/qdss_bridge.c +++ b/drivers/soc/qcom/qdss_bridge.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2017, The Linux Foundation. All rights reserved. +/* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -352,6 +352,14 @@ static void mhi_notifier(struct mhi_cb_info *cb_info) queue_work(drvdata->mhi_wq, &drvdata->close_work); break; + case MHI_CB_SYS_ERROR: + case MHI_CB_MHI_SHUTDOWN: + drvdata->opened = 0; + + flush_workqueue(drvdata->mhi_wq); + qdss_destroy_buf_tbl(drvdata); + break; + default: pr_err_ratelimited("MHI returned invalid cb reason 0x%x\n", cb_info->cb_reason); |
