get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/814511/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 814511,
    "url": "http://patchwork.ozlabs.org/api/patches/814511/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/5298dbefd8b22cce599b96979e752c77e32bbad7.1505570561.git.balaton@eik.bme.hu/",
    "project": {
        "id": 14,
        "url": "http://patchwork.ozlabs.org/api/projects/14/?format=api",
        "name": "QEMU Development",
        "link_name": "qemu-devel",
        "list_id": "qemu-devel.nongnu.org",
        "list_email": "qemu-devel@nongnu.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<5298dbefd8b22cce599b96979e752c77e32bbad7.1505570561.git.balaton@eik.bme.hu>",
    "list_archive_url": null,
    "date": "2017-09-16T14:02:41",
    "name": "[v2,2/4] ehci: Add ppc4xx-ehci for the USB 2.0 controller in embedded PPC SoCs",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "d6236ce4bc81791b08718200e8ffdf1653e1a12e",
    "submitter": {
        "id": 16148,
        "url": "http://patchwork.ozlabs.org/api/people/16148/?format=api",
        "name": "BALATON Zoltan",
        "email": "balaton@eik.bme.hu"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/5298dbefd8b22cce599b96979e752c77e32bbad7.1505570561.git.balaton@eik.bme.hu/mbox/",
    "series": [
        {
            "id": 3444,
            "url": "http://patchwork.ozlabs.org/api/series/3444/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=3444",
            "date": "2017-09-16T14:02:41",
            "name": "Sam460ex emulation",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/3444/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/814511/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/814511/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Authentication-Results": "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)",
        "Received": [
            "from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xvZ2K68svz9sPk\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSun, 17 Sep 2017 00:11:37 +1000 (AEST)",
            "from localhost ([::1]:57443 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1dtDol-00005E-Pi\n\tfor incoming@patchwork.ozlabs.org; Sat, 16 Sep 2017 10:11:35 -0400",
            "from eggs.gnu.org ([2001:4830:134:3::10]:42170)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <balaton@eik.bme.hu>) id 1dtDlp-0006fa-Rx\n\tfor qemu-devel@nongnu.org; Sat, 16 Sep 2017 10:08:35 -0400",
            "from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <balaton@eik.bme.hu>) id 1dtDln-0003Tj-Uv\n\tfor qemu-devel@nongnu.org; Sat, 16 Sep 2017 10:08:33 -0400",
            "from zero.eik.bme.hu ([2001:738:2001:2001::2001]:41147)\n\tby eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)\n\t(Exim 4.71) (envelope-from <balaton@eik.bme.hu>) id 1dtDln-0003Sp-Lb\n\tfor qemu-devel@nongnu.org; Sat, 16 Sep 2017 10:08:31 -0400",
            "from zero.eik.bme.hu (blah.eik.bme.hu [152.66.115.182])\n\tby localhost (Postfix) with SMTP id A0EED7456B6;\n\tSat, 16 Sep 2017 16:08:16 +0200 (CEST)",
            "by zero.eik.bme.hu (Postfix, from userid 432)\n\tid EADFB74569F; Sat, 16 Sep 2017 16:08:15 +0200 (CEST)"
        ],
        "Message-Id": "<5298dbefd8b22cce599b96979e752c77e32bbad7.1505570561.git.balaton@eik.bme.hu>",
        "In-Reply-To": "<cover.1505570561.git.balaton@eik.bme.hu>",
        "References": "<cover.1505570561.git.balaton@eik.bme.hu>",
        "From": "BALATON Zoltan <balaton@eik.bme.hu>",
        "Date": "Sat, 16 Sep 2017 16:02:41 +0200",
        "To": "qemu-devel@nongnu.org,\n    qemu-ppc@nongnu.org",
        "X-detected-operating-system": "by eggs.gnu.org: Genre and OS details not\n\trecognized.",
        "X-Received-From": "2001:738:2001:2001::2001",
        "Subject": "[Qemu-devel] [PATCH v2 2/4] ehci: Add ppc4xx-ehci for the USB 2.0\n\tcontroller in embedded PPC SoCs",
        "X-BeenThere": "qemu-devel@nongnu.org",
        "X-Mailman-Version": "2.1.21",
        "Precedence": "list",
        "List-Id": "<qemu-devel.nongnu.org>",
        "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.nongnu.org/archive/html/qemu-devel/>",
        "List-Post": "<mailto:qemu-devel@nongnu.org>",
        "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>",
        "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>",
        "Cc": "Francois Revol <revol@free.fr>, Gerd Hoffmann <kraxel@redhat.com>,\n\tAlexander Graf <agraf@suse.de>,\n\tDavid Gibson <david@gibson.dropbear.id.au>",
        "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org",
        "Sender": "\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>"
    },
    "content": "Some PPC SoCs have an EHCI with OHCI companion USB controller. Add a\nnew type for this similar to types used for other embedded SoCs.\n\nSigned-off-by: BALATON Zoltan <balaton@eik.bme.hu>\nReviewed-by: David Gibson <david@gibson.dropbear.id.au>\nReviewed-by: Gerd Hoffmann <kraxel@redhat.com>\n---\nv2: Added R-b from: http://lists.nongnu.org/archive/html/qemu-ppc/2017-08/msg00345.html\n\n hw/usb/hcd-ehci-sysbus.c | 25 +++++++++++++++++++++++++\n hw/usb/hcd-ehci.h        |  1 +\n 2 files changed, 26 insertions(+)",
    "diff": "diff --git a/hw/usb/hcd-ehci-sysbus.c b/hw/usb/hcd-ehci-sysbus.c\nindex 6c20604..3b83beb 100644\n--- a/hw/usb/hcd-ehci-sysbus.c\n+++ b/hw/usb/hcd-ehci-sysbus.c\n@@ -142,6 +142,30 @@ static const TypeInfo ehci_tegra2_type_info = {\n     .class_init    = ehci_tegra2_class_init,\n };\n \n+static void ehci_ppc4xx_init(Object *o)\n+{\n+    EHCISysBusState *s = SYS_BUS_EHCI(o);\n+\n+    s->ehci.companion_enable = true;\n+}\n+\n+static void ehci_ppc4xx_class_init(ObjectClass *oc, void *data)\n+{\n+    SysBusEHCIClass *sec = SYS_BUS_EHCI_CLASS(oc);\n+    DeviceClass *dc = DEVICE_CLASS(oc);\n+\n+    sec->capsbase = 0x0;\n+    sec->opregbase = 0x10;\n+    set_bit(DEVICE_CATEGORY_USB, dc->categories);\n+}\n+\n+static const TypeInfo ehci_ppc4xx_type_info = {\n+    .name          = TYPE_PPC4xx_EHCI,\n+    .parent        = TYPE_SYS_BUS_EHCI,\n+    .class_init    = ehci_ppc4xx_class_init,\n+    .instance_init = ehci_ppc4xx_init,\n+};\n+\n /*\n  * Faraday FUSBH200 USB 2.0 EHCI\n  */\n@@ -224,6 +248,7 @@ static void ehci_sysbus_register_types(void)\n     type_register_static(&ehci_xlnx_type_info);\n     type_register_static(&ehci_exynos4210_type_info);\n     type_register_static(&ehci_tegra2_type_info);\n+    type_register_static(&ehci_ppc4xx_type_info);\n     type_register_static(&ehci_fusbh200_type_info);\n }\n \ndiff --git a/hw/usb/hcd-ehci.h b/hw/usb/hcd-ehci.h\nindex 821f1de..0bc364b 100644\n--- a/hw/usb/hcd-ehci.h\n+++ b/hw/usb/hcd-ehci.h\n@@ -344,6 +344,7 @@ typedef struct EHCIPCIState {\n #define TYPE_SYS_BUS_EHCI \"sysbus-ehci-usb\"\n #define TYPE_EXYNOS4210_EHCI \"exynos4210-ehci-usb\"\n #define TYPE_TEGRA2_EHCI \"tegra2-ehci-usb\"\n+#define TYPE_PPC4xx_EHCI \"ppc4xx-ehci-usb\"\n #define TYPE_FUSBH200_EHCI \"fusbh200-ehci-usb\"\n \n #define SYS_BUS_EHCI(obj) \\\n",
    "prefixes": [
        "v2",
        "2/4"
    ]
}