Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/811659/?format=api
{ "id": 811659, "url": "http://patchwork.ozlabs.org/api/patches/811659/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-mtd/patch/20170908153604.28383-4-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": "<20170908153604.28383-4-romain.izard.pro@gmail.com>", "list_archive_url": null, "date": "2017-09-08T15:35:57", "name": "[v1,03/10] clk: at91: pmc: Support backup for programmable clocks", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "77bb222cf6f5267c3916dafc95bc1ed5b9abb54d", "submitter": { "id": 8236, "url": "http://patchwork.ozlabs.org/api/people/8236/?format=api", "name": "Romain Izard", "email": "romain.izard.pro@gmail.com" }, "delegate": { "id": 58324, "url": "http://patchwork.ozlabs.org/api/users/58324/?format=api", "username": "bbrezillon", "first_name": "Boris", "last_name": "Brezillon", "email": "boris.brezillon@free-electrons.com" }, "mbox": "http://patchwork.ozlabs.org/project/linux-mtd/patch/20170908153604.28383-4-romain.izard.pro@gmail.com/mbox/", "series": [ { "id": 2239, "url": "http://patchwork.ozlabs.org/api/series/2239/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-mtd/list/?series=2239", "date": "2017-09-08T15:35:55", "name": "Various patches for SAMA5D2 backup mode", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/2239/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/811659/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/811659/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=\"QZ9NokMu\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"fxfysY/l\"; 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 3xphMx4p0xz9t4c\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat, 9 Sep 2017 01:39:57 +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 1dqLNl-0008Jk-Br; Fri, 08 Sep 2017 15:39:49 +0000", "from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dqLKk-00067Q-CH; Fri, 08 Sep 2017 15:36:47 +0000", "by mail-wr0-x242.google.com with SMTP id g50so1407548wra.3;\n\tFri, 08 Sep 2017 08:36:20 -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\tp199sm1689224wmb.28.2017.09.08.08.36.17\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tFri, 08 Sep 2017 08:36:18 -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=ez5kZkw/gu64X8pgShkHMB02ePisYKbywzGUxeLnhLU=;\n\tb=QZ9NokMuXZGew9/phDpxEz5IhP\n\tKOwWeyJaiot7WzjfCklHUDsnVDe0g+38l3nMzJQfkqbTWGwijJ7kx436Ok4TTvKXvI4MXlfWW8euK\n\tAF0pDYYjOrz7GP7BvcS6MxkbInrASDTKVEE8FZSB5MsNR270hCPp8ZCPXmEMqTVWOtFJQ/2XC6ddB\n\t/wvLvNvDKO3v63GEKnKBXMP3OPQk6I88+RcIrxjJvP7OOPzvU9mSqkE/Nbm6rtRQCT/1rKyihIs2k\n\tU6b2cOiq2ED0ZR6iu+T031Fb6NfKABe+qEGAOVxCBqkNEqNZPZJNGwrp2V7BpUw7OamC2k3hI8u31\n\tfnowMtIA==;", "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=9beE8Cf39tr6tZRj5PuOk2crYg7vW204uQ0hp5zpIWs=;\n\tb=fxfysY/lEXiDbWbCRseZG/7PkmOctGpsH02X2EmNtjvE1Ntn9AYTr+uGo7xnbzFryp\n\tHgyQ3bZabNE3bCGFsE74wt6OpRdBwEPrXTwIuayrah9qMjJyXyM8Baubm4WKo/efpmSG\n\tSsNLHwCGY2c7StHZKuaG6hTo40ijFHP2zl91Eq2zbaYmfqGA17jwtWpCXmjS93/RM+uv\n\t1t864x/7D4GeuxNC9LtWDhlhecTVYnMRIdNkQs0UkqlxGtuwUx1gudO1z3dH6ZmIB2yc\n\tgT65vmgIPB707dRpkkMo2vUr5AWlrc33CQLvNJwI/wbTa/EduonLd9GhHTgI+iaYU0Kn\n\tsaGA==" ], "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=9beE8Cf39tr6tZRj5PuOk2crYg7vW204uQ0hp5zpIWs=;\n\tb=LT8TG0F+Xyi0H1ez1VR6crB0ejLYrF5V+4H3ANqTthK6LP+hzj8Qnm4+CpClHpI/4B\n\trv/mE7iUqnuooCbrlq8MD+7mEHFIndnwPIz973VABSstzvbuyG+ORtoPlSmHg/B2CtpL\n\tS2AUxGA6NUw+78mQzDTaJiPuN8ZiWZ+kXiJmSkns1DmcgRb/29USptJTQBz9x72x96pj\n\t/c1et70oBi66Gxspgg2LDFpiaLmIWoFIQ6M3k5dhaig2E23k4Tm/tPnwnZQW+XrgCHiI\n\t6cgUvGpLGd1n1Lsg+ggSxLOjcqbC4moQHdoLBtoNdq97AzauAwJj1cTgFkCCzRWD5rwe\n\tqIUg==", "X-Gm-Message-State": "AHPjjUjdZgpgKbb0ZgZhPCH1ptjOx3nVn1/WIKuT/lYUatzxAAXBJ1Hx\n\ttVo7jTBivm2Bpg==", "X-Google-Smtp-Source": "ADKCNb4zDKdZlUxvWvNNAbhPe45hRJh6QAn8A+MXH5xh7Zuw4wzc8nzN+7814Q3NAxX9NkX+IzNskw==", "X-Received": "by 10.223.183.133 with SMTP id s5mr2816650wre.145.1504884979413; \n\tFri, 08 Sep 2017 08:36:19 -0700 (PDT)", "From": "Romain Izard <romain.izard.pro@gmail.com>", "To": "Nicolas Ferre <nicolas.ferre@microchip.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\tJonathan Cameron <jic23@kernel.org>,\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 v1 03/10] clk: at91: pmc: Support backup for programmable\n\tclocks", "Date": "Fri, 8 Sep 2017 17:35:57 +0200", "Message-Id": "<20170908153604.28383-4-romain.izard.pro@gmail.com>", "X-Mailer": "git-send-email 2.11.0", "In-Reply-To": "<20170908153604.28383-1-romain.izard.pro@gmail.com>", "References": "<20170908153604.28383-1-romain.izard.pro@gmail.com>", "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ", "X-CRM114-CacheID": "sfid-20170908_083642_681376_C2710089 ", "X-CRM114-Status": "UNSURE ( 9.65 )", "X-CRM114-Notice": "Please train this message.", "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 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/,\n\tno\n\ttrust [2a00:1450:400c:c0c:0:0:0:242 listed in] [list.dnswl.org]\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-iio@vger.kernel.org,\n\tlinux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,\n\tlinux-mtd@lists.infradead.org, linux-serial@vger.kernel.org,\n\tRomain Izard <romain.izard@mobile-devices.fr>,\n\tRomain Izard <romain.izard.pro@gmail.com>, linux-clk@vger.kernel.org, \n\tlinux-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": "From: Romain Izard <romain.izard@mobile-devices.fr>\n\nSave and restore the System Clock and Programmable Clock register for\nthe backup use case.\n\nSigned-off-by: Romain Izard <romain.izard.pro@gmail.com>\n---\n drivers/clk/at91/pmc.c | 5 +++++\n 1 file changed, 5 insertions(+)", "diff": "diff --git a/drivers/clk/at91/pmc.c b/drivers/clk/at91/pmc.c\nindex 07dc2861ad3f..5421b03553ec 100644\n--- a/drivers/clk/at91/pmc.c\n+++ b/drivers/clk/at91/pmc.c\n@@ -66,6 +66,7 @@ static struct\n \tu32 pcr[PMC_MAX_IDS];\n \tu32 audio_pll0;\n \tu32 audio_pll1;\n+\tu32 pckr[3];\n } pmc_cache;\n \n void pmc_register_id(u8 id)\n@@ -103,6 +104,8 @@ static int pmc_suspend(void)\n \t\tregmap_read(pmcreg, AT91_PMC_PCR,\n \t\t\t &pmc_cache.pcr[registered_ids[i]]);\n \t}\n+\tfor (i = 0; i < 3; i++)\n+\t\tregmap_read(pmcreg, AT91_PMC_PCKR(i), &pmc_cache.pckr[i]);\n \n \treturn 0;\n }\n@@ -143,6 +146,8 @@ static void pmc_resume(void)\n \t\t\t pmc_cache.pcr[registered_ids[i]] |\n \t\t\t AT91_PMC_PCR_CMD);\n \t}\n+\tfor (i = 0; i < 3; i++)\n+\t\tregmap_write(pmcreg, AT91_PMC_PCKR(i), pmc_cache.pckr[i]);\n \n \tif (pmc_cache.uckr & AT91_PMC_UPLLEN)\n \t\tmask |= AT91_PMC_LOCKU;\n", "prefixes": [ "v1", "03/10" ] }