[PATCH v6 0/7] Make hcd-xhci independent of pci hooks

Sai Pavan Boddu posted 7 patches 2 weeks ago
Test docker-quick@centos7 failed
Test docker-mingw@fedora failed
Test checkpatch failed
Test FreeBSD failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/1600256469-13130-1-git-send-email-sai.pavan.boddu@xilinx.com
Maintainers: Gerd Hoffmann <kraxel@redhat.com>, Peter Maydell <peter.maydell@linaro.org>, "Edgar E. Iglesias" <edgar.iglesias@gmail.com>, Alistair Francis <alistair@alistair23.me>
hw/arm/xlnx-versal-virt.c                    |  55 ++
hw/arm/xlnx-versal.c                         |  34 ++
hw/misc/meson.build                          |   1 +
hw/misc/xlnx-versal-usb2-ctrl-regs.c         | 222 +++++++++
hw/usb/Kconfig                               |  17 +
hw/usb/hcd-dwc3.c                            | 717 +++++++++++++++++++++++++++
hw/usb/hcd-xhci-nec.c                        |  18 +-
hw/usb/hcd-xhci-pci.c                        | 244 +++++++++
hw/usb/hcd-xhci-pci.h                        |  45 ++
hw/usb/hcd-xhci-sysbus.c                     |  99 ++++
hw/usb/hcd-xhci-sysbus.h                     |  32 ++
hw/usb/hcd-xhci.c                            | 260 ++--------
hw/usb/hcd-xhci.h                            |  22 +-
hw/usb/meson.build                           |   3 +
include/hw/arm/xlnx-versal.h                 |  12 +
include/hw/misc/xlnx-versal-usb2-ctrl-regs.h |  45 ++
include/hw/usb/hcd-dwc3.h                    |  55 ++
17 files changed, 1656 insertions(+), 225 deletions(-)
create mode 100644 hw/misc/xlnx-versal-usb2-ctrl-regs.c
create mode 100644 hw/usb/hcd-dwc3.c
create mode 100644 hw/usb/hcd-xhci-pci.c
create mode 100644 hw/usb/hcd-xhci-pci.h
create mode 100644 hw/usb/hcd-xhci-sysbus.c
create mode 100644 hw/usb/hcd-xhci-sysbus.h
create mode 100644 include/hw/misc/xlnx-versal-usb2-ctrl-regs.h
create mode 100644 include/hw/usb/hcd-dwc3.h

[PATCH v6 0/7] Make hcd-xhci independent of pci hooks

Posted by Sai Pavan Boddu 2 weeks ago
This patch series attempts to make 'hcd-xhci' an independent model so
it can be used by both pci and system-bus interface.

Changes for V2:
    Make XHCIState non-qom
    Use container_of functions for retriving pci device instance
    Initialize the AddressSpace pointer in PATCH 1/3 itself
Changes for V3:
    Convert XHCIState to TYPE_DEVICE and register as a child of XHCIPciState.
Changes for V4:
    Add DWC3 usb controller
    Add versal, usb2-reg module
    Connect sysbus xhci to versal virt board
Changes for V5:
    Add extra info about dwc3 and usb2_regs devices in commit messages
    Use only one irq for versal usb controller
    Mark the unimplemented registers in dwc3 controller
    Rebase the patches over master.
    Move few mispalced contents from patch 2/7 to 3/7.
    Fix the author names in the header.
    Move the inclusion of "sysemu/dma.h" from patch 1/7 to 3/7
Changes for V6:
    Fixed style issue in patch 7/7
    Renamed usb2_reg model to VersalUsb2CtrlReg
    Fixed author in headers


Sai Pavan Boddu (5):
  usb/hcd-xhci: Make dma read/writes hooks pci free
  usb/hcd-xhci: Move qemu-xhci device to hcd-xhci-pci.c
  usb/hcd-xhci: Split pci wrapper for xhci base model
  usb: hcd-xhci-sysbus: Attach xhci to sysbus device
  misc: Add versal-usb2-ctrl-regs module

Vikram Garhwal (2):
  usb: Add DWC3 model
  Versal: Connect DWC3 controller with virt-versal

 hw/arm/xlnx-versal-virt.c                    |  55 ++
 hw/arm/xlnx-versal.c                         |  34 ++
 hw/misc/meson.build                          |   1 +
 hw/misc/xlnx-versal-usb2-ctrl-regs.c         | 222 +++++++++
 hw/usb/Kconfig                               |  17 +
 hw/usb/hcd-dwc3.c                            | 717 +++++++++++++++++++++++++++
 hw/usb/hcd-xhci-nec.c                        |  18 +-
 hw/usb/hcd-xhci-pci.c                        | 244 +++++++++
 hw/usb/hcd-xhci-pci.h                        |  45 ++
 hw/usb/hcd-xhci-sysbus.c                     |  99 ++++
 hw/usb/hcd-xhci-sysbus.h                     |  32 ++
 hw/usb/hcd-xhci.c                            | 260 ++--------
 hw/usb/hcd-xhci.h                            |  22 +-
 hw/usb/meson.build                           |   3 +
 include/hw/arm/xlnx-versal.h                 |  12 +
 include/hw/misc/xlnx-versal-usb2-ctrl-regs.h |  45 ++
 include/hw/usb/hcd-dwc3.h                    |  55 ++
 17 files changed, 1656 insertions(+), 225 deletions(-)
 create mode 100644 hw/misc/xlnx-versal-usb2-ctrl-regs.c
 create mode 100644 hw/usb/hcd-dwc3.c
 create mode 100644 hw/usb/hcd-xhci-pci.c
 create mode 100644 hw/usb/hcd-xhci-pci.h
 create mode 100644 hw/usb/hcd-xhci-sysbus.c
 create mode 100644 hw/usb/hcd-xhci-sysbus.h
 create mode 100644 include/hw/misc/xlnx-versal-usb2-ctrl-regs.h
 create mode 100644 include/hw/usb/hcd-dwc3.h

-- 
2.7.4