get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 814290,
    "url": "http://patchwork.ozlabs.org/api/patches/814290/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-mtd/patch/20170915140411.31716-2-romain.izard.pro@gmail.com/",
    "project": {
        "id": 3,
        "url": "http://patchwork.ozlabs.org/api/projects/3/?format=api",
        "name": "Linux MTD development",
        "link_name": "linux-mtd",
        "list_id": "linux-mtd.lists.infradead.org",
        "list_email": "linux-mtd@lists.infradead.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20170915140411.31716-2-romain.izard.pro@gmail.com>",
    "list_archive_url": null,
    "date": "2017-09-15T14:04:03",
    "name": "[v2,1/9] clk: at91: pmc: Wait for clocks when resuming",
    "commit_ref": null,
    "pull_url": null,
    "state": "not-applicable",
    "archived": false,
    "hash": "3c0aefa7e09b25b04e247655ccad78b77581748f",
    "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-mtd/patch/20170915140411.31716-2-romain.izard.pro@gmail.com/mbox/",
    "series": [
        {
            "id": 3316,
            "url": "http://patchwork.ozlabs.org/api/series/3316/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-mtd/list/?series=3316",
            "date": "2017-09-15T14:04:02",
            "name": "Various patches for SAMA5D2 backup mode",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/3316/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/814290/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/814290/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Authentication-Results": [
            "ozlabs.org; spf=none (mailfrom)\n\tsmtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133;\n\thelo=bombadil.infradead.org;\n\tenvelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"OFttLCzZ\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"DHIV2a9T\"; dkim-atps=neutral"
        ],
        "Received": [
            "from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xtxyy6H91z9s7m\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat, 16 Sep 2017 00:06:34 +1000 (AEST)",
            "from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dsrFw-0005ff-RM; Fri, 15 Sep 2017 14:06:08 +0000",
            "from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dsrEu-0003m1-U2; Fri, 15 Sep 2017 14:05:10 +0000",
            "by mail-wm0-x244.google.com with SMTP id r136so2878595wmf.3;\n\tFri, 15 Sep 2017 07:04:46 -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\t55sm1399225wrw.60.2017.09.15.07.04.40\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tFri, 15 Sep 2017 07:04:44 -0700 (PDT)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe:\n\tList-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References:\n\tIn-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID:\n\tContent-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc\n\t:Resent-Message-ID:List-Owner;\n\tbh=Vayr77kqbaog+q+1CnYzSWXbefHZtNBWmDlqW2Uoyco=;\n\tb=OFttLCzZ4gR91ZS8zKdiFKKb5l\n\tL2e/jwCd6S5jAfWaHfwtKvPd5Rq8gr8NhYvxdkNvLTdyRg3CwNnFetWjVAITX96rZXsnNxN3UEQbG\n\tpERKASTBpUBfeobgVhGXIeSz2gQishLkZwS7tyMcMEckDf6TS/cq5MRa6CYbi8vFjgoaZrXW+O7G4\n\tMWIxRLqd9k978+QFV2zLy3QXWhngQyhsS6DVx8ypva6Ebxh+vB5KDHo0wz3V1/ghTRvjRxHDIli2V\n\tWafA9MIE84E2fuLjjFve7WQpQsJhk6lAk8qfjfDWYXQHKCWuNoRJ7kfpZ9tz5h7vfMeksnpw0Gvmh\n\tQsPwwbpA==;",
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=QpAJytz+aiNN6ugMH0pd0IRk4M6Nw+EoUUnBnzUoU6Q=;\n\tb=DHIV2a9TdiWH89jWBKI6sRjXAfqJgVe5qYzlKSZf0hZO77U3hfHFvjgkfIatLK547Y\n\tIYWDXFZpkEqpTcNsTNZrbW+2X9oJ8Lh1W3CpzXP9A1zZ0MY1kBZ265Pag1WF7edMy6Xy\n\tP+eXosvsTFMwYycJ/cuvBTfKMKL6LnmGAa51VFJ5LY4LkU6d5xJiu1QTAKpJVbn4Jjon\n\t3j0rkBPnFtN6+FnXy86XoX9vB2fu7L9tUYCD//kRakcmf0j/1kEyBNIVOuvnyi5Jyleg\n\tQ2bbIhjcOqNzqih/ew3zUXwvEMuKHtX86oDyYwyltw5Gsk7Rnl5ZAdEMTKlGD500EyYU\n\t/khA=="
        ],
        "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=QpAJytz+aiNN6ugMH0pd0IRk4M6Nw+EoUUnBnzUoU6Q=;\n\tb=iw6D4hx2dhTnRvfV5asstLku6+OlIwLB2LkEyoPXACUPmijqWJzhmS7JBl3ykwHgBu\n\tGxEwHXzOCLoWjtoHFyQ0FMDyc0Uut8BZzVnVbxOGQHHDx/0z2uYb5hqEWzOAoR0JhaVn\n\t5ZJxHwyQxGp53rZXR5ivFu4zV2+QfniooQBKZ+0KhkYe2g3D4GPy6fEpHX+He7nRH3l7\n\t9TwtuMRlo75/Yvs2P5sT2DC1U/cnRadTonYXOwdTFFjyrWMGB7RKiC97RrktcvPL6Idq\n\tynrfJbVs3fiR4/ZpuAty31MrfZinbMd55XDXDd2BZAFAgmbHS1B4c/kdPf2ekc1QekkG\n\t0r9g==",
        "X-Gm-Message-State": "AHPjjUjwyw+koH5kw8PHKqFCdjDXEtvQCjE226nzAAyrAiawqbGRsZUR\n\tlGbdokgUVRync0raqsQWHJc=",
        "X-Google-Smtp-Source": "AOwi7QAl2xippvS5p8vsv7LTu8pczrn78LKP+GFjl6fUtAGFUh9arHyp+CJyMv/45ePzYEMy+yl89w==",
        "X-Received": "by 10.28.185.195 with SMTP id j186mr2831376wmf.97.1505484285041; \n\tFri, 15 Sep 2017 07:04:45 -0700 (PDT)",
        "From": "Romain Izard <romain.izard.pro@gmail.com>",
        "To": "Nicolas Ferre <nicolas.ferre@microchip.com>,\n\tAlexandre Belloni <alexandre.belloni@free-electrons.com>,\n\tBoris Brezillon <boris.brezillon@free-electrons.com>,\n\tMichael Turquette <mturquette@baylibre.com>,\n\tStephen Boyd <sboyd@codeaurora.org>,\n\tLudovic Desroches <ludovic.desroches@microchip.com>,\n\tWenyou Yang <wenyou.yang@atmel.com>, Josh Wu <rainyfeeling@outlook.com>, \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\tAlan Stern <stern@rowland.harvard.edu>",
        "Subject": "[PATCH v2 1/9] clk: at91: pmc: Wait for clocks when resuming",
        "Date": "Fri, 15 Sep 2017 16:04:03 +0200",
        "Message-Id": "<20170915140411.31716-2-romain.izard.pro@gmail.com>",
        "X-Mailer": "git-send-email 2.11.0",
        "In-Reply-To": "<20170915140411.31716-1-romain.izard.pro@gmail.com>",
        "References": "<20170915140411.31716-1-romain.izard.pro@gmail.com>",
        "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ",
        "X-CRM114-CacheID": "sfid-20170915_070505_167118_754A2E23 ",
        "X-CRM114-Status": "GOOD (  12.51  )",
        "X-Spam-Score": "-2.0 (--)",
        "X-Spam-Report": "SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-2.0 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\n\tprovider (romain.izard.pro[at]gmail.com)\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature\n\t0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n\tnot necessarily valid\n\t-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from\n\tauthor's domain",
        "X-BeenThere": "linux-mtd@lists.infradead.org",
        "X-Mailman-Version": "2.1.21",
        "Precedence": "list",
        "List-Id": "Linux MTD discussion mailing list <linux-mtd.lists.infradead.org>",
        "List-Unsubscribe": "<http://lists.infradead.org/mailman/options/linux-mtd>,\n\t<mailto:linux-mtd-request@lists.infradead.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.infradead.org/pipermail/linux-mtd/>",
        "List-Post": "<mailto:linux-mtd@lists.infradead.org>",
        "List-Help": "<mailto:linux-mtd-request@lists.infradead.org?subject=help>",
        "List-Subscribe": "<http://lists.infradead.org/mailman/listinfo/linux-mtd>,\n\t<mailto:linux-mtd-request@lists.infradead.org?subject=subscribe>",
        "Cc": "linux-pwm@vger.kernel.org, linux-usb@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org,\n\tlinux-serial@vger.kernel.org, Romain Izard <romain.izard.pro@gmail.com>, \n\tlinux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Sender": "\"linux-mtd\" <linux-mtd-bounces@lists.infradead.org>",
        "Errors-To": "linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org"
    },
    "content": "Wait for the syncronization of all clocks when resuming, not only the\nUPLL clock. Do not use regmap_read_poll_timeout, as it will call BUG()\nwhen interrupts are masked, which is the case in here.\n\nSigned-off-by: Romain Izard <romain.izard.pro@gmail.com>\n---\n drivers/clk/at91/pmc.c | 24 ++++++++++++++++--------\n 1 file changed, 16 insertions(+), 8 deletions(-)",
    "diff": "diff --git a/drivers/clk/at91/pmc.c b/drivers/clk/at91/pmc.c\nindex 775af473fe11..5c2b26de303e 100644\n--- a/drivers/clk/at91/pmc.c\n+++ b/drivers/clk/at91/pmc.c\n@@ -107,10 +107,20 @@ static int pmc_suspend(void)\n \treturn 0;\n }\n \n+static bool pmc_ready(unsigned int mask)\n+{\n+\tunsigned int status;\n+\n+\tregmap_read(pmcreg, AT91_PMC_SR, &status);\n+\n+\treturn ((status & mask) == mask) ? 1 : 0;\n+}\n+\n static void pmc_resume(void)\n {\n-\tint i, ret = 0;\n+\tint i;\n \tu32 tmp;\n+\tu32 mask = AT91_PMC_MCKRDY | AT91_PMC_LOCKA;\n \n \tregmap_read(pmcreg, AT91_PMC_MCKR, &tmp);\n \tif (pmc_cache.mckr != tmp)\n@@ -134,13 +144,11 @@ static void pmc_resume(void)\n \t\t\t     AT91_PMC_PCR_CMD);\n \t}\n \n-\tif (pmc_cache.uckr & AT91_PMC_UPLLEN) {\n-\t\tret = regmap_read_poll_timeout(pmcreg, AT91_PMC_SR, tmp,\n-\t\t\t\t\t       !(tmp & AT91_PMC_LOCKU),\n-\t\t\t\t\t       10, 5000);\n-\t\tif (ret)\n-\t\t\tpr_crit(\"USB PLL didn't lock when resuming\\n\");\n-\t}\n+\tif (pmc_cache.uckr & AT91_PMC_UPLLEN)\n+\t\tmask |= AT91_PMC_LOCKU;\n+\n+\twhile (!pmc_ready(mask))\n+\t\tcpu_relax();\n }\n \n static struct syscore_ops pmc_syscore_ops = {\n",
    "prefixes": [
        "v2",
        "1/9"
    ]
}