From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E5F1AC63777 for ; Sat, 28 Nov 2020 21:58:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A297C22260 for ; Sat, 28 Nov 2020 21:58:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="x6gyt8xw" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391077AbgK1Vvz (ORCPT ); Sat, 28 Nov 2020 16:51:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:48486 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731963AbgK1S5E (ORCPT ); Sat, 28 Nov 2020 13:57:04 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6691522261; Sat, 28 Nov 2020 08:04:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606550661; bh=JMAcI3P9B3e2NrhGJ4Knm8qZWQF1fXXwg07Qn6920p4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=x6gyt8xwbsgF5jVHSsBvirencplyvBolXNZ3qQsda55N2+O4SrhofXHkv3OEsxTE6 Pfot055dpwOKUIXq+Bf38d+/ZjQ/pfYHw/G2WlkeKBGiB8JMWVj3l7QN86snRH72Ey WFIo2jrABweQ0ClNUjK+KgvuufrSI7lf7UDeuy1o= Date: Sat, 28 Nov 2020 09:05:00 +0100 From: Greg Kroah-Hartman To: Manivannan Sadhasivam Cc: Loic Poulain , Hemant Kumar , Bhaumik Bhatt , linux-arm-msm , open list , Jeffrey Hugo , Network Development , skhan@linuxfoundation.org Subject: Re: [PATCH v12 1/5] bus: mhi: core: Add helper API to return number of free TREs Message-ID: References: <1605566782-38013-1-git-send-email-hemantk@codeaurora.org> <1605566782-38013-2-git-send-email-hemantk@codeaurora.org> <20201128062946.GL3077@thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201128062946.GL3077@thinkpad> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Nov 28, 2020 at 11:59:46AM +0530, Manivannan Sadhasivam wrote: > On Wed, Nov 18, 2020 at 10:32:45AM +0100, Loic Poulain wrote: > > On Mon, 16 Nov 2020 at 23:46, Hemant Kumar wrote: > > > > > > Introduce mhi_get_free_desc_count() 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 > > > Reviewed-by: Jeffrey Hugo > > > Reviewed-by: Manivannan Sadhasivam > > > > In case this series get new comments to address, I would suggest > > merging that patch in mhi-next separately so that other drivers can > > start benefiting this function (I would like to use it in mhi-net). > > > > Greg doesn't like that. He asked me to pick APIs only when there an in-tree > consumer available. If someone wants to use it, then yes, by all means merge it. I can't just take new apis without any user. thanks, greg k-h