aboutsummaryrefslogtreecommitdiff
path: root/net/qrtr
diff options
context:
space:
mode:
authorLoic Poulain <loic.poulain@linaro.org>2021-04-07 18:47:13 +0200
committerLoic Poulain <loic.poulain@linaro.org>2021-04-22 14:43:01 +0200
commit2eff3bfdd7594de5eae5b5ff4df3fbfb848395ba (patch)
treeb31553667f549dfc757e8be01d09a7ea5b8fc0f6 /net/qrtr
parentceecc804ddce819d12c3aeb9e0d2143b4806fc3e (diff)
bus: mhi: Add inbound buffers allocation flagsdx55-dev
Currently, the MHI controller driver defines which channels should have their inbound buffers allocated and queued. But ideally, this is something that should be decided by the MHI device driver instead, which actually deals with that buffers. Add a flag parameter to mhi_prepare_for_transfer allowing to specify if buffers have to be allocated and queued by the MHI stack. Keep auto_queue flag for now, but should be removed at some point. Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Diffstat (limited to 'net/qrtr')
-rw-r--r--net/qrtr/mhi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/qrtr/mhi.c b/net/qrtr/mhi.c
index 2bf2b1943e61..47afded9f588 100644
--- a/net/qrtr/mhi.c
+++ b/net/qrtr/mhi.c
@@ -77,7 +77,7 @@ static int qcom_mhi_qrtr_probe(struct mhi_device *mhi_dev,
int rc;
/* start channels */
- rc = mhi_prepare_for_transfer(mhi_dev);
+ rc = mhi_prepare_for_transfer(mhi_dev, MHI_CH_INBOUND_ALLOC_BUFS);
if (rc)
return rc;