get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 810361,
    "url": "http://patchwork.ozlabs.org/api/patches/810361/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20170906014950.132960-4-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": "<20170906014950.132960-4-sjg@chromium.org>",
    "list_archive_url": null,
    "date": "2017-09-06T01:49:47",
    "name": "[U-Boot,v3,3/6] dm: x86: Update timer_get_boot_us to work before DM is ready",
    "commit_ref": null,
    "pull_url": null,
    "state": "rejected",
    "archived": false,
    "hash": "56750d55ad29d1bd06ab4195e7316c9e76b8e60b",
    "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/20170906014950.132960-4-sjg@chromium.org/mbox/",
    "series": [
        {
            "id": 1680,
            "url": "http://patchwork.ozlabs.org/api/series/1680/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=1680",
            "date": "2017-09-06T01:49:44",
            "name": "x86: bootstage: Fix bootstage operation on link",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/1680/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/810361/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/810361/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=\"smvZf/nz\"; dkim-atps=neutral"
        ],
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xn65s1Pg8z9sNq\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed,  6 Sep 2017 11:52:16 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 935F3C21E01; Wed,  6 Sep 2017 01:51:23 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 1CC8AC21DF7;\n\tWed,  6 Sep 2017 01:51:15 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 29C03C21DBE; Wed,  6 Sep 2017 01:50:18 +0000 (UTC)",
            "from mail-oi0-f50.google.com (mail-oi0-f50.google.com\n\t[209.85.218.50])\n\tby lists.denx.de (Postfix) with ESMTPS id EEB0BC21EB9\n\tfor <u-boot@lists.denx.de>; Wed,  6 Sep 2017 01:50:17 +0000 (UTC)",
            "by mail-oi0-f50.google.com with SMTP id n18so34507344oig.2\n\tfor <u-boot@lists.denx.de>; Tue, 05 Sep 2017 18:50:17 -0700 (PDT)",
            "from kiwi.bld.corp.google.com ([2620:0:10f2:0:899a:2ed0:e52d:6fc6])\n\tby smtp.gmail.com with ESMTPSA id\n\tk129sm2060987oib.33.2017.09.05.18.50.13\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tTue, 05 Sep 2017 18:50:15 -0700 (PDT)",
            "by kiwi.bld.corp.google.com (Postfix, from userid 121222)\n\tid C60481405D6; Tue,  5 Sep 2017 19:50:12 -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=Lzc0aJo2Kt4IW3U0svFFog7cMWTmIa1EgiKVvaCYQCM=;\n\tb=smvZf/nzMvs8rP6vCF1eu1emmY93D4z7NF0SYSa6dGnMDjnTqBXVWhU4w/8Wys1j4K\n\tKwfA1IICAnSlhpuD533KkDmhTJB4G6Tuj+8oOZnsmvCjm9oCpiT9UkGlsYr/U2mRiDmm\n\tgcKm6g24dahJG7j5s/phm41jtbj3iMqpKDyV1QvkPzMIsl6DViUMAXqyCgweWQg8Wa3H\n\tJJmJ4rfZ76u1EqAdDFnNOD0te7BAFSrF9UuWK7ojbgDn6CLABW6tSvJhcVid2v2L+o7E\n\tAbU4quDzdFbvvtfZ3CD4XWoVtVRwlZLNbPyS3anPw6ifhV21okTBRdSdCEB3hmAD7ltu\n\tdNqw==",
        "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=Lzc0aJo2Kt4IW3U0svFFog7cMWTmIa1EgiKVvaCYQCM=;\n\tb=JZyWxwPc+5Li5G7yrQA5MlB8XlUBIgYwSCVvEGvFyXd2uhAWGiZeXanuMhHc7qqcIA\n\twGRvzyGiyWd7gzzZqFYZXxKG+euBEQPg55MCwu5NU/Kidc4p7hWQJDpZdqHuR8pVy0As\n\tAiZwHao8xMBJGm7wgePcz3b4nG8jv0ZuHhjZuyDMLWhrbdSbVoR+TIhC8LCfw7Fy3Mmy\n\t8yVKqJeT87gdLDltypynwBd48dvRcuYoCE3rXI/tJKAolOYej8JkvM4KqJm5wETsaqLN\n\tmOfmTkzt0PKjS3FE17cM2XmoOwKMOzUZJP2ohqWX7qh9wIc1b0mBRzL9XqvW7Xo8bJQ+\n\t/uIg==",
        "X-Gm-Message-State": "AHPjjUj11p6g1kuPR0c16mstP2XkSP+Gi7mCP/fRJjUglWZ/bfCOLMKS\n\t3VUs8pQS8xzqcKTkUwzBnQ==",
        "X-Google-Smtp-Source": "ADKCNb6oKwT8G6UKRE78m37bOo4ULIEGImCEqzeIK9gOqL/f/MAW7Lj/X18xJLiczaN+r2ivHcqcrQ==",
        "X-Received": "by 10.202.224.130 with SMTP id\n\tx124mr1066185oig.100.1504662616587; \n\tTue, 05 Sep 2017 18:50:16 -0700 (PDT)",
        "From": "Simon Glass <sjg@chromium.org>",
        "To": "U-Boot Mailing List <u-boot@lists.denx.de>",
        "Date": "Tue,  5 Sep 2017 19:49:47 -0600",
        "Message-Id": "<20170906014950.132960-4-sjg@chromium.org>",
        "X-Mailer": "git-send-email 2.14.1.581.gf28d330327-goog",
        "In-Reply-To": "<20170906014950.132960-1-sjg@chromium.org>",
        "References": "<20170906014950.132960-1-sjg@chromium.org>",
        "Subject": "[U-Boot] [PATCH v3 3/6] dm: x86: Update timer_get_boot_us to work\n\tbefore DM is ready",
        "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": "Use the new separate init function so that we can make use of the timer\nbefore driver model is started up.\n\nAt some point we should consider adding the microsecond timer to the timer\nuclass interface since it would reduce the amount of plumbing here\nslightly.\n\nSigned-off-by: Simon Glass <sjg@chromium.org>\n---\n\nChanges in v3: None\nChanges in v2:\n- Rebase on top of early timer code and simplify slightly\n\n drivers/timer/tsc_timer.c | 19 ++++++++++++++-----\n 1 file changed, 14 insertions(+), 5 deletions(-)",
    "diff": "diff --git a/drivers/timer/tsc_timer.c b/drivers/timer/tsc_timer.c\nindex 0012fecde0..db49de87a2 100644\n--- a/drivers/timer/tsc_timer.c\n+++ b/drivers/timer/tsc_timer.c\n@@ -295,11 +295,6 @@ ulong notrace timer_get_us(void)\n \treturn get_ticks() / get_tbclk_mhz();\n }\n \n-ulong timer_get_boot_us(void)\n-{\n-\treturn timer_get_us();\n-}\n-\n void __udelay(unsigned long usec)\n {\n \tu64 now = get_ticks();\n@@ -374,6 +369,20 @@ u64 notrace timer_early_get_count(void)\n \treturn rdtsc() - gd->arch.tsc_base;\n }\n \n+ulong timer_get_boot_us(void)\n+{\n+\tif (!gd->timer) {\n+\t\tu64 now_tick;\n+\n+\t\ttsc_timer_ensure_setup();\n+\t\tnow_tick = rdtsc() - gd->arch.tsc_base;\n+\n+\t\treturn now_tick / (gd->arch.clock_rate / 1000000);\n+\t}\n+\n+\treturn timer_get_us();\n+}\n+\n static const struct timer_ops tsc_timer_ops = {\n \t.get_count = tsc_timer_get_count,\n };\n",
    "prefixes": [
        "U-Boot",
        "v3",
        "3/6"
    ]
}