From: matwey.kornilov@gmail.com
To: stern@rowland.harvard.edu, Bin Liu <b-liu@ti.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-usb@vger.kernel.org (open list:MUSB MULTIPOINT HIGH SPEED
DUAL-ROLE CONTROLLER), linux-kernel@vger.kernel.org (open list)
Cc: "Matwey V. Kornilov" <matwey@sai.msu.ru>,
linux-usb@vger.kernel.org (open list:MUSB MULTIPOINT HIGH SPEED
DUAL-ROLE CONTROLLER), linux-kernel@vger.kernel.org (open list)
Subject: [PATCH v3 4/6] usb: musb: Rename musb_start_urb() to musb_start_next_urb()
Date: Tue, 21 Apr 2020 16:30:17 +0300 [thread overview]
Message-ID: <20200421133019.27167-5-matwey.kornilov@gmail.com> (raw)
In-Reply-To: <20200421133019.27167-1-matwey.kornilov@gmail.com>
From: "Matwey V. Kornilov" <matwey@sai.msu.ru>
In the following commit we introduce new musb_start_urb() function
which will be able to start arbitrary urb. In order to have
intuitive function names we rename musb_start_urb() to
musb_start_next_urb().
Signed-off-by: Matwey V. Kornilov <matwey@sai.msu.ru>
---
drivers/usb/musb/musb_host.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c
index 28d6576b6d8d..c3c9aa8ba973 100644
--- a/drivers/usb/musb/musb_host.c
+++ b/drivers/usb/musb/musb_host.c
@@ -213,7 +213,7 @@ static struct musb_qh *musb_ep_get_qh(struct musb_hw_ep *ep, int is_in)
* Context: controller locked, irqs blocked
*/
static void
-musb_start_urb(struct musb *musb, int is_in, struct musb_qh *qh)
+musb_start_next_urb(struct musb *musb, int is_in, struct musb_qh *qh)
{
u32 len;
void __iomem *mbase = musb->mregs;
@@ -385,7 +385,7 @@ static void musb_advance_schedule(struct musb *musb, struct urb *urb,
if (qh != NULL && qh->is_ready) {
musb_dbg(musb, "... next ep%d %cX urb %p",
hw_ep->epnum, is_in ? 'R' : 'T', next_urb(qh));
- musb_start_urb(musb, is_in, qh);
+ musb_start_next_urb(musb, is_in, qh);
}
}
@@ -975,7 +975,7 @@ static void musb_bulk_nak_timeout(struct musb *musb, struct musb_hw_ep *ep,
}
if (next_qh)
- musb_start_urb(musb, is_in, next_qh);
+ musb_start_next_urb(musb, is_in, next_qh);
}
}
@@ -2108,7 +2108,7 @@ static int musb_schedule(
qh->hw_ep = hw_ep;
qh->hep->hcpriv = qh;
if (idle)
- musb_start_urb(musb, is_in, qh);
+ musb_start_next_urb(musb, is_in, qh);
return 0;
}
--
2.25.0
next prev parent reply other threads:[~2020-04-21 13:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-21 13:30 [PATCH v3 0/6] musb: Improve performance for hub-attached webcams matwey.kornilov
2020-04-21 13:30 ` [PATCH v3 1/6] usb: musb: Use USB_DIR_IN when calling musb_advance_schedule() matwey.kornilov
2020-04-21 13:30 ` [PATCH v3 2/6] usb: musb: Introduce musb_qh_empty() helper function matwey.kornilov
2020-04-21 13:30 ` [PATCH v3 3/6] usb: musb: Introduce musb_qh_free() " matwey.kornilov
2020-04-21 13:30 ` matwey.kornilov [this message]
2020-04-21 13:30 ` [PATCH v3 5/6] usb: musb: Introduce musb_start_urb() matwey.kornilov
2020-04-21 13:30 ` [PATCH v3 6/6] usb: musb: Decrease URB starting latency in musb_advance_schedule() matwey.kornilov
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=20200421133019.27167-5-matwey.kornilov@gmail.com \
--to=matwey.kornilov@gmail.com \
--cc=b-liu@ti.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=matwey@sai.msu.ru \
--cc=stern@rowland.harvard.edu \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).