aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFan Wu <[email protected]>2021-03-10 13:40:03 -0700
committerManivannan Sadhasivam <[email protected]>2021-03-16 11:36:04 +0530
commit68731852f6e58d19f692971dc84deb64265f6d3f (patch)
tree186066b381add9e5dac38a4a665b38e26b1cd10f
parent70f7025c854c7edc6965ec2ef4230d09ebb9ffd7 (diff)
bus: mhi: core: Return EAGAIN if MHI ring is full
Currently ENOMEM is returned when MHI ring is full. This error code is very misleading. Change to EAGAIN instead. Signed-off-by: Fan Wu <[email protected]> Signed-off-by: Jeffrey Hugo <[email protected]> Reviewed-by: Hemant Kumar <[email protected]> Reviewed-by: Manivannan Sadhasivam <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Manivannan Sadhasivam <[email protected]>
-rw-r--r--drivers/bus/mhi/core/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bus/mhi/core/main.c b/drivers/bus/mhi/core/main.c
index 3faf8bade520..d377d07f269e 100644
--- a/drivers/bus/mhi/core/main.c
+++ b/drivers/bus/mhi/core/main.c
@@ -1020,7 +1020,7 @@ static int mhi_queue(struct mhi_device *mhi_dev, struct mhi_buf_info *buf_info,
ret = mhi_is_ring_full(mhi_cntrl, tre_ring);
if (unlikely(ret)) {
- ret = -ENOMEM;
+ ret = -EAGAIN;
goto exit_unlock;
}