get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 955963,
    "url": "http://patchwork.ozlabs.org/api/patches/955963/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20180810060711.6547-24-jagan@amarulasolutions.com/",
    "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": "<20180810060711.6547-24-jagan@amarulasolutions.com>",
    "list_archive_url": null,
    "date": "2018-08-10T06:06:41",
    "name": "[U-Boot,v2,23/53] reset: Add reset valid",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "63a47cba64f9b8632cb83a97fc32c77cefbdc680",
    "submitter": {
        "id": 69820,
        "url": "http://patchwork.ozlabs.org/api/people/69820/?format=api",
        "name": "Jagan Teki",
        "email": "jagan@amarulasolutions.com"
    },
    "delegate": {
        "id": 17739,
        "url": "http://patchwork.ozlabs.org/api/users/17739/?format=api",
        "username": "jagan",
        "first_name": "Jagannadha Sutradharudu",
        "last_name": "Teki",
        "email": "jagannadh.teki@gmail.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20180810060711.6547-24-jagan@amarulasolutions.com/mbox/",
    "series": [
        {
            "id": 60190,
            "url": "http://patchwork.ozlabs.org/api/series/60190/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=60190",
            "date": "2018-08-10T06:06:18",
            "name": "clk: Add Allwinner CLK, RESET support",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/60190/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/955963/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/955963/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>)",
            "ozlabs.org; dmarc=none (p=none dis=none)\n\theader.from=amarulasolutions.com",
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=amarulasolutions.com\n\theader.i=@amarulasolutions.com header.b=\"S+mmzXfX\"; \n\tdkim-atps=neutral"
        ],
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 41mw4x1kjfz9s7Q\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 10 Aug 2018 16:21:53 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid DAC19C21DC1; Fri, 10 Aug 2018 06:12:38 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id D1A06C21DD4;\n\tFri, 10 Aug 2018 06:09:26 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 31FF9C21C4A; Fri, 10 Aug 2018 06:09:10 +0000 (UTC)",
            "from mail-pg1-f195.google.com (mail-pg1-f195.google.com\n\t[209.85.215.195])\n\tby lists.denx.de (Postfix) with ESMTPS id 7B50CC21D65\n\tfor <u-boot@lists.denx.de>; Fri, 10 Aug 2018 06:09:05 +0000 (UTC)",
            "by mail-pg1-f195.google.com with SMTP id z8-v6so3886570pgu.8\n\tfor <u-boot@lists.denx.de>; Thu, 09 Aug 2018 23:09:05 -0700 (PDT)",
            "from localhost.localdomain ([183.82.228.250])\n\tby smtp.gmail.com with ESMTPSA id\n\tr23-v6sm16880975pfj.5.2018.08.09.23.09.00\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tThu, 09 Aug 2018 23:09:03 -0700 (PDT)"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-0.0 required=5.0 tests=RCVD_IN_MSPIKE_H3,\n\tRCVD_IN_MSPIKE_WL,\n\tT_DKIM_INVALID autolearn=unavailable autolearn_force=no\n\tversion=3.4.0",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=amarulasolutions.com; s=google;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=JlcthNcdEQvGgIGvEUxrBH5kL9FTOykLSA3DXlGZ3nM=;\n\tb=S+mmzXfXjHich0k52jEcIieE1whpsx+upzSnW/wIsx3Plj2J83hurTlZzXXZmG2+nd\n\tkyZYo8Tyzx6rxT4QDiRYGmdFW3SIJqLEk/uqinRxeBv9t61bPfDVbUovWPlZuAjpubeH\n\tiG2tRqDWygeNkbwLfC/N438vypXm+PBafYD9I=",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references:mime-version:content-transfer-encoding;\n\tbh=JlcthNcdEQvGgIGvEUxrBH5kL9FTOykLSA3DXlGZ3nM=;\n\tb=K7hFE5e2yFoJXVzcAVjQCpLrrFyd7KmRScn52t9q9GDUfwmfF0Ozm2mAwPrJrtj5RW\n\tkV/SvKe5ACO7JUXtIomoGh/LM2EI9ks4T9uwVImFfNbID/RwhswLGaee55YbuPhGDW0s\n\tx/wPaVMfSaWOOEZ7N18tHQ7qbbvLtMOuwvGtnMQ6jm6C/+91PC3CZyfAfOl31m7TsTOU\n\t0WfE19EzgL6+6ozbCpBxXipbQ5bVmRc9oeWIzI34TEAkrDJYhROVVuoz3Wk+2puTy7Zj\n\tprDYxPt1Jl3gDNqN0ekEE3V+7SKHULU2uB0ueg0ZPrWVM87Xy+ZIBHE4EbDrR9iR7309\n\tVhZw==",
        "X-Gm-Message-State": "AOUpUlFzb7K14zVUeQFx3o/hPHBYRVZYg1BI4tcqRRCSUlbt7wknykj6\n\trXKgNpjWCL8dDhsZ3bWaMVTvjA==",
        "X-Google-Smtp-Source": "AA+uWPxNDnRBOxh7yCS6kHj9JXIbkqT9ZVANJ4+07asjX2z12sf4KXUjXr19qEzCLhkzEuFETjLRoQ==",
        "X-Received": "by 2002:a63:cd4c:: with SMTP id\n\ta12-v6mr5073921pgj.15.1533881344118; \n\tThu, 09 Aug 2018 23:09:04 -0700 (PDT)",
        "From": "Jagan Teki <jagan@amarulasolutions.com>",
        "To": "Maxime Ripard <maxime.ripard@bootlin.com>,\n\tAndre Przywara <andre.przywara@arm.com>, Chen-Yu Tsai <wens@csie.org>,\n\tIcenowy Zheng <icenowy@aosc.io>",
        "Date": "Fri, 10 Aug 2018 11:36:41 +0530",
        "Message-Id": "<20180810060711.6547-24-jagan@amarulasolutions.com>",
        "X-Mailer": "git-send-email 2.18.0.321.gffc6fa0e3",
        "In-Reply-To": "<20180810060711.6547-1-jagan@amarulasolutions.com>",
        "References": "<20180810060711.6547-1-jagan@amarulasolutions.com>",
        "MIME-Version": "1.0",
        "Cc": "Tom Rini <trini@konsulko.com>, u-boot@lists.denx.de",
        "Subject": "[U-Boot] [PATCH v2 23/53] reset: Add reset valid",
        "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>",
        "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": "Add reset_valid to check whether given reset is valid\nor not.\n\nCc: Simon Glass <sjg@chromium.org>\nSigned-off-by: Jagan Teki <jagan@amarulasolutions.com>\n---\n include/reset.h | 11 +++++++++++\n 1 file changed, 11 insertions(+)",
    "diff": "diff --git a/include/reset.h b/include/reset.h\nindex a5af31f549..70130bb886 100644\n--- a/include/reset.h\n+++ b/include/reset.h\n@@ -315,4 +315,15 @@ static inline int reset_release_bulk(struct reset_ctl_bulk *bulk)\n }\n #endif\n \n+/**\n+ * reset_valid() - check if reset is valid\n+ *\n+ * @reset_ctl:\t\tthe reset to check\n+ * @return TRUE if valid, or FALSE\n+ */\n+static inline bool reset_valid(struct reset_ctl *reset_ctl)\n+{\n+\treturn !!reset_ctl->dev;\n+}\n+\n #endif\n",
    "prefixes": [
        "U-Boot",
        "v2",
        "23/53"
    ]
}