All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] net: qrtr: Unprepare MHI channels during remove
@ 2020-11-18 18:20 ` Bhaumik Bhatt
  0 siblings, 0 replies; 21+ messages in thread
From: Bhaumik Bhatt @ 2020-11-18 18:20 UTC (permalink / raw)
  To: manivannan.sadhasivam
  Cc: Bhaumik Bhatt, loic.poulain, linux-arm-msm, cjhuang,
	linux-wireless, linux-kernel, clew, netdev, hemantk, ath11k,
	kvalo

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>
---
 net/qrtr/mhi.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net/qrtr/mhi.c b/net/qrtr/mhi.c
index 7100f0b..2bf2b19 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);
 }
 
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project


-- 
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k

^ permalink raw reply related	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2020-12-29 20:18 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-18 18:20 [PATCH] net: qrtr: Unprepare MHI channels during remove Bhaumik Bhatt
2020-11-18 18:20 ` Bhaumik Bhatt
2020-11-18 18:34 ` Jeffrey Hugo
2020-11-18 18:34   ` Jeffrey Hugo
2020-11-18 19:13   ` Bhaumik Bhatt
2020-11-18 19:13     ` Bhaumik Bhatt
     [not found]   ` <CAMZdPi_b0=qFNGi1yUke3Dip2bi-zW4ULTg8W4nbyPyEsE3D4w@mail.gmail.com>
2020-11-18 19:34     ` Jeffrey Hugo
2020-11-18 19:34       ` Jeffrey Hugo
2020-11-19 19:02       ` Bhaumik Bhatt
2020-11-19 19:02         ` Bhaumik Bhatt
2020-11-25 18:01         ` Jeffrey Hugo
2020-11-25 18:01           ` Jeffrey Hugo
2020-11-20  5:10 ` Jakub Kicinski
2020-11-20  5:10   ` Jakub Kicinski
2020-11-20  6:15   ` Manivannan Sadhasivam
2020-11-20  6:15     ` Manivannan Sadhasivam
2020-11-20  6:18     ` Jakub Kicinski
2020-11-20  6:18       ` Jakub Kicinski
2020-11-20  6:23       ` Manivannan Sadhasivam
2020-11-20  6:23         ` Manivannan Sadhasivam
2020-12-29 20:15 ` patchwork-bot+linux-arm-msm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.