Blame 0001-hw-usb-musb.c-Don-t-misuse-usb_packet_complete.patch
|
Hans de Goede |
3f1f29 |
From 5b1a8791870cbb83cce780be54da6029be4126a4 Mon Sep 17 00:00:00 2001
|
|
Hans de Goede |
3f1f29 |
From: Peter Maydell <peter.maydell@linaro.org>
|
|
Hans de Goede |
3f1f29 |
Date: Tue, 14 Jun 2011 12:24:04 +0100
|
|
Hans de Goede |
3f1f29 |
Subject: [PATCH 01/35] hw/usb-musb.c: Don't misuse usb_packet_complete()
|
|
Hans de Goede |
3f1f29 |
|
|
Hans de Goede |
3f1f29 |
In musb_packet() handle final processing of non-asynchronous
|
|
Hans de Goede |
3f1f29 |
USB packets by directly calling musb_schedule_cb() rather than
|
|
Hans de Goede |
3f1f29 |
going through usb_packet_complete(). The latter will trigger
|
|
Hans de Goede |
3f1f29 |
an assertion because the packet doesn't belong to a device.
|
|
Hans de Goede |
3f1f29 |
|
|
Hans de Goede |
3f1f29 |
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
|
|
Hans de Goede |
3f1f29 |
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
|
Hans de Goede |
3f1f29 |
---
|
|
Hans de Goede |
3f1f29 |
hw/usb-musb.c | 2 +-
|
|
Hans de Goede |
3f1f29 |
1 files changed, 1 insertions(+), 1 deletions(-)
|
|
Hans de Goede |
3f1f29 |
|
|
Hans de Goede |
3f1f29 |
diff --git a/hw/usb-musb.c b/hw/usb-musb.c
|
|
Hans de Goede |
3f1f29 |
index 21f35afa..d15971f 100644
|
|
Hans de Goede |
3f1f29 |
--- a/hw/usb-musb.c
|
|
Hans de Goede |
3f1f29 |
+++ b/hw/usb-musb.c
|
|
Hans de Goede |
3f1f29 |
@@ -616,7 +616,7 @@ static void musb_packet(MUSBState *s, MUSBEndPoint *ep,
|
|
Hans de Goede |
3f1f29 |
}
|
|
Hans de Goede |
3f1f29 |
|
|
Hans de Goede |
3f1f29 |
ep->status[dir] = ret;
|
|
Hans de Goede |
3f1f29 |
- usb_packet_complete(s->port.dev, &ep->packey[dir].p);
|
|
Hans de Goede |
3f1f29 |
+ musb_schedule_cb(s->port.dev, &ep->packey[dir].p);
|
|
Hans de Goede |
3f1f29 |
}
|
|
Hans de Goede |
3f1f29 |
|
|
Hans de Goede |
3f1f29 |
static void musb_tx_packet_complete(USBPacket *packey, void *opaque)
|
|
Hans de Goede |
3f1f29 |
--
|
|
Hans de Goede |
3f1f29 |
1.7.5.1
|
|
Hans de Goede |
3f1f29 |
|