aboutsummaryrefslogtreecommitdiff
path: root/hw/usb-ohci.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2011-06-07 20:02:29 +0100
committerGerd Hoffmann <kraxel@redhat.com>2011-06-14 12:56:50 +0200
commit4b0315d7edcbcfcbb07f7935c6e879b3f49fb99e (patch)
treecae2e028562109f7a328d5debc78980342a78b8f /hw/usb-ohci.c
parent4001f22ffdd6bc890ffc58e6e1ac75443fe67c97 (diff)
downloadqemu-4b0315d7edcbcfcbb07f7935c6e879b3f49fb99e.zip
qemu-4b0315d7edcbcfcbb07f7935c6e879b3f49fb99e.tar.gz
qemu-4b0315d7edcbcfcbb07f7935c6e879b3f49fb99e.tar.bz2
hw/usb-ohci.c: Ignore writes to HcPeriodCurrentED register
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 <peter.maydell@linaro.org> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb-ohci.c')
-rw-r--r--hw/usb-ohci.c4
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;