Received: from [140.186.70.92] (port=35391 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OTJwx-00061T-J9 for qemu-devel@nongnu.org; Mon, 28 Jun 2010 15:25:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OTJwv-0003zN-Mi for qemu-devel@nongnu.org; Mon, 28 Jun 2010 15:24:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:64439) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTJwv-0003zD-Fu for qemu-devel@nongnu.org; Mon, 28 Jun 2010 15:24:57 -0400 From: Juan Quintela In-Reply-To: <1277213602-5046-1-git-send-email-zltjiangshi@gmail.com> (Huacai Chen's message of "Tue, 22 Jun 2010 21:33:22 +0800") References: <1277213602-5046-1-git-send-email-zltjiangshi@gmail.com> Date: Mon, 28 Jun 2010 21:24:44 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [Qemu-devel] Re: [PATCH v5 4/6] MIPS: Initial support of VIA USB controller used by fulong mini pc List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Huacai Chen Cc: blauwirbel@gmail.com, yamahata@valinux.co.jp, qemu-devel@nongnu.org, aurelien@aurel32.net Huacai Chen wrote: > Signed-off-by: Huacai Chen > --- > hw/usb-uhci.c | 29 +++++++++++++++++++++++++++++ > hw/usb-uhci.h | 1 + > 2 files changed, 30 insertions(+), 0 deletions(-) > > diff --git a/hw/usb-uhci.c b/hw/usb-uhci.c > index 624d55b..accfe2e 100644 > --- a/hw/usb-uhci.c > +++ b/hw/usb-uhci.c > @@ -1149,6 +1149,25 @@ static int usb_uhci_piix4_initfn(PCIDevice *dev) > > pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_INTEL); > pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_INTEL_82371AB_2); > + pci_set_byte(pci_conf + PCI_LATENCY_TIMER, 0x16); > + > + /* USB misc control 1/2 */ > + pci_set_long(pci_conf + 0x40,0x00001000); > + /* PM capability */ > + pci_set_long(pci_conf + 0x80,0x00020001); > + /* USB legacy support */ > + pci_set_long(pci_conf + 0xc0,0x00002000); This looks fishy. You are adding fields to uhci_piix4 when adding via usb controller? If this fields are needed for piix4 (I don't know) they should be split in its own patch, no?