From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37873) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkpN8-0002mP-MI for qemu-devel@nongnu.org; Thu, 15 May 2014 02:42:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkpN2-00067T-Bz for qemu-devel@nongnu.org; Thu, 15 May 2014 02:42:30 -0400 Message-ID: <1400136137.2922.16.camel@nilsson.home.kraxel.org> From: Gerd Hoffmann Date: Thu, 15 May 2014 08:42:17 +0200 In-Reply-To: <20140514200030.E7E842F456@mono.eik.bme.hu> References: <20140514200030.E7E842F456@mono.eik.bme.hu> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v3] serial-pci: Set prog interface field of pci config to 16550 compatible List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: BALATON Zoltan Cc: qemu-trivial@nongnu.org, Paolo Bonzini , Michael Tokarev , qemu-devel@nongnu.org, "Michael S. Tsirkin" On Do, 2014-02-27 at 02:05 +0100, BALATON Zoltan wrote: ^^^^^^^^^^ Looks like your clock is _way_ off. > + if (!pci->compat) { > + pci->dev.config[PCI_CLASS_PROG] = 0x02; /* 16550 compatible */ > + } > static Property serial_pci_properties[] = { > DEFINE_PROP_CHR("chardev", PCISerialState, state.chr), > + DEFINE_PROP_UINT8("compat", PCISerialState, compat, 0), > DEFINE_PROP_END_OF_LIST(), > }; > + {\ > + .driver = "pci-serial",\ > + .property = "compat",\ > + .value = stringify(1),\ > + },\ Reviewed-by: Gerd Hoffmann mst, do you take that through the pci tree? cheers, Gerd