Merge "soc: qcom: qdss_bridge: add support for SSR"

This commit is contained in:
Linux Build Service Account 2018-01-29 14:02:08 -08:00 committed by Gerrit - the friendly Code Review server
commit d10ff5a6dc

View file

@ -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);