qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paul Bolle <pebolle@tiscali.nl>
To: Max Krasnyansky <maxk@qualcomm.com>
Cc: Anthony Liguori <aliguori@us.ibm.com>,
	Mark Burkley <qemu@emutex.com>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] Re: [PATCH] usb-linux: return USB_RET_STALL on -EPIPE
Date: Tue, 13 Oct 2009 20:53:06 +0200	[thread overview]
Message-ID: <1255459986.4712.6.camel@localhost.localdomain> (raw)
In-Reply-To: <4AD4B791.8030203@qualcomm.com>

On Tue, 2009-10-13 at 10:23 -0700, Max Krasnyansky wrote: 
> On 10/13/2009 09:22 AM, Anthony Liguori wrote:
> > A SoB is a statement of intent so if you feel you can contribute a SoB
> > is a decision for you to make.  See Documentation/SubmittingPatches in
> > Linux for more details about the ramification of DCO.
> 
> I guess I could've provided the Signed-off-by instead of Acked-by.
> In other words if you're ok with converting my Acked-By to
> Signed-off-by in the aforementioned patch then lets go ahead an do it.
> 
> I could also resend the full patch but I'm totally swamped right now and 
> might not get to doing it this week.
> 
> btw Paul you can also resend and sign off yourself and keep my ack.

I guess this patch should make everybody happy.

I've replaced the verbose commit message with (basically) a longer
version of the commit summary. A search for the summary should turn up
this thread, which will in turn point to previous steps for those
readers really interested.
--- 
usb-linux: return USB_RET_STALL on -EPIPE

If -EPIPE is returned to an asynchronous IN completion async_complete()
should return USB_RET_STALL.

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Cc: Mark Burkley <qemu@emutex.com>
Signed-off-by: Max Krasnyansky <maxk@qualcomm.com>
---
 usb-linux.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/usb-linux.c b/usb-linux.c
index 9e5d9c4..d712134 100644
--- a/usb-linux.c
+++ b/usb-linux.c
@@ -275,7 +275,9 @@ static void async_complete(void *opaque)
 
             case -EPIPE:
                 set_halt(s, p->devep);
-                /* fall through */
+		p->len = USB_RET_STALL;
+		break;
+
             default:
                 p->len = USB_RET_NAK;
                 break;
-- 
1.6.5.rc2

      reply	other threads:[~2009-10-13 18:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-13 11:40 [Qemu-devel] [PATCH] usb-linux: return USB_RET_STALL on -EPIPE Paul Bolle
2009-10-13 13:46 ` [Qemu-devel] " Anthony Liguori
2009-10-13 15:52   ` Paul Bolle
2009-10-13 16:04     ` Anthony Liguori
2009-10-13 16:12       ` Paul Bolle
2009-10-13 16:22         ` Anthony Liguori
2009-10-13 17:23           ` Max Krasnyansky
2009-10-13 18:53             ` Paul Bolle [this message]

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=1255459986.4712.6.camel@localhost.localdomain \
    --to=pebolle@tiscali.nl \
    --cc=aliguori@us.ibm.com \
    --cc=maxk@qualcomm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu@emutex.com \
    /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).