qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: BALATON Zoltan <balaton@eik.bme.hu>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] serial-pci: Set prog interface field of pci config to 16550 compatible
Date: Thu, 27 Feb 2014 02:05:05 +0100	[thread overview]
Message-ID: <20140227011300.8CD451983B@mono.eik.bme.hu> (raw)

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
---
 hw/char/serial-pci.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/char/serial-pci.c b/hw/char/serial-pci.c
index 991c99f..e662b77 100644
--- a/hw/char/serial-pci.c
+++ b/hw/char/serial-pci.c
@@ -60,6 +60,7 @@ static int serial_pci_init(PCIDevice *dev)
         return -1;
     }
 
+    pci->dev.config[PCI_CLASS_PROG] = 0x02; /* 16550 compatible */
     pci->dev.config[PCI_INTERRUPT_PIN] = 0x01;
     s->irq = pci_allocate_irq(&pci->dev);
 
-- 
1.8.1.5

             reply	other threads:[~2014-02-27  1:13 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-27  1:05 BALATON Zoltan [this message]
2014-03-10 18:40 ` [Qemu-devel] [PATCH] serial-pci: Set prog interface field of pci config to 16550 compatible BALATON Zoltan
2014-03-14 16:21   ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev
2014-03-14 17:44     ` BALATON Zoltan
2014-03-14 17:57       ` BALATON Zoltan
2014-03-17 12:32         ` Gerd Hoffmann
2014-03-20  9:58           ` BALATON Zoltan
2014-03-21  8:43             ` Gerd Hoffmann
2014-03-21  9:10               ` BALATON Zoltan
2014-03-20 15:42   ` Michael Tokarev
2014-03-20 15:51     ` Paolo Bonzini
2014-03-20 16:01       ` BALATON Zoltan
2014-03-20 16:32         ` Paolo Bonzini
2014-03-20 16:58           ` BALATON Zoltan
2014-03-20 17:35             ` Paolo Bonzini
2014-03-21  8:19       ` Michael Tokarev

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=20140227011300.8CD451983B@mono.eik.bme.hu \
    --to=balaton@eik.bme.hu \
    --cc=qemu-devel@nongnu.org \
    /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).