get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 819482,
    "url": "http://patchwork.ozlabs.org/api/patches/819482/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-pwm/patch/20170928094627.31017-3-romain.izard.pro@gmail.com/",
    "project": {
        "id": 38,
        "url": "http://patchwork.ozlabs.org/api/projects/38/?format=api",
        "name": "Linux PWM development",
        "link_name": "linux-pwm",
        "list_id": "linux-pwm.vger.kernel.org",
        "list_email": "linux-pwm@vger.kernel.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20170928094627.31017-3-romain.izard.pro@gmail.com>",
    "list_archive_url": null,
    "date": "2017-09-28T09:46:21",
    "name": "[v4,2/8] clk: at91: pmc: Save SCSR during suspend",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "44dd33b50c5832eaef64b6fb6f72440520244015",
    "submitter": {
        "id": 8236,
        "url": "http://patchwork.ozlabs.org/api/people/8236/?format=api",
        "name": "Romain Izard",
        "email": "romain.izard.pro@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-pwm/patch/20170928094627.31017-3-romain.izard.pro@gmail.com/mbox/",
    "series": [
        {
            "id": 5525,
            "url": "http://patchwork.ozlabs.org/api/series/5525/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-pwm/list/?series=5525",
            "date": "2017-09-28T09:46:20",
            "name": "Various patches for SAMA5D2 backup mode",
            "version": 4,
            "mbox": "http://patchwork.ozlabs.org/series/5525/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/819482/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/819482/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<linux-pwm-owner@vger.kernel.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=linux-pwm-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"EDhx9qfs\"; dkim-atps=neutral"
        ],
        "Received": [
            "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3y2qdt5NxQz9t3v\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 28 Sep 2017 19:49:06 +1000 (AEST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752354AbdI1JtG (ORCPT <rfc822;incoming@patchwork.ozlabs.org>);\n\tThu, 28 Sep 2017 05:49:06 -0400",
            "from mail-wr0-f194.google.com ([209.85.128.194]:35456 \"EHLO\n\tmail-wr0-f194.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1752485AbdI1Jqn (ORCPT\n\t<rfc822; linux-pwm@vger.kernel.org>); Thu, 28 Sep 2017 05:46:43 -0400",
            "by mail-wr0-f194.google.com with SMTP id n64so1481506wrb.2;\n\tThu, 28 Sep 2017 02:46:42 -0700 (PDT)",
            "from localhost.localdomain (146.187.3.109.rev.sfr.net.\n\t[109.3.187.146]) by smtp.gmail.com with ESMTPSA id\n\tz10sm3272395wre.6.2017.09.28.02.46.40\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tThu, 28 Sep 2017 02:46:40 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=d2QPQyjMsXWSkJdc6MMuWv4m8CSK75I6LdWz80n+/Ss=;\n\tb=EDhx9qfsL6Kaq78TUPShjev3On4kICLXoJLOyCv0K+jwWP4HqxAshVI8YYM+U11tsV\n\tZDGs30yRjq0SUGWs0YiYJIJdTl69RQDsHo8MHlyzcpwICe06SDWe91HnHDvvUbQyrks9\n\tIfU5uAgsxk89HgPB/yWe6zZOsV2yHLRxwImS1fXe01NHUaiQCY/aFGBcyc1PN1zNd4XY\n\tZfxpDACm0JEehJX5WQE+mheoROQOwyY9uOIL/Vi2vPTKQuiyM5ZqRTXqMHgNak7vT0VD\n\tWfkgSvgK/iIaWJ1aFSVRdkKqNb+bM1scwUnp3hq0ArGKlWF1lvV13jklpDl7fEana8Gb\n\t2UqA==",
        "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;\n\tbh=d2QPQyjMsXWSkJdc6MMuWv4m8CSK75I6LdWz80n+/Ss=;\n\tb=FxMhg4LDc+iBIMQ0pDjV/LsiSxe1dW1x2fBV5MPYlaoC4QKkeSmmh7Aqj2FwuiFJ3a\n\trX/70Ql6ZehGSUjAGJ9NWRQMfPLlQh4+HjtJ4YJk2bIfAiOsU/IjQLReK+Hnc78wErTR\n\tb34KGUtPqwDV/Ynuc9nUyEVOe0XYtOrnNqbR6TLSGLaqzEt8H05DwPCQ7tbsa+j+O+NA\n\tCBh2XnCAm3CvaUNLIZLRiUQzORdC1W8pN7EMTV0bOC/xBsI37y6fq4Bz8yHj46tU7RFy\n\tMr/a1px1fxurtnMKB8EHD5USuxjPX5FjOYHITMjNO1jaLuyXURAWi4ZfX+KvUpodWlgO\n\tfsfA==",
        "X-Gm-Message-State": "AHPjjUh4XQX+k+OS5PAS2+zcpSH7uyhsGDgmncrVJ+7sanGii+Bcm3jb\n\tugZ/sB9lA6sEnYjIquX+bAw=",
        "X-Google-Smtp-Source": "AOwi7QAXSDc62njEovdTIkFyuKejN0KmK1bPS7JliNcU9puaDIJG1GsGL/f+pPJ/C1h7q7r0DNt2NQ==",
        "X-Received": "by 10.223.185.84 with SMTP id b20mr3983378wrg.87.1506592001509; \n\tThu, 28 Sep 2017 02:46:41 -0700 (PDT)",
        "From": "Romain Izard <romain.izard.pro@gmail.com>",
        "To": "Boris Brezillon <boris.brezillon@free-electrons.com>,\n\tMichael Turquette <mturquette@baylibre.com>,\n\tStephen Boyd <sboyd@codeaurora.org>, Lee Jones <lee.jones@linaro.org>,\n\tWenyou Yang <wenyou.yang@atmel.com>, Josh Wu <rainyfeeling@outlook.com>,\n\tRichard Weinberger <richard@nod.at>,\n\tDavid Woodhouse <dwmw2@infradead.org>,\n\tBrian Norris <computersforpeace@gmail.com>,\n\tMarek Vasut <marek.vasut@gmail.com>,\n\tCyrille Pitchen <cyrille.pitchen@wedev4u.fr>,\n\tThierry Reding <thierry.reding@gmail.com>,\n\tRichard Genoud <richard.genoud@gmail.com>,\n\tGreg Kroah-Hartman <gregkh@linuxfoundation.org>,\n\tJiri Slaby <jslaby@suse.com>, Alan Stern <stern@rowland.harvard.edu>,\n\tLudovic Desroches <ludovic.desroches@microchip.com>,\n\tNicolas Ferre <nicolas.ferre@microchip.com>,\n\tAlexandre Belloni <alexandre.belloni@free-electrons.com>",
        "Cc": "linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org,\n\tlinux-mtd@lists.infradead.org, linux-pwm@vger.kernel.org,\n\tlinux-serial@vger.kernel.org, linux-usb@vger.kernel.org,\n\tRomain Izard <romain.izard.pro@gmail.com>",
        "Subject": "[PATCH v4 2/8] clk: at91: pmc: Save SCSR during suspend",
        "Date": "Thu, 28 Sep 2017 11:46:21 +0200",
        "Message-Id": "<20170928094627.31017-3-romain.izard.pro@gmail.com>",
        "X-Mailer": "git-send-email 2.11.0",
        "In-Reply-To": "<20170928094627.31017-1-romain.izard.pro@gmail.com>",
        "References": "<20170928094627.31017-1-romain.izard.pro@gmail.com>",
        "Sender": "linux-pwm-owner@vger.kernel.org",
        "Precedence": "bulk",
        "List-ID": "<linux-pwm.vger.kernel.org>",
        "X-Mailing-List": "linux-pwm@vger.kernel.org"
    },
    "content": "The contents of the System Clock Status Register (SCSR) needs to be\nrestored into the System Clock Enable Register (SCER).\n\nAs the bootloader will restore some clocks by itself, the issue can be\nmissed as only the USB controller, the LCD controller, the Image Sensor\ncontroller and the programmable clocks will be impacted.\n\nFix the obvious typo in the suspend/resume code, as the IMR register\ndoes not need to be saved twice.\n\nSigned-off-by: Romain Izard <romain.izard.pro@gmail.com>\nAcked-by: Nicolas Ferre <nicolas.ferre@microchip.com>\n---\n drivers/clk/at91/pmc.c | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/clk/at91/pmc.c b/drivers/clk/at91/pmc.c\nindex 5c2b26de303e..07dc2861ad3f 100644\n--- a/drivers/clk/at91/pmc.c\n+++ b/drivers/clk/at91/pmc.c\n@@ -86,7 +86,7 @@ static int pmc_suspend(void)\n {\n \tint i;\n \n-\tregmap_read(pmcreg, AT91_PMC_IMR, &pmc_cache.scsr);\n+\tregmap_read(pmcreg, AT91_PMC_SCSR, &pmc_cache.scsr);\n \tregmap_read(pmcreg, AT91_PMC_PCSR, &pmc_cache.pcsr0);\n \tregmap_read(pmcreg, AT91_CKGR_UCKR, &pmc_cache.uckr);\n \tregmap_read(pmcreg, AT91_CKGR_MOR, &pmc_cache.mor);\n@@ -129,7 +129,7 @@ static void pmc_resume(void)\n \tif (pmc_cache.pllar != tmp)\n \t\tpr_warn(\"PLLAR was not configured properly by the firmware\\n\");\n \n-\tregmap_write(pmcreg, AT91_PMC_IMR, pmc_cache.scsr);\n+\tregmap_write(pmcreg, AT91_PMC_SCER, pmc_cache.scsr);\n \tregmap_write(pmcreg, AT91_PMC_PCER, pmc_cache.pcsr0);\n \tregmap_write(pmcreg, AT91_CKGR_UCKR, pmc_cache.uckr);\n \tregmap_write(pmcreg, AT91_CKGR_MOR, pmc_cache.mor);\n",
    "prefixes": [
        "v4",
        "2/8"
    ]
}