Patchwork [3/7] xhci: add xhci_cap_write

login
register
mail settings
Submitter Gerd Hoffmann
Date April 16, 2013, 10:13 a.m.
Message ID <1366107190-30853-4-git-send-email-kraxel@redhat.com>
Download mbox | patch
Permalink /patch/236903/
State New
Headers show

Comments

Gerd Hoffmann - April 16, 2013, 10:13 a.m.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 hw/usb/hcd-xhci.c |    7 +++++++
 1 file changed, 7 insertions(+)

Patch

diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c
index c0dbc54..7f740d9 100644
--- a/hw/usb/hcd-xhci.c
+++ b/hw/usb/hcd-xhci.c
@@ -3079,8 +3079,15 @@  static void xhci_doorbell_write(void *ptr, hwaddr reg,
     }
 }
 
+static void xhci_cap_write(void *opaque, hwaddr addr, uint64_t val,
+                           unsigned width)
+{
+    /* nothing */
+}
+
 static const MemoryRegionOps xhci_cap_ops = {
     .read = xhci_cap_read,
+    .write = xhci_cap_write,
     .valid.min_access_size = 1,
     .valid.max_access_size = 4,
     .impl.min_access_size = 4,