[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 5/7] usb-smartcard-reader: Properly NAK interrupt ep
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH 5/7] usb-smartcard-reader: Properly NAK interrupt eps when we've no events |
Date: |
Wed, 21 Nov 2012 15:00:02 +0100 |
From: Hans de Goede <address@hidden>
When we've no data to return from the interrupt endpoint, return NAK rather
then a 0 length packet.
CC: Alon Levy <address@hidden>
Signed-off-by: Hans de Goede <address@hidden>
Signed-off-by: Gerd Hoffmann <address@hidden>
---
hw/usb/dev-smartcard-reader.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/hw/usb/dev-smartcard-reader.c b/hw/usb/dev-smartcard-reader.c
index 190fcd6..de955b7 100644
--- a/hw/usb/dev-smartcard-reader.c
+++ b/hw/usb/dev-smartcard-reader.c
@@ -1002,6 +1002,8 @@ static void ccid_handle_data(USBDevice *dev, USBPacket *p)
"handle_data: int_in: notify_slot_change %X, "
"requested len %zd\n",
s->bmSlotICCState, p->iov.size);
+ } else {
+ p->status = USB_RET_NAK;
}
break;
default:
--
1.7.1
- [Qemu-devel] [PULL for-1.3 0/7] usb patch queue, Gerd Hoffmann, 2012/11/21
- [Qemu-devel] [PATCH 2/7] uhci: Don't allow the guest to set port-enabled when there is no dev connected, Gerd Hoffmann, 2012/11/21
- [Qemu-devel] [PATCH 7/7] usb-redir: Don't handle interrupt output packets async, Gerd Hoffmann, 2012/11/21
- [Qemu-devel] [PATCH 6/7] usb-redir: Split usb_handle_interrupt_data into separate in/out functions, Gerd Hoffmann, 2012/11/21
- [Qemu-devel] [PATCH 5/7] usb-smartcard-reader: Properly NAK interrupt eps when we've no events,
Gerd Hoffmann <=
- [Qemu-devel] [PATCH 1/7] uhci: Add a completions_only flag for async completions, Gerd Hoffmann, 2012/11/21
- [Qemu-devel] [PATCH 4/7] usb-bt: Return NAK instead of STALL when interrupt ep has no data, Gerd Hoffmann, 2012/11/21
- [Qemu-devel] [PATCH 3/7] uhci: Fix double unlink, Gerd Hoffmann, 2012/11/21
- Re: [Qemu-devel] [PULL for-1.3 0/7] usb patch queue, Anthony Liguori, 2012/11/26