[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 3/7] uhci: invalidate queue on device address change
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH 3/7] uhci: invalidate queue on device address changes |
Date: |
Tue, 18 Feb 2014 16:50:50 +0100 |
Signed-off-by: Gerd Hoffmann <address@hidden>
---
hw/usb/hcd-uhci.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hw/usb/hcd-uhci.c b/hw/usb/hcd-uhci.c
index ad814b5..0820244 100644
--- a/hw/usb/hcd-uhci.c
+++ b/hw/usb/hcd-uhci.c
@@ -252,9 +252,11 @@ static bool uhci_queue_verify(UHCIQueue *queue, uint32_t
qh_addr, UHCI_TD *td,
uint32_t td_addr, bool queuing)
{
UHCIAsync *first = QTAILQ_FIRST(&queue->asyncs);
+ uint32_t queue_token_addr = (queue->token >> 8) & 0x7f;
return queue->qh_addr == qh_addr &&
queue->token == uhci_queue_token(td) &&
+ queue_token_addr == queue->ep->dev->addr &&
(queuing || !(td->ctrl & TD_CTRL_ACTIVE) || first == NULL ||
first->td_addr == td_addr);
}
--
1.8.3.1
- [Qemu-devel] [PULL 0/7] usb patch queue, Gerd Hoffmann, 2014/02/18
- [Qemu-devel] [PATCH 4/7] xhci iso: fix time calculation, Gerd Hoffmann, 2014/02/18
- [Qemu-devel] [PATCH 2/7] xhci: fix overflow in usb_xhci_post_load, Gerd Hoffmann, 2014/02/18
- [Qemu-devel] [PATCH 7/7] xhci: use DPRINTF() instead of fprintf(stderr, ...), Gerd Hoffmann, 2014/02/18
- [Qemu-devel] [PATCH 1/7] usb: Remove magic constants from device bmAttributes, Gerd Hoffmann, 2014/02/18
- [Qemu-devel] [PATCH 3/7] uhci: invalidate queue on device address changes,
Gerd Hoffmann <=
- [Qemu-devel] [PATCH 5/7] xhci iso: allow for some latency, Gerd Hoffmann, 2014/02/18
- [Qemu-devel] [PATCH 6/7] xhci: switch debug printf to tracepoint, Gerd Hoffmann, 2014/02/18
- Re: [Qemu-devel] [PULL 0/7] usb patch queue, Peter Maydell, 2014/02/20