From: Peter Maydell Date: Tue, 7 Jun 2011 19:02:29 +0000 (+0100) Subject: hw/usb-ohci.c: Ignore writes to HcPeriodCurrentED register X-Git-Tag: TizenStudio_2.0_p2.3~2627^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1812bc5cbd15c12a26a7a0d6ad84189375ee8bb8;p=sdk%2Femulator%2Fqemu.git 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 Signed-off-by: Gerd Hoffmann --- 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;