Re: [PATCH v3 1/4] bus: mhi: core: Add helper API to return number of free TREs

2020-06-18 Thread Manivannan Sadhasivam
On Thu, Jun 11, 2020 at 11:13:41AM -0700, Hemant Kumar wrote: > Introduce mhi_get_no_free_descriptors() API to return number > of TREs available to queue buffer. MHI clients can use this > API to know before hand if ring is full without calling queue > API. > > Signed-off-by: Hemant Kumar > ---

[PATCH v3 1/4] bus: mhi: core: Add helper API to return number of free TREs

2020-06-11 Thread Hemant Kumar
Introduce mhi_get_no_free_descriptors() API to return number of TREs available to queue buffer. MHI clients can use this API to know before hand if ring is full without calling queue API. Signed-off-by: Hemant Kumar --- drivers/bus/mhi/core/main.c | 12 include/linux/mhi.h