Re: [PATCH v6 2/3] bus: mhi: ep: Add mhi_ep_queue_buf() API for raw buffer queuing

From: Manivannan Sadhasivam

Date: Sat Sep 26 2026 - 07:13:26 EST


On Tue, Sep 08, 2026 at 02:57:23PM +0530, Sumit Kumar wrote:
> Some MHI endpoint clients do not use socket buffers and need a way to queue
> raw buffers for DL transfers. Add mhi_ep_queue_buf() to support this use
> case.
>
> Refactor mhi_ep_queue_skb() to delegate to a new internal mhi_ep_queue()
> helper shared by both APIs, and rename mhi_ep_skb_completion() to
> mhi_ep_buf_completion() to reflect its broader use.
>
> Signed-off-by: Sumit Kumar <sumit.kumar@xxxxxxxxxxxxxxxx>
> ---
> drivers/bus/mhi/ep/main.c | 29 ++++++++++++++++++++---------
> include/linux/mhi_ep.h | 16 ++++++++++++++++
> 2 files changed, 36 insertions(+), 9 deletions(-)
>
> diff --git a/drivers/bus/mhi/ep/main.c b/drivers/bus/mhi/ep/main.c
> index db7ee6547eefa75995393f761ac3b66a6e37112d..4b8dcd0273ad94e7fbcf7ab0209f13b17deb6d0c 100644
> --- a/drivers/bus/mhi/ep/main.c
> +++ b/drivers/bus/mhi/ep/main.c
> @@ -504,7 +504,7 @@ static int mhi_ep_process_ch_ring(struct mhi_ep_ring *ring)
> return 0;
> }
>
> -static void mhi_ep_skb_completion(struct mhi_ep_buf_info *buf_info)
> +static void mhi_ep_buf_completion(struct mhi_ep_buf_info *buf_info)
> {
> struct mhi_ep_device *mhi_dev = buf_info->mhi_dev;
> struct mhi_ep_cntrl *mhi_cntrl = mhi_dev->mhi_cntrl;
> @@ -532,22 +532,22 @@ static void mhi_ep_skb_completion(struct mhi_ep_buf_info *buf_info)
>
> mhi_ep_ring_inc_index(ring);
> }
> -

Keep the newline.

- Mani

--
மணிவண்ணன் சதாசிவம்