]> git.proxmox.com Git - mirror_qemu.git/commitdiff
hw/usb-ohci.c: Ignore writes to HcPeriodCurrentED register
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 7 Jun 2011 19:02:29 +0000 (20:02 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 14 Jun 2011 10:56:50 +0000 (12:56 +0200)
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>
hw/usb-ohci.c

index 401045a28f9ffce60a4d399a932f3931ca3afb3e..ab774347f3582a4a018e7b6312a3f8522b1282bc 100644 (file)
@@ -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;