get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 168012,
    "url": "http://patchwork.ozlabs.org/api/patches/168012/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1340955478-22251-4-git-send-email-monstr@monstr.eu/",
    "project": {
        "id": 18,
        "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api",
        "name": "U-Boot",
        "link_name": "uboot",
        "list_id": "u-boot.lists.denx.de",
        "list_email": "u-boot@lists.denx.de",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<1340955478-22251-4-git-send-email-monstr@monstr.eu>",
    "list_archive_url": null,
    "date": "2012-06-29T07:37:57",
    "name": "[U-Boot,4/5] net: emaclite: Support OF initialization",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "71cf689bd7735e316ff864a46da6133b9de508f7",
    "submitter": {
        "id": 2237,
        "url": "http://patchwork.ozlabs.org/api/people/2237/?format=api",
        "name": "Michal Simek",
        "email": "monstr@monstr.eu"
    },
    "delegate": {
        "id": 6337,
        "url": "http://patchwork.ozlabs.org/api/users/6337/?format=api",
        "username": "jhersh",
        "first_name": "Joe",
        "last_name": "Hershberger",
        "email": "joe.hershberger@gmail.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/1340955478-22251-4-git-send-email-monstr@monstr.eu/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/168012/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/168012/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<u-boot-bounces@lists.denx.de>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Received": [
            "from theia.denx.de (theia.denx.de [85.214.87.163])\n\tby ozlabs.org (Postfix) with ESMTP id 7E1F9B7023\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 29 Jun 2012 17:39:22 +1000 (EST)",
            "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 7410C280AA;\n\tFri, 29 Jun 2012 09:38:45 +0200 (CEST)",
            "from theia.denx.de ([127.0.0.1])\n\tby localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id pWyctuUW6+W7; Fri, 29 Jun 2012 09:38:45 +0200 (CEST)",
            "from theia.denx.de (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id C7701280CE;\n\tFri, 29 Jun 2012 09:38:35 +0200 (CEST)",
            "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 294E82809E\n\tfor <u-boot@lists.denx.de>; Fri, 29 Jun 2012 09:38:25 +0200 (CEST)",
            "from theia.denx.de ([127.0.0.1])\n\tby localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id E1eeh-418Dx2 for <u-boot@lists.denx.de>;\n\tFri, 29 Jun 2012 09:38:15 +0200 (CEST)",
            "from mail-ey0-f172.google.com (mail-ey0-f172.google.com\n\t[209.85.215.172])\n\tby theia.denx.de (Postfix) with ESMTPS id 0D4FA280A5\n\tfor <u-boot@lists.denx.de>; Fri, 29 Jun 2012 09:38:08 +0200 (CEST)",
            "by mail-ey0-f172.google.com with SMTP id q13so1276123eaa.3\n\tfor <u-boot@lists.denx.de>; Fri, 29 Jun 2012 00:38:08 -0700 (PDT)",
            "by 10.216.133.71 with SMTP id p49mr205838wei.107.1340955488324;\n\tFri, 29 Jun 2012 00:38:08 -0700 (PDT)",
            "from localhost (11.161.broadband5.iol.cz. [88.100.161.11])\n\tby mx.google.com with ESMTPS id f10sm7008082wiw.1.2012.06.29.00.38.07\n\t(version=TLSv1/SSLv3 cipher=OTHER);\n\tFri, 29 Jun 2012 00:38:07 -0700 (PDT)"
        ],
        "X-Virus-Scanned": [
            "Debian amavisd-new at theia.denx.de",
            "Debian amavisd-new at theia.denx.de"
        ],
        "X-policyd-weight": "NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5\n\tNOT_IN_BL_NJABL=-1.5 (only DNSBL check requested)",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=google.com; s=20120113;\n\th=from:to:subject:date:message-id:x-mailer:in-reply-to:references\n\t:x-gm-message-state;\n\tbh=aSiS2TeNhjE0S+S544OWwdHDl2S/Xu3oHnKsiQ/sP24=;\n\tb=bjMzPas4zewXuPLJ+sEUHHysiF2qhe5CUqcYABhmvzNfH1oOEb4J4kCITRv2p7YUAZ\n\tCGjgMHbGydExpj+n+5FVYT0ETVPkfSlp1KzGVZm9ETffdgHg6qC+o1K+GpgX6Cn+OtQA\n\toPTG4gRGT9OAMqdkjliC9AUfZ6baUXEEtjM3WOVr2dAvH3P03Mn73TAFFG6XdVEDHmp6\n\tpnyVAd2rbPv+UeKSyz94eMm8dGYqVt+57dzZN7HCRUF4uoKJ4xD/MwhsmX/Ag4zTTg9l\n\t4LafCrmV1Mlro0J3i17nCFxtXXfJlaI5Dez36wb/NHzJpGQm3SELynJSE87JdzvymRBO\n\tdStA==",
        "From": "Michal Simek <monstr@monstr.eu>",
        "To": "u-boot@lists.denx.de",
        "Date": "Fri, 29 Jun 2012 09:37:57 +0200",
        "Message-Id": "<1340955478-22251-4-git-send-email-monstr@monstr.eu>",
        "X-Mailer": "git-send-email 1.7.0.4",
        "In-Reply-To": "<1340955478-22251-1-git-send-email-monstr@monstr.eu>",
        "References": "<1340955478-22251-1-git-send-email-monstr@monstr.eu>",
        "X-Gm-Message-State": "ALoCoQlTDhpwFjby2DC/69X4++kbFc7dUywGuf9mU6muefhYTjgfKmb2XmSyd9lAT2BPmUqQ3Zzl",
        "Subject": "[U-Boot] [PATCH 4/5] net: emaclite: Support OF initialization",
        "X-BeenThere": "u-boot@lists.denx.de",
        "X-Mailman-Version": "2.1.11",
        "Precedence": "list",
        "List-Id": "U-Boot discussion <u-boot.lists.denx.de>",
        "List-Unsubscribe": "<http://lists.denx.de/mailman/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>",
        "List-Archive": "<http://lists.denx.de/pipermail/u-boot>",
        "List-Post": "<mailto:u-boot@lists.denx.de>",
        "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>",
        "List-Subscribe": "<http://lists.denx.de/mailman/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Sender": "u-boot-bounces@lists.denx.de",
        "Errors-To": "u-boot-bounces@lists.denx.de"
    },
    "content": "Support new CONFIG_OF_CONTROL option where device\nprobing is done based on device tree description.\n\nSigned-off-by: Michal Simek <monstr@monstr.eu>\nCC: Joe Hershberger <joe.hershberger@gmail.com>\n---\n drivers/net/xilinx_emaclite.c |   30 ++++++++++++++++++++++++++++++\n 1 files changed, 30 insertions(+), 0 deletions(-)",
    "diff": "diff --git a/drivers/net/xilinx_emaclite.c b/drivers/net/xilinx_emaclite.c\nindex d5bd737..d890d60 100644\n--- a/drivers/net/xilinx_emaclite.c\n+++ b/drivers/net/xilinx_emaclite.c\n@@ -28,6 +28,9 @@\n #include <config.h>\n #include <malloc.h>\n #include <asm/io.h>\n+#include <fdtdec.h>\n+\n+DECLARE_GLOBAL_DATA_PTR;\n \n #undef DEBUG\n \n@@ -375,3 +378,30 @@ int xilinx_emaclite_initialize(bd_t *bis, unsigned long base_addr,\n \n \treturn 1;\n }\n+\n+#ifdef CONFIG_OF_CONTROL\n+int xilinx_emaclite_init(bd_t *bis)\n+{\n+\tint offset = 0;\n+\tu32 ret = 0;\n+\tu32 reg;\n+\n+\tdo {\n+\t\toffset = fdt_node_offset_by_compatible(gd->fdt_blob, offset,\n+\t\t\t\t\t\"xlnx,xps-ethernetlite-1.00.a\");\n+\t\tif (offset != -1) {\n+\t\t\treg = fdtdec_get_addr(gd->fdt_blob, offset, \"reg\");\n+\t\t\tif (reg != FDT_ADDR_T_NONE) {\n+\t\t\t\tu32 rxpp = fdtdec_get_int(gd->fdt_blob, offset,\n+\t\t\t\t\t\t\t\"xlnx,rx-ping-pong\", 0);\n+\t\t\t\tu32 txpp = fdtdec_get_int(gd->fdt_blob, offset,\n+\t\t\t\t\t\t\t\"xlnx,tx-ping-pong\", 0);\n+\t\t\t\tret |= xilinx_emaclite_initialize(bis, reg,\n+\t\t\t\t\t\t\t\ttxpp, rxpp);\n+\t\t\t}\n+\t\t}\n+\t} while (offset != -1);\n+\n+\treturn ret;\n+}\n+#endif\n",
    "prefixes": [
        "U-Boot",
        "4/5"
    ]
}