Skip to content

Commit a2e2cc0

Browse files
Loic PoulainMani-Sadhasivam
authored andcommitted
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 <[email protected]> Reviewed-by: Manivannan Sadhasivam <[email protected]> Acked-by: David S. Miller <[email protected]> Signed-off-by: Manivannan Sadhasivam <[email protected]>
1 parent ed5298c commit a2e2cc0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

net/qrtr/mhi.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ static int qcom_mhi_qrtr_probe(struct mhi_device *mhi_dev,
7676
struct qrtr_mhi_dev *qdev;
7777
int rc;
7878

79+
/* start channels */
80+
rc = mhi_prepare_for_transfer(mhi_dev);
81+
if (rc)
82+
return rc;
83+
7984
qdev = devm_kzalloc(&mhi_dev->dev, sizeof(*qdev), GFP_KERNEL);
8085
if (!qdev)
8186
return -ENOMEM;

0 commit comments

Comments
 (0)