get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 229,
    "url": "http://patchwork.ozlabs.org/api/patches/229/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/200809101755.46883.matthias.fuchs@esd-electronics.com/",
    "project": {
        "id": 2,
        "url": "http://patchwork.ozlabs.org/api/projects/2/?format=api",
        "name": "Linux PPC development",
        "link_name": "linuxppc-dev",
        "list_id": "linuxppc-dev.lists.ozlabs.org",
        "list_email": "linuxppc-dev@lists.ozlabs.org",
        "web_url": "https://github.com/linuxppc/wiki/wiki",
        "scm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git",
        "webscm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/",
        "list_archive_url": "https://lore.kernel.org/linuxppc-dev/",
        "list_archive_url_format": "https://lore.kernel.org/linuxppc-dev/{}/",
        "commit_url_format": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}"
    },
    "msgid": "<200809101755.46883.matthias.fuchs@esd-electronics.com>",
    "list_archive_url": "https://lore.kernel.org/linuxppc-dev/200809101755.46883.matthias.fuchs@esd-electronics.com/",
    "date": "2008-09-10T15:55:46",
    "name": "ppc4xx: Allow 4xx PCI bridge to be disabled via device tree",
    "commit_ref": "5a013fc7bb48acefe94011f4b83fef95b381f875",
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "64ee00af2ae7aa1eba9228e6a9e4749016a1f2b6",
    "submitter": {
        "id": 79,
        "url": "http://patchwork.ozlabs.org/api/people/79/?format=api",
        "name": "Matthias Fuchs",
        "email": "matthias.fuchs@esd-electronics.com"
    },
    "delegate": {
        "id": 11,
        "url": "http://patchwork.ozlabs.org/api/users/11/?format=api",
        "username": "jwboyer",
        "first_name": "Josh",
        "last_name": "Boyer",
        "email": "jwboyer@gmail.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/200809101755.46883.matthias.fuchs@esd-electronics.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/229/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/229/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<linuxppc-dev-bounces+patchwork=ozlabs.org@ozlabs.org>",
        "X-Original-To": [
            "patchwork@ozlabs.org",
            "linuxppc-dev@ozlabs.org"
        ],
        "Delivered-To": [
            "patchwork@ozlabs.org",
            "linuxppc-dev@ozlabs.org"
        ],
        "Received": [
            "from ozlabs.org (localhost [127.0.0.1])\n\tby ozlabs.org (Postfix) with ESMTP id 553BBDE6F6\n\tfor <patchwork@ozlabs.org>; Thu, 11 Sep 2008 02:00:18 +1000 (EST)",
            "from moutng.kundenserver.de (moutng.kundenserver.de\n\t[212.227.126.187]) by ozlabs.org (Postfix) with ESMTP id F1161DE1F2\n\tfor <linuxppc-dev@ozlabs.org>; Thu, 11 Sep 2008 02:00:02 +1000 (EST)",
            "from comm-neu.esd (a89-182-159-24.net-htp.de [89.182.159.24])\n\tby mrelayeu.kundenserver.de (node=mrelayeu2) with ESMTP (Nemesis)\n\tid 0MKwtQ-1KdS6r24cG-0005UA; Wed, 10 Sep 2008 18:00:01 +0200",
            "from localhost (localhost [127.0.0.1])\n\tby comm-neu.esd (Postfix) with ESMTP id 5393D108046\n\tfor <linuxppc-dev@ozlabs.org>; Wed, 10 Sep 2008 17:56:01 +0200 (CEST)",
            "from comm-neu.esd ([127.0.0.1])\n\tby localhost (comm [127.0.0.1]) (amavisd-new, port 10024) with LMTP\n\tid 30612-03-2 for <linuxppc-dev@ozlabs.org>;\n\tWed, 10 Sep 2008 17:55:52 +0200 (CEST)",
            "from debby.esd (debby.esd [10.0.0.190])\n\tby comm-neu.esd (Postfix) with ESMTP id 21A8110801C\n\tfor <linuxppc-dev@ozlabs.org>; Wed, 10 Sep 2008 17:55:52 +0200 (CEST)"
        ],
        "From": "Matthias Fuchs <matthias.fuchs@esd-electronics.com>",
        "To": "linuxppc-dev@ozlabs.org",
        "Subject": "[PATCH] ppc4xx: Allow 4xx PCI bridge to be disabled via device tree",
        "Date": "Wed, 10 Sep 2008 17:55:46 +0200",
        "User-Agent": "KMail/1.9.5",
        "MIME-Version": "1.0",
        "Content-Disposition": "inline",
        "Message-Id": "<200809101755.46883.matthias.fuchs@esd-electronics.com>",
        "X-Virus-Scanned": "by amavisd at esd-GmbH-Hannover",
        "X-Provags-ID": "V01U2FsdGVkX1+sLmpbv6f88nO6JpDzq2sI5Is0lv8es49oAPR\n\tenKFioBZPBJhhPOhkQOx33f4GHs0hBdV0JmUrOKJyjBf1scJAM\n\tgmULkAy5AfyKWDUu7NswA==",
        "X-BeenThere": "linuxppc-dev@ozlabs.org",
        "X-Mailman-Version": "2.1.11",
        "Precedence": "list",
        "List-Id": "Linux on PowerPC Developers Mail List <linuxppc-dev.ozlabs.org>",
        "List-Unsubscribe": "<https://ozlabs.org/mailman/options/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@ozlabs.org?subject=unsubscribe>",
        "List-Archive": "<http://ozlabs.org/pipermail/linuxppc-dev>",
        "List-Post": "<mailto:linuxppc-dev@ozlabs.org>",
        "List-Help": "<mailto:linuxppc-dev-request@ozlabs.org?subject=help>",
        "List-Subscribe": "<https://ozlabs.org/mailman/listinfo/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@ozlabs.org?subject=subscribe>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Sender": "linuxppc-dev-bounces+patchwork=ozlabs.org@ozlabs.org",
        "Errors-To": "linuxppc-dev-bounces+patchwork=ozlabs.org@ozlabs.org"
    },
    "content": "This patch allows the 4xx (conventional) PCI bridge to be disabled\nvia the device tree. This is needed for 4xx PCI adapter hardware.\n\nUse the PCI node's status property to disable the PCI bridge.\n\nSigned-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>",
    "diff": "diff --git a/arch/powerpc/sysdev/ppc4xx_pci.c b/arch/powerpc/sysdev/ppc4xx_pci.c\nindex fb368df..8c13d4f 100644\n--- a/arch/powerpc/sysdev/ppc4xx_pci.c\n+++ b/arch/powerpc/sysdev/ppc4xx_pci.c\n@@ -277,9 +277,16 @@ static void __init ppc4xx_probe_pci_bridge(struct device_node *np)\n \tconst int *bus_range;\n \tint primary = 0;\n \n+\t/* Check if device is enabled */\n+\tif (!of_device_is_available(np)) {\n+\t\tprintk(KERN_INFO \"%s: Port disabled via device-tree\\n\",\n+\t\t       np->full_name);\n+\t\treturn;\n+\t}\n+\n \t/* Fetch config space registers address */\n \tif (of_address_to_resource(np, 0, &rsrc_cfg)) {\n-\t\tprintk(KERN_ERR \"%s:Can't get PCI config register base !\",\n+\t\tprintk(KERN_ERR \"%s: Can't get PCI config register base !\",\n \t\t       np->full_name);\n \t\treturn;\n \t}\n",
    "prefixes": []
}