* [Qemu-devel] [PATCH 1/1] dev-serial: report when data are ready to be read
@ 2014-12-18 16:23 Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 0 replies; only message in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2014-12-18 16:23 UTC (permalink / raw)
To: qemu-devel; +Cc: Jean-Christophe PLAGNIOL-VILLARD
So we can pull it on software without IRQ support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
hw/usb/dev-serial.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hw/usb/dev-serial.c b/hw/usb/dev-serial.c
index 500fbb0..4c14126 100644
--- a/hw/usb/dev-serial.c
+++ b/hw/usb/dev-serial.c
@@ -321,6 +321,8 @@ static void usb_serial_handle_control(USBDevice *dev, USBPacket *p,
case DeviceInVendor | FTDI_GET_MDM_ST:
data[0] = usb_get_modem_lines(s) | 1;
data[1] = 0;
+ if (s->recv_used)
+ data[1] |= FTDI_DR;
p->actual_length = 2;
break;
case DeviceOutVendor | FTDI_SET_EVENT_CHR:
--
2.1.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-12-18 16:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-18 16:23 [Qemu-devel] [PATCH 1/1] dev-serial: report when data are ready to be read Jean-Christophe PLAGNIOL-VILLARD
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.