get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 817974,
    "url": "http://patchwork.ozlabs.org/api/patches/817974/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20170924195716.3433-12-xypron.glpk@gmx.de/",
    "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": "<20170924195716.3433-12-xypron.glpk@gmx.de>",
    "list_archive_url": null,
    "date": "2017-09-24T19:57:10",
    "name": "[U-Boot,11/17] efi_loader: implement WaitForPacket event",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "097078f4fedb7fce764562f6c92bb1c20636994e",
    "submitter": {
        "id": 61270,
        "url": "http://patchwork.ozlabs.org/api/people/61270/?format=api",
        "name": "Heinrich Schuchardt",
        "email": "xypron.glpk@gmx.de"
    },
    "delegate": {
        "id": 3400,
        "url": "http://patchwork.ozlabs.org/api/users/3400/?format=api",
        "username": "agraf",
        "first_name": "Alexander",
        "last_name": "Graf",
        "email": "agraf@suse.de"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20170924195716.3433-12-xypron.glpk@gmx.de/mbox/",
    "series": [
        {
            "id": 4841,
            "url": "http://patchwork.ozlabs.org/api/series/4841/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=4841",
            "date": "2017-09-24T19:57:03",
            "name": "efi_loader: Simple Network Protocol",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/4841/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/817974/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/817974/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",
        "Authentication-Results": "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)",
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3y0dQz4l4Gz9t1t\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 25 Sep 2017 06:02:03 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 04A94C22122; Sun, 24 Sep 2017 19:59:21 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 556B7C2210F;\n\tSun, 24 Sep 2017 19:58:33 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid DE354C21C2B; Sun, 24 Sep 2017 19:58:18 +0000 (UTC)",
            "from mout.gmx.net (mout.gmx.net [212.227.17.20])\n\tby lists.denx.de (Postfix) with ESMTPS id C5B76C22031\n\tfor <u-boot@lists.denx.de>; Sun, 24 Sep 2017 19:58:14 +0000 (UTC)",
            "from workstation4.fritz.box ([84.118.154.110]) by mail.gmx.com\n\t(mrgmx102 [212.227.17.174]) with ESMTPSA (Nemesis) id\n\t0La2Xx-1dV98L2oCD-00lq83; Sun, 24 Sep 2017 21:57:32 +0200"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-0.7 required=5.0 tests=FREEMAIL_FROM,\n\tRCVD_IN_DNSWL_LOW,\n\tRCVD_IN_MSPIKE_H2 autolearn=unavailable autolearn_force=no\n\tversion=3.4.0",
        "From": "Heinrich Schuchardt <xypron.glpk@gmx.de>",
        "To": "Alexander Graf <agraf@suse.de>",
        "Date": "Sun, 24 Sep 2017 21:57:10 +0200",
        "Message-Id": "<20170924195716.3433-12-xypron.glpk@gmx.de>",
        "X-Mailer": "git-send-email 2.14.1",
        "In-Reply-To": "<20170924195716.3433-1-xypron.glpk@gmx.de>",
        "References": "<20170924195716.3433-1-xypron.glpk@gmx.de>",
        "X-Provags-ID": "V03:K0:uLebkHcwo6DiMZrrlYRNvwc0yNquTTfsZEZg0g0tSYzqwaz4w+q\n\tJbZhv4IyVtM9zHvKywu590CW8LOdmQS6s1ROAceyvii3R8DJ9vHML9PoWDvxG9X9sWbtvo7\n\t3AHkiZHn4y8vOwvUWYRjNQX7Q/UM2err85IRpHKWL4JCKEphjmAIzH9CJ5dUZh9ne2dAlpI\n\tRDUy6zdUIIJephgmot9XA==",
        "X-UI-Out-Filterresults": "notjunk:1; V01:K0:lc4kW3XlooU=:/u8fYm2JzSFJorPWM/YrwB\n\tiQ70+Fi9x6ZdvWaiKxoPCjDMWFgAzIgLmjOh7kxo/L00EuhQLMBzSSnLbLPPJpeR5AI8WGmuw\n\t5pMFqbPCZKlIMkP14c0Tai6pSLT44DSgd8koaGhYvBEX7v+xbXcOSNIDOCzOO9iynYDc9pRax\n\tp8MnJpq1sxgxxxAOMCKJ/gAeG11ZZiH04vd2t4JFd1kjwWwvXU7i459vW+y4RbVoU8icM1JmK\n\tXKQMQ0HWhMsDUQ4aXuQAswXb3ht1S7jLeizLCK9rMLWpBt8fRLaKw4AXR8ux+woS+X9dr/0wp\n\tDgHFrCB412/G9nTmjyY+s3rWqRcCG21VjEVFUxGXwOu4a7XgiJnOe+41MfJ2yERJCJBBMN2Hp\n\thxvWnlou4QUlkhsB8vhFSIxr6blm5GYiUQhChIhWjXn+hdK1nKWbx3KEbYSIE7fNmzARXei9i\n\t6OY68/fTA2JRv4RPc3aWW3w7fergx7JtHoLivPL5ZDDgAJfzhjLV4KNfiR5vvrPZnl2OZY5C1\n\tisb7wCR05GulqOiIS8SZ4jyK1TOd01wp8mYQMp7B4LpsGfbyT2kCl+aCWGko8tkLtCiN/YVXo\n\tqXqSpqd/Mar+hOu2cuutsv1LPiHy1RJkDzDXJ4uzfT7xZucGYBP76ByuAohMolkWPCmK7TVZL\n\tZmjLnAjWyzZyXe7jWBfiI3VcB2u/7cqCEnf6wmSz97UQpVV/Oe1X3zT/1xZ6t3O190ZO+2f5l\n\t4leYh8jt5EQ+ZXZvAkOSxVE4dY6L/ex9u4znmqgBmLifzmxYtu+HgQV/PnLe11e+qkZyUtJRl\n\t1DoAwFFhD3ZtZysNljithGKSuVI9A==",
        "Cc": "Heinrich Schuchardt <xypron.glpk@gmx.de>, u-boot@lists.denx.de",
        "Subject": "[U-Boot] [PATCH 11/17] efi_loader: implement WaitForPacket event",
        "X-BeenThere": "u-boot@lists.denx.de",
        "X-Mailman-Version": "2.1.18",
        "Precedence": "list",
        "List-Id": "U-Boot discussion <u-boot.lists.denx.de>",
        "List-Unsubscribe": "<https://lists.denx.de/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": "<https://lists.denx.de/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "base64",
        "Errors-To": "u-boot-bounces@lists.denx.de",
        "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>"
    },
    "content": "The WaitForPacket event informs tha a network package has been\nreceived by the SimpleNetworkProtocol.\n\nSigned-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>\n---\n lib/efi_loader/efi_net.c | 17 +++++++++++++++++\n 1 file changed, 17 insertions(+)",
    "diff": "diff --git a/lib/efi_loader/efi_net.c b/lib/efi_loader/efi_net.c\nindex 3498b96f7a..72a023803d 100644\n--- a/lib/efi_loader/efi_net.c\n+++ b/lib/efi_loader/efi_net.c\n@@ -24,6 +24,10 @@ static void *new_tx_packet;\n  * to check if a new network packet has been received.\n  */\n static struct efi_event *network_timer_event;\n+/*\n+ * This event is signaled when a packet has been received.\n+ */\n+static struct efi_event *wait_for_packet;\n \n struct efi_net_obj {\n \t/* Generic EFI object parent class data */\n@@ -227,6 +231,8 @@ static void EFIAPI efi_network_timer_notify(struct efi_event *event,\n \t\teth_rx();\n \t\tpush_packet = NULL;\n \t}\n+\tif (!new_rx_packet)\n+\t\twait_for_packet->signaled = 1;\n \tEFI_EXIT(EFI_SUCCESS);\n }\n \n@@ -280,6 +286,17 @@ int efi_net_register(void)\n \t/* Hook net up to the device list */\n \tlist_add_tail(&netobj->parent.link, &efi_obj_list);\n \n+\t/*\n+\t * Create WaitForPacket event.\n+\t */\n+\tr = efi_create_event(EVT_NOTIFY_WAIT, TPL_CALLBACK,\n+\t\t\t     efi_network_timer_notify, NULL,\n+\t\t\t     &wait_for_packet);\n+\tif (r != EFI_SUCCESS) {\n+\t\tprintf(\"ERROR: Failed to register network event\\n\");\n+\t\treturn r;\n+\t}\n+\tnetobj->net.wait_for_packet = wait_for_packet;\n \t/*\n \t * Create a timer event.\n \t *\n",
    "prefixes": [
        "U-Boot",
        "11/17"
    ]
}