diff options
author | Loic Poulain <loic.poulain@linaro.org> | 2020-09-28 09:39:51 +0530 |
---|---|---|
committer | Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> | 2020-11-18 12:56:23 +0530 |
commit | a2e2cc0dbb1121dfa875da1c04f3dff966fec162 (patch) | |
tree | 15754ddc4730060e5c927d5252edd0585d896010 /net/qrtr | |
parent | ed5298c7d500abaf34ed7783969e953a1f028e5b (diff) | |
download | linux-a2e2cc0dbb1121dfa875da1c04f3dff966fec162.tar.bz2 |
net: qrtr: Start MHI channels during init
Start MHI device channels so that transfers can be performed.
The MHI stack does not auto-start channels anymore.
Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Diffstat (limited to 'net/qrtr')
-rw-r--r-- | net/qrtr/mhi.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/qrtr/mhi.c b/net/qrtr/mhi.c index ff0c41467fc1..7100f0bac4c6 100644 --- a/net/qrtr/mhi.c +++ b/net/qrtr/mhi.c @@ -76,6 +76,11 @@ static int qcom_mhi_qrtr_probe(struct mhi_device *mhi_dev, struct qrtr_mhi_dev *qdev; int rc; + /* start channels */ + rc = mhi_prepare_for_transfer(mhi_dev); + if (rc) + return rc; + qdev = devm_kzalloc(&mhi_dev->dev, sizeof(*qdev), GFP_KERNEL); if (!qdev) return -ENOMEM; |