Re: [PATCH v6 1/2] bus: mhi: Add mhi_queue_is_full function

2020-10-23 Thread Jeffrey Hugo
On 10/23/2020 1:11 PM, Loic Poulain wrote: Hi Hemant, On Fri, 23 Oct 2020 at 05:06, Hemant Kumar > wrote: Hi Loic, On 10/16/20 2:20 AM, Loic Poulain wrote: > This function can be used by client driver to determine whether it's > possible to que

Re: [PATCH v6 1/2] bus: mhi: Add mhi_queue_is_full function

2020-10-23 Thread Jeffrey Hugo
On 10/23/2020 9:44 AM, Jakub Kicinski wrote: On Thu, 22 Oct 2020 20:06:37 -0700 Hemant Kumar wrote: @@ -1173,6 +1173,17 @@ int mhi_queue_buf(struct mhi_device *mhi_dev, enum dma_data_direction dir, } EXPORT_SYMBOL_GPL(mhi_queue_buf); +bool mhi_queue_is_full(struct mhi_device *mhi_dev,

Re: [PATCH v6 1/2] bus: mhi: Add mhi_queue_is_full function

2020-10-23 Thread Jakub Kicinski
On Thu, 22 Oct 2020 20:06:37 -0700 Hemant Kumar wrote: > > @@ -1173,6 +1173,17 @@ int mhi_queue_buf(struct mhi_device *mhi_dev, enum > > dma_data_direction dir, > > } > > EXPORT_SYMBOL_GPL(mhi_queue_buf); > > > > +bool mhi_queue_is_full(struct mhi_device *mhi_dev, enum dma_data_direction >

Re: [PATCH v6 1/2] bus: mhi: Add mhi_queue_is_full function

2020-10-22 Thread Hemant Kumar
Hi Loic, On 10/16/20 2:20 AM, Loic Poulain wrote: This function can be used by client driver to determine whether it's possible to queue new elements in a channel ring. Signed-off-by: Loic Poulain [..] +static inline bool mhi_is_ring_full(struct mhi_controller *mhi_cntrl, +

[PATCH v6 1/2] bus: mhi: Add mhi_queue_is_full function

2020-10-16 Thread Loic Poulain
This function can be used by client driver to determine whether it's possible to queue new elements in a channel ring. Signed-off-by: Loic Poulain --- v1->v5: This change is not part of the series v6: add this patch to the series drivers/bus/mhi/core/main.c | 15 +-- include/linux