Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/906574/?format=api
{ "id": 906574, "url": "http://patchwork.ozlabs.org/api/patches/906574/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20180430083431.72606-1-manu@freebsd.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": "<20180430083431.72606-1-manu@freebsd.org>", "list_archive_url": null, "date": "2018-04-30T08:34:31", "name": "[U-Boot,3/5] api: Flush cache when closing api", "commit_ref": null, "pull_url": null, "state": "deferred", "archived": false, "hash": "8bce27438b9c3e47da73f799b4522accc5d104ff", "submitter": { "id": 69285, "url": "http://patchwork.ozlabs.org/api/people/69285/?format=api", "name": "Emmanuel Vadot", "email": "manu@freebsd.org" }, "delegate": { "id": 3651, "url": "http://patchwork.ozlabs.org/api/users/3651/?format=api", "username": "trini", "first_name": "Tom", "last_name": "Rini", "email": "trini@ti.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20180430083431.72606-1-manu@freebsd.org/mbox/", "series": [ { "id": 41744, "url": "http://patchwork.ozlabs.org/api/series/41744/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=41744", "date": "2018-04-30T08:34:31", "name": null, "version": 1, "mbox": "http://patchwork.ozlabs.org/series/41744/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/906574/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/906574/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\tdmarc=none (p=none dis=none) header.from=freebsd.org" ], "Received": [ "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 40ZJH52cTyz9s0W\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 30 Apr 2018 18:53:37 +1000 (AEST)", "by lists.denx.de (Postfix, from userid 105)\n\tid 14734C21F01; Mon, 30 Apr 2018 08:46:28 +0000 (UTC)", "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 1FAC1C21F7D;\n\tMon, 30 Apr 2018 08:36:58 +0000 (UTC)", "by lists.denx.de (Postfix, from userid 105)\n\tid E499AC21EF1; Mon, 30 Apr 2018 08:34:48 +0000 (UTC)", "from mail.blih.net (mail.blih.net [212.83.177.182])\n\tby lists.denx.de (Postfix) with ESMTPS id 0F509C21EF7\n\tfor <u-boot@lists.denx.de>; Mon, 30 Apr 2018 08:34:45 +0000 (UTC)", "from mail.blih.net (mail.blih.net [212.83.177.182])\n\tby mail.blih.net (OpenSMTPD) with ESMTP id 369f7873\n\tfor <u-boot@lists.denx.de>; Mon, 30 Apr 2018 10:34:44 +0200 (CEST)", "from wopr.blih.net (62-210-199-19.rev.poneytelecom.eu\n\t[62.210.199.19])\n\tby mail.blih.net (OpenSMTPD) with ESMTPSA id 19223515\n\tTLS version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO\n\tfor <u-boot@lists.denx.de>; Mon, 30 Apr 2018 10:34:33 +0200 (CEST)", "from elbarto (uid 1001) (envelope-from manu@bidouilliste.com)\n\tid 7c9a4 by wopr.blih.net (DragonFly Mail Agent v0.11);\n\tMon, 30 Apr 2018 10:34:32 +0200" ], "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=UNPARSEABLE_RELAY\n\tautolearn=unavailable autolearn_force=no version=3.4.0", "From": "Emmanuel Vadot <manu@freebsd.org>", "To": "sjg@chromium.org, bmeng.cn@gmail.com, andriy.shevchenko@linux.intel.com, \n\trick@andestech.com, philipp.tomsich@theobroma-systems.com,\n\talbert.u.boot@aribaud.net, xypron.glpk@gmx.de", "Date": "Mon, 30 Apr 2018 10:34:31 +0200", "Message-Id": "<20180430083431.72606-1-manu@freebsd.org>", "X-Mailer": "git-send-email 2.16.3", "Cc": "u-boot@lists.denx.de", "Subject": "[U-Boot] [PATCH 3/5] api: Flush cache when closing api", "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": "Signed-off-by: Emmanuel Vadot <manu@freebsd.org>\n---\n api/api.c | 11 +++++++++++\n 1 file changed, 11 insertions(+)", "diff": "diff --git a/api/api.c b/api/api.c\nindex 7eee2fc083..7d1608b520 100644\n--- a/api/api.c\n+++ b/api/api.c\n@@ -290,6 +290,17 @@ static int API_dev_close(va_list ap)\n \tif (!err)\n \t\tdi->state = DEV_STA_CLOSED;\n \n+#if defined(CONFIG_SYS_HAVE_DCACHE_MAINTENANCE) && \\\n+\t!defined(CONFIG_SYS_DCACHE_OFF)\n+\tif (dcache_status())\n+\t\tflush_dcache_all();\n+#endif\n+#if defined(CONFIG_SYS_HAVE_ICACHE_MAINTENANCE) && \\\n+\t!defined(CONFIG_SYS_ICACHE_OFF)\n+\tif (icache_status())\n+\t\tinvalidate_icache_all();\n+#endif\n+\n \treturn err;\n }\n \n", "prefixes": [ "U-Boot", "3/5" ] }