From patchwork Thu Nov 29 01:43:18 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [1.3] ehci-sysbus: Attach DMA context. Date: Wed, 28 Nov 2012 15:43:18 -0000 From: Peter Crosthwaite X-Patchwork-Id: 202634 Message-Id: <1354153398-13569-1-git-send-email-peter.crosthwaite@xilinx.com> To: qemu-devel@nongnu.org, kraxel@redhat.com Cc: david.holsgrove@xilinx.com, john.williams@xilinx.com, Peter Crosthwaite This was left as NULL on the initial merge due to debate on the mailing list on how to handle DMA contexts for sysbus devices. Patch 9e11908f12f92e31ea94dc2a4c962c836cba9f2a was later merged to fix OHCI. This is the, equivalent fix for sysbus EHCI. Signed-off-by: Peter Crosthwaite Tested-by: Liming Wang --- hw/usb/hcd-ehci-sysbus.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/usb/hcd-ehci-sysbus.c b/hw/usb/hcd-ehci-sysbus.c index 1584079..803df92 100644 --- a/hw/usb/hcd-ehci-sysbus.c +++ b/hw/usb/hcd-ehci-sysbus.c @@ -45,6 +45,7 @@ static int usb_ehci_sysbus_initfn(SysBusDevice *dev) s->capsbase = 0x100; s->opregbase = 0x140; + s->dma = &dma_context_memory; usb_ehci_initfn(s, DEVICE(dev)); sysbus_init_irq(dev, &s->irq);