get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 807376,
    "url": "http://patchwork.ozlabs.org/api/patches/807376/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/1504055954-31545-1-git-send-email-honghui.zhang@mediatek.com/",
    "project": {
        "id": 28,
        "url": "http://patchwork.ozlabs.org/api/projects/28/?format=api",
        "name": "Linux PCI development",
        "link_name": "linux-pci",
        "list_id": "linux-pci.vger.kernel.org",
        "list_email": "linux-pci@vger.kernel.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<1504055954-31545-1-git-send-email-honghui.zhang@mediatek.com>",
    "list_archive_url": null,
    "date": "2017-08-30T01:19:14",
    "name": "PCI: mediatek: take use of PCI_NUM_INTX",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "d70eb864ce4410ce2106f7ad03e7d2c74c76526d",
    "submitter": {
        "id": 68956,
        "url": "http://patchwork.ozlabs.org/api/people/68956/?format=api",
        "name": "Honghui Zhang",
        "email": "honghui.zhang@mediatek.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-pci/patch/1504055954-31545-1-git-send-email-honghui.zhang@mediatek.com/mbox/",
    "series": [
        {
            "id": 512,
            "url": "http://patchwork.ozlabs.org/api/series/512/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=512",
            "date": "2017-08-30T01:19:14",
            "name": "PCI: mediatek: take use of PCI_NUM_INTX",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/512/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/807376/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/807376/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<linux-pci-owner@vger.kernel.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Authentication-Results": "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=linux-pci-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)",
        "Received": [
            "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xhnjD6BX0z9sP5\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 30 Aug 2017 11:19:28 +1000 (AEST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751514AbdH3BTZ (ORCPT <rfc822;incoming@patchwork.ozlabs.org>);\n\tTue, 29 Aug 2017 21:19:25 -0400",
            "from mailgw01.mediatek.com ([210.61.82.183]:17983 \"EHLO\n\tmailgw01.mediatek.com\" rhost-flags-OK-FAIL-OK-FAIL) by\n\tvger.kernel.org with ESMTP id S1751240AbdH3BTY (ORCPT\n\t<rfc822; linux-pci@vger.kernel.org>); Tue, 29 Aug 2017 21:19:24 -0400",
            "from mtkexhb02.mediatek.inc [(172.21.101.103)] by\n\tmailgw01.mediatek.com (envelope-from <honghui.zhang@mediatek.com>)\n\t(mhqrelay.mediatek.com ESMTP with TLS)\n\twith ESMTP id 49165849; Wed, 30 Aug 2017 09:19:18 +0800",
            "from mtkcas07.mediatek.inc (172.21.101.84) by\n\tmtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server\n\t(TLS) id 15.0.1210.3; Wed, 30 Aug 2017 09:19:17 +0800",
            "from localhost.localdomain (10.17.3.153) by mtkcas07.mediatek.inc\n\t(172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via\n\tFrontend Transport; Wed, 30 Aug 2017 09:19:17 +0800"
        ],
        "From": "<honghui.zhang@mediatek.com>",
        "To": "<bhelgaas@google.com>, <matthias.bgg@gmail.com>,\n\t<linux-arm-kernel@lists.infradead.org>,\n\t<linux-mediatek@lists.infradead.org>, <linux-pci@vger.kernel.org>,\n\t<linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org>,\n\t<yingjoe.chen@mediatek.com>, <eddie.huang@mediatek.com>,\n\t<ryder.lee@mediatek.com>",
        "CC": "<honghui.zhang@mediatek.com>, <hongkun.cao@mediatek.com>,\n\t<youlin.pei@mediatek.com>, <yong.wu@mediatek.com>,\n\t<yt.shen@mediatek.com>, <sean.wang@mediatek.com>,\n\t<xinping.qian@mediatek.com>",
        "Subject": "[PATCH] PCI: mediatek: take use of PCI_NUM_INTX",
        "Date": "Wed, 30 Aug 2017 09:19:14 +0800",
        "Message-ID": "<1504055954-31545-1-git-send-email-honghui.zhang@mediatek.com>",
        "X-Mailer": "git-send-email 2.6.4",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-MTK": "N",
        "Sender": "linux-pci-owner@vger.kernel.org",
        "Precedence": "bulk",
        "List-ID": "<linux-pci.vger.kernel.org>",
        "X-Mailing-List": "linux-pci@vger.kernel.org"
    },
    "content": "From: Honghui Zhang <honghui.zhang@mediatek.com>\n\nSwitch from using a custom NUM_INTX macro to the generic PCI_NUM_INTX\ndefinition for the number of INTx interrupts.\n\nSigned-off-by: Honghui Zhang <honghui.zhang@mediatek.com>\n---\n drivers/pci/host/pcie-mediatek.c | 5 ++---\n 1 file changed, 2 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/pci/host/pcie-mediatek.c b/drivers/pci/host/pcie-mediatek.c\nindex c567996..5c0ce9b 100644\n--- a/drivers/pci/host/pcie-mediatek.c\n+++ b/drivers/pci/host/pcie-mediatek.c\n@@ -77,7 +77,6 @@\n #define PCIE_INT_MASK\t\t0x420\n #define INTX_MASK\t\tGENMASK(19, 16)\n #define INTX_SHIFT\t\t16\n-#define INTX_NUM\t\t4\n #define PCIE_INT_STATUS\t\t0x424\n #define MSI_STATUS\t\tBIT(23)\n #define PCIE_IMSI_STATUS\t0x42c\n@@ -576,7 +575,7 @@ static int mtk_pcie_init_irq_domain(struct mtk_pcie_port *port,\n \t\treturn -ENODEV;\n \t}\n \n-\tport->irq_domain = irq_domain_add_linear(pcie_intc_node, INTX_NUM,\n+\tport->irq_domain = irq_domain_add_linear(pcie_intc_node, PCI_NUM_INTX,\n \t\t\t\t\t\t &intx_domain_ops, port);\n \tif (!port->irq_domain) {\n \t\tdev_err(dev, \"failed to get INTx IRQ domain\\n\");\n@@ -594,7 +593,7 @@ static irqreturn_t mtk_pcie_intr_handler(int irq, void *data)\n \tu32 bit = INTX_SHIFT;\n \n \twhile ((status = readl(port->base + PCIE_INT_STATUS)) & INTX_MASK) {\n-\t\tfor_each_set_bit_from(bit, &status, INTX_NUM + INTX_SHIFT) {\n+\t\tfor_each_set_bit_from(bit, &status, PCI_NUM_INTX + INTX_SHIFT) {\n \t\t\t/* Clear the INTx */\n \t\t\twritel(1 << bit, port->base + PCIE_INT_STATUS);\n \t\t\tvirq = irq_find_mapping(port->irq_domain,\n",
    "prefixes": []
}