get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 806168,
    "url": "http://patchwork.ozlabs.org/api/patches/806168/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20170826225110.7381-6-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": "<20170826225110.7381-6-xypron.glpk@gmx.de>",
    "list_archive_url": null,
    "date": "2017-08-26T22:51:06",
    "name": "[U-Boot,05/23] efi_loader: rework efi_search_obj",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "24a7df8fd70a8de6c7267abe4688d9c0f350373c",
    "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/20170826225110.7381-6-xypron.glpk@gmx.de/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/806168/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/806168/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 3xfth55cHjz9s78\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSun, 27 Aug 2017 08:56:53 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 8238BC221D6; Sat, 26 Aug 2017 22:53:44 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 8D8D9C2218A;\n\tSat, 26 Aug 2017 22:52:40 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 8B402C2217C; Sat, 26 Aug 2017 22:52:12 +0000 (UTC)",
            "from mout.gmx.net (mout.gmx.net [212.227.17.20])\n\tby lists.denx.de (Postfix) with ESMTPS id D5071C2215D\n\tfor <u-boot@lists.denx.de>; Sat, 26 Aug 2017 22:52:08 +0000 (UTC)",
            "from localhost.localdomain ([84.118.154.110]) by mail.gmx.com\n\t(mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id\n\t0MfjJY-1e8kxT1M8K-00N6FG; Sun, 27 Aug 2017 00:51:23 +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, RCVD_IN_MSPIKE_H3,\n\tRCVD_IN_MSPIKE_WL autolearn=unavailable\n\tautolearn_force=no version=3.4.0",
        "From": "Heinrich Schuchardt <xypron.glpk@gmx.de>",
        "To": "Alexander Graf <agraf@suse.de>",
        "Date": "Sun, 27 Aug 2017 00:51:06 +0200",
        "Message-Id": "<20170826225110.7381-6-xypron.glpk@gmx.de>",
        "X-Mailer": "git-send-email 2.14.1",
        "In-Reply-To": "<20170826225110.7381-1-xypron.glpk@gmx.de>",
        "References": "<20170826225110.7381-1-xypron.glpk@gmx.de>",
        "X-Provags-ID": "V03:K0:C0jHqpMFKrGIOXTz8d6L0r981SqR3OrQKbb2s455ePN+eEAnFVM\n\tcaowZsJJZK4K7Y0AsPfFZjIUU9a/d4sp1hHNnneXqgyYWr2OMw4vqP0ZoJCNQI8/Y9/8eSc\n\tRY9Zb8H9ppMvxPb0nXiIiN2a8fvNgMS7cd8jPGkJDRM/7DJt1pTW8EjeKJ/NMuQIlgThG+1\n\t5PxlXDlP64JuwfcV9BCsQ==",
        "X-UI-Out-Filterresults": "notjunk:1; V01:K0:3HsUD1RArn4=:C4e9OAmswHKEDt1j1gF4RZ\n\txFQw631PivTH7Vv/W3SJlFj+405ejEPxCmhYPVvgzhWGDrFtT8P0omTHeLLn4TAjhCd5pbU+F\n\tI7TSb6EKTrwWC3ZBogAHH56BeDUXRmieokiCd4CV1mcIC9/jy0/J7Wy3bnwu68AaT0DSNSTrH\n\tpRSo7v3FEOs3ZP0d9GXaWqTbvCditd/1gRSN0cwIod3M8vFZzqktI/D9G9YezPA403/+nT037\n\tvi1dt5MXmFvonBFhmqVK/FGrv2+ghryA0YaBVGu5QWcAx/5sUzB2gW3AWoV3dtBlHbzkMAeD+\n\thJY0wxvO0GKOp//8onZADI4funzzTXfazw/pxdQ98KkhRH63iuDuCP41r0e7QGSgw+HCD83mC\n\tIusX6/uhNDBvAT08GP8/VinokMIXgonRmXbfyXEW5y3VThbVVU/skITWo+jjSZFemaSwljErs\n\tj5dL3k4XG8TKHzOFp5JlduzWDQWjht2mWo5XW7SNSQNw1t6qYceoKbM1wcQDd/SMroLbmAbwA\n\tuHz05hzKUiLsT2lgti6z2SIZGmRDokNiGdUoTVBOZhYIC7En5bQPUa4I4Ue2MHqxh7Z65Iw/E\n\ts4O/kXeHgFxG2W+Zwd+msKDjIXPYO1E5RsG1tFv5H5L91Uh7gTXThxOSQ4qIgmDACW0ATNQe0\n\t88rL6RQ8z+KrVVAZZApSnG59KCajJPQ34dmdPGp6AQsPKE91CxiIwnTD6omGZnWIxhjNu+lRG\n\tVT2QcuOOemxQ2M8X0ZP/Nx7LdgGOmkkJAGAaYbMB5WKbOuB7BxkIAisrycEydKqzFxFbNEY1e\n\t7CN7VzFv8roetpNomTBeY7NHeGxFg==",
        "Cc": "Heinrich Schuchardt <xypron.glpk@gmx.de>, u-boot@lists.denx.de",
        "Subject": "[U-Boot] [PATCH 05/23] efi_loader: rework efi_search_obj",
        "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": "EFI_HANDLEs are used both in boottime and in runtime services.\nefi_search_obj is a function that can be used to validate\nhandles. So let's make it accessible via efi_loader.h.\n\nWe can simplify the coding using list_for_each_entry.\n\nSigned-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>\n---\n include/efi_loader.h          | 2 ++\n lib/efi_loader/efi_boottime.c | 8 +++-----\n 2 files changed, 5 insertions(+), 5 deletions(-)",
    "diff": "diff --git a/include/efi_loader.h b/include/efi_loader.h\nindex e8fb4fbb0a..193fca24ce 100644\n--- a/include/efi_loader.h\n+++ b/include/efi_loader.h\n@@ -167,6 +167,8 @@ void efi_restore_gd(void);\n void efi_runtime_relocate(ulong offset, struct efi_mem_desc *map);\n /* Call this to set the current device name */\n void efi_set_bootdev(const char *dev, const char *devnr, const char *path);\n+/* Call this to validate a handle and find the EFI object for it */\n+struct efi_object *efi_search_obj(void *handle);\n /* Call this to create an event */\n efi_status_t efi_create_event(uint32_t type, UINTN notify_tpl,\n \t\t\t      void (EFIAPI *notify_function) (\ndiff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c\nindex 570a5ea186..b643d299b9 100644\n--- a/lib/efi_loader/efi_boottime.c\n+++ b/lib/efi_loader/efi_boottime.c\n@@ -822,13 +822,11 @@ static efi_status_t EFIAPI efi_exit(efi_handle_t image_handle,\n \tpanic(\"EFI application exited\");\n }\n \n-static struct efi_object *efi_search_obj(void *handle)\n+struct efi_object *efi_search_obj(void *handle)\n {\n-\tstruct list_head *lhandle;\n+\tstruct efi_object *efiobj;\n \n-\tlist_for_each(lhandle, &efi_obj_list) {\n-\t\tstruct efi_object *efiobj;\n-\t\tefiobj = list_entry(lhandle, struct efi_object, link);\n+\tlist_for_each_entry(efiobj, &efi_obj_list, link) {\n \t\tif (efiobj->handle == handle)\n \t\t\treturn efiobj;\n \t}\n",
    "prefixes": [
        "U-Boot",
        "05/23"
    ]
}