Skip to content

Commit

Permalink
net: qrtr: Start MHI channels during init
Browse files Browse the repository at this point in the history
Start MHI device channels so that transfers can be performed.
The MHI stack does not auto-start channels anymore.

Signed-off-by: Loic Poulain <[email protected]>
Reviewed-by: Manivannan Sadhasivam <[email protected]>
Acked-by: David S. Miller <[email protected]>
Signed-off-by: Manivannan Sadhasivam <[email protected]>
  • Loading branch information
Loic Poulain authored and Mani-Sadhasivam committed Nov 18, 2020
1 parent ed5298c commit a2e2cc0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions net/qrtr/mhi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a2e2cc0

Please sign in to comment.