From: Jakub Kicinski <kuba@kernel.org>
To: Hemant Kumar <hemantk@codeaurora.org>
Cc: Loic Poulain <loic.poulain@linaro.org>,
davem@davemloft.net, netdev@vger.kernel.org,
manivannan.sadhasivam@linaro.org, eric.dumazet@gmail.com,
Jeffrey Hugo <jhugo@codeaurora.org>,
Bhaumik Bhatt <bbhatt@codeaurora.org>
Subject: Re: [PATCH v6 1/2] bus: mhi: Add mhi_queue_is_full function
Date: Fri, 23 Oct 2020 08:44:25 -0700 [thread overview]
Message-ID: <20201023084425.22bbf069@kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net> (raw)
In-Reply-To: <8c384f6a-df21-1a39-f586-6077da373c04@codeaurora.org>
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 dir)
> > +{
> > + struct mhi_controller *mhi_cntrl = mhi_dev->mhi_cntrl;
> > + struct mhi_chan *mhi_chan = (dir == DMA_TO_DEVICE) ?
> > + mhi_dev->ul_chan : mhi_dev->dl_chan;
> > + struct mhi_ring *tre_ring = &mhi_chan->tre_ring;
> > +
> > + return mhi_is_ring_full(mhi_cntrl, tre_ring);
> > +}
> > +EXPORT_SYMBOL_GPL(mhi_queue_is_full);
> >
> i was wondering if you can make use of mhi_get_free_desc() API (pushed
> as part of MHI UCI - User Control Interface driver) here?
Let me ask you one more time. Where is this MHI UCI code you're talking
about?
linux$ git remote show linux
* remote linux
Fetch URL: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Push URL: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
HEAD branch: master
Remote branch:
master tracked
linux$ git fetch linux
linux$ git checkout linux/master
HEAD is now at f9893351acae Merge tag 'kconfig-v5.10' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
linux$ git grep mhi_get_free_desc
linux$
next prev parent reply other threads:[~2020-10-23 15:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-16 9:20 [PATCH v6 1/2] bus: mhi: Add mhi_queue_is_full function Loic Poulain
2020-10-16 9:20 ` [PATCH v6 2/3] net: Add mhi-net driver Loic Poulain
2020-10-16 18:06 ` Jakub Kicinski
2020-10-17 0:52 ` Hemant Kumar
2020-10-17 1:37 ` Jakub Kicinski
2020-10-23 3:06 ` [PATCH v6 1/2] bus: mhi: Add mhi_queue_is_full function Hemant Kumar
2020-10-23 15:44 ` Jakub Kicinski [this message]
2020-10-23 16:19 ` Jeffrey Hugo
[not found] ` <CAMZdPi_NZ5PaONpePHHFOosiuQ50R0_o3bymwzKfp2DJ37BCig@mail.gmail.com>
2020-10-23 19:24 ` Jeffrey Hugo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201023084425.22bbf069@kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net \
--to=kuba@kernel.org \
--cc=bbhatt@codeaurora.org \
--cc=davem@davemloft.net \
--cc=eric.dumazet@gmail.com \
--cc=hemantk@codeaurora.org \
--cc=jhugo@codeaurora.org \
--cc=loic.poulain@linaro.org \
--cc=manivannan.sadhasivam@linaro.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.