summaryrefslogtreecommitdiff
path: root/net/qrtr
diff options
context:
space:
mode:
authorBhaumik Bhatt <bbhatt@codeaurora.org>2020-11-18 21:20:25 +0300
committerManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>2020-11-20 09:25:17 +0300
commit2ca7e30d3b1ee370c96201e58f8c05ba2bdcd6d2 (patch)
tree67c34e418b422769ee5f1b8ef6a55db8242fec47 /net/qrtr
parenta2e2cc0dbb1121dfa875da1c04f3dff966fec162 (diff)
downloadlinux-2ca7e30d3b1ee370c96201e58f8c05ba2bdcd6d2.tar.xz
net: qrtr: Unprepare MHI channels during remove
Reset MHI device channels when driver remove is called due to module unload or any crash scenario. This will make sure that MHI channels no longer remain enabled for transfers since the MHI stack does not take care of this anymore after the auto-start channels feature was removed. Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org> Acked-by: Jakub Kicinski <kuba@kernel.org> Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Diffstat (limited to 'net/qrtr')
-rw-r--r--net/qrtr/mhi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/qrtr/mhi.c b/net/qrtr/mhi.c
index 7100f0bac4c6..2bf2b1943e61 100644
--- a/net/qrtr/mhi.c
+++ b/net/qrtr/mhi.c
@@ -104,6 +104,7 @@ static void qcom_mhi_qrtr_remove(struct mhi_device *mhi_dev)
struct qrtr_mhi_dev *qdev = dev_get_drvdata(&mhi_dev->dev);
qrtr_endpoint_unregister(&qdev->ep);
+ mhi_unprepare_from_transfer(mhi_dev);
dev_set_drvdata(&mhi_dev->dev, NULL);
}