Skip to content

Commit

Permalink
net: qrtr: Unprepare MHI channels during remove
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Jakub Kicinski <[email protected]>
Reviewed-by: Manivannan Sadhasivam <[email protected]>
Signed-off-by: Manivannan Sadhasivam <[email protected]>
  • Loading branch information
Bhaumik Bhatt authored and Mani-Sadhasivam committed Nov 20, 2020
1 parent a2e2cc0 commit 2ca7e30
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/qrtr/mhi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 2ca7e30

Please sign in to comment.