get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 806257,
    "url": "http://patchwork.ozlabs.org/api/patches/806257/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20170827152351.20609-5-sjg@chromium.org/",
    "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": "<20170827152351.20609-5-sjg@chromium.org>",
    "list_archive_url": null,
    "date": "2017-08-27T15:23:49",
    "name": "[U-Boot,v2,4/6] bootstage: Drop unused options",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "a80dc193ed0271217e03281ea0c54ba9c7cbae68",
    "submitter": {
        "id": 6170,
        "url": "http://patchwork.ozlabs.org/api/people/6170/?format=api",
        "name": "Simon Glass",
        "email": "sjg@chromium.org"
    },
    "delegate": {
        "id": 56520,
        "url": "http://patchwork.ozlabs.org/api/users/56520/?format=api",
        "username": "bmeng",
        "first_name": "Bin",
        "last_name": "Meng",
        "email": "bmeng.cn@gmail.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20170827152351.20609-5-sjg@chromium.org/mbox/",
    "series": [
        {
            "id": 26,
            "url": "http://patchwork.ozlabs.org/api/series/26/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=26",
            "date": "2017-08-27T15:23:45",
            "name": "x86: bootstage: Fix bootstage operation on link",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/26/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/806257/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/806257/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;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=google.com header.i=@google.com\n\theader.b=\"FlaJrCRE\"; dkim-atps=neutral"
        ],
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xgJdG03kkz9s8V\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 28 Aug 2017 01:25:53 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 94CACC22235; Sun, 27 Aug 2017 15:25:24 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 4C9D3C22233;\n\tSun, 27 Aug 2017 15:24:51 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid E7FDAC2224A; Sun, 27 Aug 2017 15:24:09 +0000 (UTC)",
            "from mail-oi0-f46.google.com (mail-oi0-f46.google.com\n\t[209.85.218.46])\n\tby lists.denx.de (Postfix) with ESMTPS id A1E3EC22222\n\tfor <u-boot@lists.denx.de>; Sun, 27 Aug 2017 15:24:05 +0000 (UTC)",
            "by mail-oi0-f46.google.com with SMTP id g127so14959609oic.1\n\tfor <u-boot@lists.denx.de>; Sun, 27 Aug 2017 08:24:05 -0700 (PDT)",
            "from kaki.bld.corp.google.com ([100.100.197.131])\n\tby smtp.gmail.com with ESMTPSA id\n\tn8sm12383915oif.26.2017.08.27.08.24.00\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tSun, 27 Aug 2017 08:24:01 -0700 (PDT)",
            "by kaki.bld.corp.google.com (Postfix, from userid 121222)\n\tid BFBCC40197; Sun, 27 Aug 2017 09:23:59 -0600 (MDT)"
        ],
        "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_DNSWL_NONE,\n\tRCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,\n\tT_DKIM_INVALID autolearn=unavailable\n\tautolearn_force=no version=3.4.0",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n\ts=20161025; \n\th=sender:from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=xI2jQBSS3GHTcaoyPE+tnsES/CW+yIKEEm3r+hnhpgA=;\n\tb=FlaJrCREtcRXar/P4BK9Q+OsS3ZT8rTeWRog6veDU6KtYFI/gEr+2F7mNp42OFMhRC\n\txXKZ7Q7L24mkkmehdfRJ0vq95HFyjWveukcYZWwwGRlFZ4rfMQHIrzlCKIOq8HKmUji3\n\tj11WGJ2Z/zAeNMEyqyuCL1CTYt2uYZ7aVY1u+WpC+pE7N5j+pckPMVEoA7XGjXPH06Dt\n\tC4PfCchEEpLPMKPAzWlL7gxOCoJZp+seypWft9+YKWWFajNhW/etSqPa2F9gkTOR6pTB\n\triPiWCz+wfELcB2aRXoEwg8la/QLk6BjbjkcDxGSNt0Gq5mzhOkQxKd129EkQSXkBZQ2\n\tZobg==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:sender:from:to:cc:subject:date:message-id\n\t:in-reply-to:references;\n\tbh=xI2jQBSS3GHTcaoyPE+tnsES/CW+yIKEEm3r+hnhpgA=;\n\tb=Avp4i66hi9WRrCJVOAf/3Gt3mIuQX0qiDIL3h0enLpTfiYMXW4UMsCEoX4QykuHE15\n\tZHfQpL1g+SLwRHO5YTByDnh+9VGoyleNlpR5Q2JGKE/rQlaDjXVXiikLu5DzLp6s9mAD\n\t3tfqazUyf5uGErrMaH7mVRknIS4ECwarHGP451mh1TGVHOQ3W9ChQ2y+nuIXZ9zgx/6j\n\t1C0JP3zEOo7hy3R38iigQTwBGB3ptLZe1XdHb/sbfOpffbmkP7Ccnic0U0R1oqjUfY1O\n\t0CiKVoQz3F/QXnh9xXprej18NLUDK84RY+MzFqQAwWVHio1ZJ2WO60Cbvn5PWkp9SY3V\n\teHuA==",
        "X-Gm-Message-State": "AHYfb5hH/frZl9HZ1JiHNU50pbXH5JiZG/n4PWh1dc+3BpMEYPWbdIEH\n\tkjUdpBrlHZCh2e6wC1sKWA==",
        "X-Google-Smtp-Source": "ADKCNb4MAcCuUMRmazf/dYRYOIbM+wfCmr1qk2hXOJE5GN/bOkaIMjhDlORVAla0uXSwvotISYPBDA==",
        "X-Received": "by 10.202.83.212 with SMTP id h203mr5877290oib.184.1503847444261;\n\tSun, 27 Aug 2017 08:24:04 -0700 (PDT)",
        "From": "Simon Glass <sjg@chromium.org>",
        "To": "U-Boot Mailing List <u-boot@lists.denx.de>",
        "Date": "Sun, 27 Aug 2017 09:23:49 -0600",
        "Message-Id": "<20170827152351.20609-5-sjg@chromium.org>",
        "X-Mailer": "git-send-email 2.14.1.342.g6490525c54-goog",
        "In-Reply-To": "<20170827152351.20609-1-sjg@chromium.org>",
        "References": "<20170827152351.20609-1-sjg@chromium.org>",
        "Cc": "Jagan Teki <jagan@openedev.com>,\n\tMaxime Ripard <maxime.ripard@free-electrons.com>",
        "Subject": "[U-Boot] [PATCH v2 4/6] bootstage: Drop unused options",
        "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 CONFIG_BOOTSTAGE_USER_COUNT option is no-longer needed since we can now\nsupport any number of user IDs. Also BOOTSTAGE_ID_COUNT is not needed now.\n\nDrop these unused options.\n\nSigned-off-by: Simon Glass <sjg@chromium.org>\n---\n\nChanges in v2: None\n\n common/Kconfig                     | 9 ---------\n common/bootstage.c                 | 2 +-\n configs/sandbox_defconfig          | 1 -\n configs/sandbox_flattree_defconfig | 1 -\n configs/sandbox_noblk_defconfig    | 1 -\n configs/sandbox_spl_defconfig      | 1 -\n include/bootstage.h                | 6 ------\n 7 files changed, 1 insertion(+), 20 deletions(-)",
    "diff": "diff --git a/common/Kconfig b/common/Kconfig\nindex 4d8cae96109..abd4146922e 100644\n--- a/common/Kconfig\n+++ b/common/Kconfig\n@@ -46,15 +46,6 @@ config BOOTSTAGE_REPORT\n \t\t 29,916,167 26,005,792  bootm_start\n \t\t 30,361,327    445,160  start_kernel\n \n-config BOOTSTAGE_USER_COUNT\n-\tint \"Number of boot ID numbers available for user use\"\n-\tdefault 20\n-\thelp\n-\t  This is the number of available user bootstage records.\n-\t  Each time you call bootstage_mark(BOOTSTAGE_ID_ALLOC, ...)\n-\t  a new ID will be allocated from this stash. If you exceed\n-\t  the limit, recording will stop.\n-\n config BOOTSTAGE_RECORD_COUNT\n \tint \"Number of boot stage records to store\"\n \tdefault 30\ndiff --git a/common/bootstage.c b/common/bootstage.c\nindex 61479d7f079..efc99fc6810 100644\n--- a/common/bootstage.c\n+++ b/common/bootstage.c\n@@ -456,7 +456,7 @@ int bootstage_unstash(const void *base, int size)\n \n \tif (data->rec_count + hdr->count > RECORD_COUNT) {\n \t\tdebug(\"%s: Bootstage has %d records, we have space for %d\\n\"\n-\t\t\t\"- please increase CONFIG_BOOTSTAGE_USER_COUNT\\n\",\n+\t\t\t\"- please increase CONFIG_BOOTSTAGE_RECORD_COUNT\\n\",\n \t\t      __func__, hdr->count, RECORD_COUNT - data->rec_count);\n \t\treturn -ENOSPC;\n \t}\ndiff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig\nindex 070262fe868..4e145e83bba 100644\n--- a/configs/sandbox_defconfig\n+++ b/configs/sandbox_defconfig\n@@ -6,7 +6,6 @@ CONFIG_FIT_SIGNATURE=y\n CONFIG_FIT_VERBOSE=y\n CONFIG_BOOTSTAGE=y\n CONFIG_BOOTSTAGE_REPORT=y\n-CONFIG_BOOTSTAGE_USER_COUNT=32\n CONFIG_BOOTSTAGE_FDT=y\n CONFIG_BOOTSTAGE_STASH=y\n CONFIG_BOOTSTAGE_STASH_ADDR=0x0\ndiff --git a/configs/sandbox_flattree_defconfig b/configs/sandbox_flattree_defconfig\nindex 1eecf1eb9d9..124b363662a 100644\n--- a/configs/sandbox_flattree_defconfig\n+++ b/configs/sandbox_flattree_defconfig\n@@ -6,7 +6,6 @@ CONFIG_FIT_SIGNATURE=y\n CONFIG_FIT_VERBOSE=y\n CONFIG_BOOTSTAGE=y\n CONFIG_BOOTSTAGE_REPORT=y\n-CONFIG_BOOTSTAGE_USER_COUNT=32\n CONFIG_BOOTSTAGE_FDT=y\n CONFIG_BOOTSTAGE_STASH=y\n CONFIG_BOOTSTAGE_STASH_ADDR=0x0\ndiff --git a/configs/sandbox_noblk_defconfig b/configs/sandbox_noblk_defconfig\nindex 612aed50c5a..866e5c84ec4 100644\n--- a/configs/sandbox_noblk_defconfig\n+++ b/configs/sandbox_noblk_defconfig\n@@ -5,7 +5,6 @@ CONFIG_FIT_SIGNATURE=y\n CONFIG_FIT_VERBOSE=y\n CONFIG_BOOTSTAGE=y\n CONFIG_BOOTSTAGE_REPORT=y\n-CONFIG_BOOTSTAGE_USER_COUNT=32\n CONFIG_BOOTSTAGE_FDT=y\n CONFIG_BOOTSTAGE_STASH=y\n CONFIG_BOOTSTAGE_STASH_ADDR=0x0\ndiff --git a/configs/sandbox_spl_defconfig b/configs/sandbox_spl_defconfig\nindex d1ccdfe9d38..6620c1d12c0 100644\n--- a/configs/sandbox_spl_defconfig\n+++ b/configs/sandbox_spl_defconfig\n@@ -12,7 +12,6 @@ CONFIG_FIT_VERBOSE=y\n CONFIG_SPL_LOAD_FIT=y\n CONFIG_BOOTSTAGE=y\n CONFIG_BOOTSTAGE_REPORT=y\n-CONFIG_BOOTSTAGE_USER_COUNT=32\n CONFIG_BOOTSTAGE_FDT=y\n CONFIG_BOOTSTAGE_STASH=y\n CONFIG_BOOTSTAGE_STASH_ADDR=0x0\ndiff --git a/include/bootstage.h b/include/bootstage.h\nindex c5d93f57fd7..7a524782bae 100644\n--- a/include/bootstage.h\n+++ b/include/bootstage.h\n@@ -12,11 +12,6 @@\n #ifndef _BOOTSTAGE_H\n #define _BOOTSTAGE_H\n \n-/* Define this for host tools */\n-#ifndef CONFIG_BOOTSTAGE_USER_COUNT\n-#define CONFIG_BOOTSTAGE_USER_COUNT\t20\n-#endif\n-\n /* Flags for each bootstage record */\n enum bootstage_flags {\n \tBOOTSTAGEF_ERROR\t= 1 << 0,\t/* Error record */\n@@ -208,7 +203,6 @@ enum bootstage_id {\n \n \t/* a few spare for the user, from here */\n \tBOOTSTAGE_ID_USER,\n-\tBOOTSTAGE_ID_COUNT = BOOTSTAGE_ID_USER + CONFIG_BOOTSTAGE_USER_COUNT,\n \tBOOTSTAGE_ID_ALLOC,\n };\n \n",
    "prefixes": [
        "U-Boot",
        "v2",
        "4/6"
    ]
}