From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:49273) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWRRd-0007H7-DS for qemu-devel@nongnu.org; Tue, 14 Jun 2011 07:06:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QWRRW-0003uq-2c for qemu-devel@nongnu.org; Tue, 14 Jun 2011 07:06:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:28296) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWRRV-0003ub-KJ for qemu-devel@nongnu.org; Tue, 14 Jun 2011 07:05:57 -0400 From: Gerd Hoffmann Date: Tue, 14 Jun 2011 13:05:50 +0200 Message-Id: <1308049552-5744-2-git-send-email-kraxel@redhat.com> In-Reply-To: <1308049552-5744-1-git-send-email-kraxel@redhat.com> References: <1308049552-5744-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 32/34] hw/usb-ohci.c: Ignore writes to HcPeriodCurrentED register List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , Gerd Hoffmann From: Peter Maydell HcPeriodCurrentED is read-only, but Linux writes to it anyway; silently ignore this rather than printing a warning message. (Specifically, drivers/usb/host/ohci-hub.c:ohci_rh_resume() writes a 0, in at least kernels 2.6.25 through 2.6.39.) Signed-off-by: Peter Maydell Signed-off-by: Gerd Hoffmann --- hw/usb-ohci.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/hw/usb-ohci.c b/hw/usb-ohci.c index 401045a..ab77434 100644 --- a/hw/usb-ohci.c +++ b/hw/usb-ohci.c @@ -1575,6 +1575,10 @@ static void ohci_mem_write(void *ptr, target_phys_addr_t addr, uint32_t val) ohci->hcca = val & OHCI_HCCA_MASK; break; + case 7: /* HcPeriodCurrentED */ + /* Ignore writes to this read-only register, Linux does them */ + break; + case 8: /* HcControlHeadED */ ohci->ctrl_head = val & OHCI_EDPTR_MASK; break; -- 1.7.1