linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: oliver@neukum.org (Oliver Neukum)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 3/4] USB: EHCI: improve interrupt qh unlink
Date: Mon, 24 Jun 2013 14:08:51 +0200	[thread overview]
Message-ID: <2929170.B5nqr0f2QC@linux-5eaq.site> (raw)
In-Reply-To: <CACVXFVP9pUkLsHxTZS=j-jWGiOiiAyefLpAtM9PK9Hdz1S7guQ@mail.gmail.com>

On Monday 24 June 2013 19:16:43 Ming Lei wrote:
> On Mon, Jun 24, 2013 at 6:28 PM, Oliver Neukum <oliver@neukum.org> wrote:
> > On Monday 24 June 2013 17:42:04 Ming Lei wrote:
> >> This patch improves this above situation, and the qh will wait for 5
> >> milliseconds before being unlinked from hardware, if one URB is submitted
> >> during the period, the qh is move out of unlink wait list and the
> >> interrupt transfer can be scheduled immediately, not like before: the
> >> transfer is only linked to hardware until previous unlink is completed.
> >
> > It seems to me that this logic should be used only if the URB completed
> > without error.
> 
> The current completed URB with error  doesn't mean the later submitted
> URB will complete with error, so I don't think the logic is related with URB
> completion error.

But

a) it is likelier
b) the driver will start error handling

And what about the bandwidth? At least if you unlink the URB, its bandwidth
should be given back immediately.

	Regards
		Oliver

  reply	other threads:[~2013-06-24 12:08 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-24  9:42 [PATCH v2 0/4] USB: HCD/EHCI: giveback of URB in tasklet context Ming Lei
2013-06-24  9:42 ` [PATCH v2 1/4] USB: HCD: support " Ming Lei
2013-06-24 11:49   ` Ming Lei
2013-06-24 15:17   ` Alan Stern
2013-06-25 11:30     ` Ming Lei
2013-06-25 14:48       ` Alan Stern
2013-06-24  9:42 ` [PATCH v2 2/4] USB: URB documentation: claim complete() will be run with IRQs enabled Ming Lei
2013-06-24 15:18   ` Alan Stern
2013-06-24  9:42 ` [PATCH v2 3/4] USB: EHCI: improve interrupt qh unlink Ming Lei
2013-06-24 10:28   ` Oliver Neukum
2013-06-24 11:16     ` Ming Lei
2013-06-24 12:08       ` Oliver Neukum [this message]
2013-06-24 12:17         ` Ming Lei
2013-06-24 18:53   ` Alan Stern
2013-06-25 11:56     ` Ming Lei
2013-06-25 14:54       ` Alan Stern
2013-06-24  9:42 ` [PATCH v2 4/4] USB: EHCI: support running URB giveback in tasklet context Ming Lei
2013-06-24 10:24   ` Oliver Neukum
2013-06-24 12:58     ` Ming Lei
2013-06-24 13:06       ` Oliver Neukum
2013-06-24 13:14         ` Ming Lei

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=2929170.B5nqr0f2QC@linux-5eaq.site \
    --to=oliver@neukum.org \
    --cc=linux-arm-kernel@lists.infradead.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 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).