get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1444231,
    "url": "http://patchwork.ozlabs.org/api/patches/1444231/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1614244979-48216-32-git-send-email-bmeng.cn@gmail.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": "<1614244979-48216-32-git-send-email-bmeng.cn@gmail.com>",
    "list_archive_url": null,
    "date": "2021-02-25T09:22:52",
    "name": "[v3,31/38] dm: sysreset: Add a Kconfig option for the 'reset' command",
    "commit_ref": "5f1a08b6ab1c3923735edb676a4de87df4bb96f7",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "1cd1027d820bb1f422acda405c1b69a90d1727e1",
    "submitter": {
        "id": 64981,
        "url": "http://patchwork.ozlabs.org/api/people/64981/?format=api",
        "name": "Bin Meng",
        "email": "bmeng.cn@gmail.com"
    },
    "delegate": {
        "id": 87636,
        "url": "http://patchwork.ozlabs.org/api/users/87636/?format=api",
        "username": "priyankajain",
        "first_name": "Priyanka",
        "last_name": "Jain",
        "email": "priyanka.jain@nxp.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/1614244979-48216-32-git-send-email-bmeng.cn@gmail.com/mbox/",
    "series": [
        {
            "id": 230985,
            "url": "http://patchwork.ozlabs.org/api/series/230985/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=230985",
            "date": "2021-02-25T09:22:22",
            "name": "ppc: qemu: Convert qemu-ppce500 to driver model and enable additional driver support",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/230985/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1444231/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1444231/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 spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=85.214.62.61; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20161025 header.b=tYobePgP;\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=gmail.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de",
            "phobos.denx.de;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.b=\"tYobePgP\";\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=gmail.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=bmeng.cn@gmail.com"
        ],
        "Received": [
            "from phobos.denx.de (phobos.denx.de [85.214.62.61])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (4096 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 4DmSGc5Bnpz9s1l\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 25 Feb 2021 20:31:36 +1100 (AEDT)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 323358206F;\n\tThu, 25 Feb 2021 10:31:16 +0100 (CET)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 66E75812E6; Thu, 25 Feb 2021 10:25:48 +0100 (CET)",
            "from mail-ed1-x536.google.com (mail-ed1-x536.google.com\n [IPv6:2a00:1450:4864:20::536])\n (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id CEF6E80505\n for <u-boot@lists.denx.de>; Thu, 25 Feb 2021 10:25:41 +0100 (CET)",
            "by mail-ed1-x536.google.com with SMTP id h10so5907346edl.6\n for <u-boot@lists.denx.de>; Thu, 25 Feb 2021 01:25:41 -0800 (PST)",
            "from pek-vx-bsp2.wrs.com\n (ec2-44-242-66-180.us-west-2.compute.amazonaws.com. [44.242.66.180])\n by smtp.gmail.com with ESMTPSA id k22sm2987368edv.33.2021.02.25.01.25.37\n (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);\n Thu, 25 Feb 2021 01:25:40 -0800 (PST)"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham\n autolearn_force=no version=3.4.2",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n h=from:to:cc:subject:date:message-id:in-reply-to:references;\n bh=I6+SSqnYgz4wSQ6SgQkOFZNlhaH1e/pVTL+wrZ6cV2A=;\n b=tYobePgPvVbR6MHNJKvGUSTQoBY+3ts0HVwOCFCGRBKTo4xYxceZWz3u42JaWjAbnA\n em7dq6Gf4UTsModUAV8t2VBpUCdRixOy7T2cl1Rffx8fKc2M6FLbQyVn+37YoM2e3koY\n n4QK13YooauO9W8t8XVrf5nMPigNfYqTqRRnzyu/6BUG82Vm1znjAYP2rOX0SMcRLBSZ\n CeDsbjlDxEDQYB+c57MmE8+gCTnjW/8tJ9G2q0KuANuxVZLiA+9/9Xba/2GTcHX/wM1n\n xs3KYStMWulWWTfeP+qVWGoe0+9cF3kstCwdsTnySAYhUXshjOO9nJEH/KDDXG2Uf5he\n OFQQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20161025;\n h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n :references;\n bh=I6+SSqnYgz4wSQ6SgQkOFZNlhaH1e/pVTL+wrZ6cV2A=;\n b=cCgr7500H4iG6uZar/98G7XgnL9j2+Sqm4p5No/i/KTlGuZ+PkCwNaJjh+oyQ2+fnP\n dGZg3YfUGCa4Vzt5v7nJ4Qn/EmIVwn6OsU8gjLt7XyRbVf5kZcfyeFvJvekrdWT2BwHE\n ijTg2jC9Y7WiZ+ZzrZ/DnQfk1TjOjTZkcP3BpRgjzyOthVpm91d22lo94JNgqiNxZLa+\n VVIm0jIftxngsB/dz+LlqymMg6+F4bjeZZ+TzrfeR4Y8druQSQQ+8erZiVshpJqQ/w3y\n caqHDf0PetCJhb8L/MyntibVdqiTGVBvpQoU9GQibfzfkqu0M8ZpJD5gTMe5TvsKLd0m\n ohcw==",
        "X-Gm-Message-State": "AOAM531eRNukJoK5AI2GH9YvfsdBKApKmoxps8Z8L2VPrXYSRMwf2og3\n 5Uyxbs1LxKb8Uo5lmA64djk=",
        "X-Google-Smtp-Source": "\n ABdhPJzn1mMyFSAq2qkizVdgAdLx5xAfVo43xB4GJcb/dDzfuj9J6hEvzx29odUI81y2Z0zgZCcDVA==",
        "X-Received": "by 2002:aa7:c150:: with SMTP id r16mr1895303edp.96.1614245140842;\n Thu, 25 Feb 2021 01:25:40 -0800 (PST)",
        "From": "Bin Meng <bmeng.cn@gmail.com>",
        "To": "Simon Glass <sjg@chromium.org>, Alexander Graf <agraf@csgraf.de>,\n Priyanka Jain <priyanka.jain@nxp.com>",
        "Cc": "U-Boot Mailing List <u-boot@lists.denx.de>, Tom Rini <trini@konsulko.com>",
        "Subject": "[PATCH v3 31/38] dm: sysreset: Add a Kconfig option for the 'reset'\n command",
        "Date": "Thu, 25 Feb 2021 17:22:52 +0800",
        "Message-Id": "<1614244979-48216-32-git-send-email-bmeng.cn@gmail.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1614244979-48216-1-git-send-email-bmeng.cn@gmail.com>",
        "References": "<1614244979-48216-1-git-send-email-bmeng.cn@gmail.com>",
        "X-BeenThere": "u-boot@lists.denx.de",
        "X-Mailman-Version": "2.1.34",
        "Precedence": "list",
        "List-Id": "U-Boot discussion <u-boot.lists.denx.de>",
        "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>",
        "List-Archive": "<https://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 <mailto:u-boot-request@lists.denx.de?subject=subscribe>",
        "Errors-To": "u-boot-bounces@lists.denx.de",
        "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>",
        "X-Virus-Scanned": "clamav-milter 0.102.4 at phobos.denx.de",
        "X-Virus-Status": "Clean"
    },
    "content": "sysreset uclass driver provides an implementation of 'reset'\ncommand using the sysreset_ APIs unconditionally. It also\nsupports the 'poweroff' command using the sysreset_ APIs,\nbut under a Kconfig option CONFIG_SYSRESET_CMD_POWEROFF.\n\nLet's do the same for the 'reset' command, by introducing a\nnew Kconfig option CONFIG_SYSRESET_CMD_RESET, and set it to\non by default, to allow a board that don't have a sysreset\nreset driver yet, but have a sysreset poweroff driver to\ncompile without any issue.\n\nSigned-off-by: Bin Meng <bmeng.cn@gmail.com>\nReviewed-by: Simon Glass <sjg@chromium.org>\nReviewed-by: Priyanka Jain <priyanka.jain@nxp.com>\n\n---\n\n(no changes since v2)\n\nChanges in v2:\n- new patch: dm: sysreset: Add a Kconfig option for the 'reset' command\n\n drivers/sysreset/Kconfig           | 6 ++++++\n drivers/sysreset/sysreset-uclass.c | 2 ++\n 2 files changed, 8 insertions(+)",
    "diff": "diff --git a/drivers/sysreset/Kconfig b/drivers/sysreset/Kconfig\nindex 0e5c7c9..968dfa4 100644\n--- a/drivers/sysreset/Kconfig\n+++ b/drivers/sysreset/Kconfig\n@@ -33,6 +33,12 @@ config TPL_SYSRESET\n \n if SYSRESET\n \n+config SYSRESET_CMD_RESET\n+\tbool \"sysreset implementation of the reset command\"\n+\tdefault y\n+\thelp\n+\t  Enable sysreset implementation of the reset command.\n+\n if CMD_POWEROFF\n \n config SYSRESET_CMD_POWEROFF\ndiff --git a/drivers/sysreset/sysreset-uclass.c b/drivers/sysreset/sysreset-uclass.c\nindex a9908eb..6c9dc7a 100644\n--- a/drivers/sysreset/sysreset-uclass.c\n+++ b/drivers/sysreset/sysreset-uclass.c\n@@ -119,6 +119,7 @@ void reset_cpu(ulong addr)\n }\n \n \n+#if IS_ENABLED(CONFIG_SYSRESET_CMD_RESET)\n int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])\n {\n \tprintf(\"resetting ...\\n\");\n@@ -128,6 +129,7 @@ int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])\n \n \treturn 0;\n }\n+#endif\n \n #if IS_ENABLED(CONFIG_SYSRESET_CMD_POWEROFF)\n int do_poweroff(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])\n",
    "prefixes": [
        "v3",
        "31/38"
    ]
}