Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/809853/?format=api
{ "id": 809853, "url": "http://patchwork.ozlabs.org/api/1.2/patches/809853/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1504562297-25420-1-git-send-email-agust@denx.de/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/1.2/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": "<1504562297-25420-1-git-send-email-agust@denx.de>", "list_archive_url": null, "date": "2017-09-04T21:58:17", "name": "[U-Boot,v2] video: ipuv3_fb: skip IPU shutdown if IPU was not enabled before", "commit_ref": "f8ba7f27740b42f17bf145d0e1e5aec66ac8dc0e", "pull_url": null, "state": "accepted", "archived": false, "hash": "7a2986c87ce311876130caa3b842d3ea1464502b", "submitter": { "id": 872, "url": "http://patchwork.ozlabs.org/api/1.2/people/872/?format=api", "name": "Anatolij Gustschin", "email": "agust@denx.de" }, "delegate": { "id": 1700, "url": "http://patchwork.ozlabs.org/api/1.2/users/1700/?format=api", "username": "ag", "first_name": "Anatolij", "last_name": "Gustschin", "email": "agust@denx.de" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/1504562297-25420-1-git-send-email-agust@denx.de/mbox/", "series": [ { "id": 1459, "url": "http://patchwork.ozlabs.org/api/1.2/series/1459/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=1459", "date": "2017-09-04T21:58:17", "name": "[U-Boot,v2] video: ipuv3_fb: skip IPU shutdown if IPU was not enabled before", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/1459/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/809853/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/809853/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>)", "Received": [ "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xmNy96Ljqz9s9Y\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 5 Sep 2017 07:58:08 +1000 (AEST)", "by lists.denx.de (Postfix, from userid 105)\n\tid 0CFFAC21F3D; Mon, 4 Sep 2017 21:57:58 +0000 (UTC)", "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 888B4C21E1E;\n\tMon, 4 Sep 2017 21:57:56 +0000 (UTC)", "by lists.denx.de (Postfix, from userid 105)\n\tid 70AA1C21E1C; Mon, 4 Sep 2017 21:57:54 +0000 (UTC)", "from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10])\n\tby lists.denx.de (Postfix) with ESMTPS id 1C0B6C21DD7\n\tfor <u-boot@lists.denx.de>; Mon, 4 Sep 2017 21:57:54 +0000 (UTC)", "from frontend01.mail.m-online.net (unknown [192.168.8.182])\n\tby mail-out.m-online.net (Postfix) with ESMTP id 3xmNxs6K0Yz1qsCQ;\n\tMon, 4 Sep 2017 23:57:53 +0200 (CEST)", "from localhost (dynscan1.mnet-online.de [192.168.6.70])\n\tby mail.m-online.net (Postfix) with ESMTP id 3xmNxs5wwTz3jgY0;\n\tMon, 4 Sep 2017 23:57:53 +0200 (CEST)", "from mail.mnet-online.de ([192.168.8.182])\n\tby localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new,\n\tport 10024)\n\twith ESMTP id tgPXPn6Ca93s; Mon, 4 Sep 2017 23:57:53 +0200 (CEST)", "from crub.agik.hopto.org (p4FCB4DA5.dip0.t-ipconnect.de\n\t[79.203.77.165]) (using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby mail.mnet-online.de (Postfix) with ESMTPSA;\n\tMon, 4 Sep 2017 23:57:53 +0200 (CEST)" ], "X-Spam-Checker-Version": "SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de", "X-Spam-Level": "", "X-Spam-Status": "No, score=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,\n\tRCVD_IN_MSPIKE_H3,\n\tRCVD_IN_MSPIKE_WL autolearn=unavailable autolearn_force=no\n\tversion=3.4.0", "X-Virus-Scanned": "amavisd-new at mnet-online.de", "X-Auth-Info": "sd8hMoBScTvYJEYPRTI2oJ0og2t/DlDOyWQAE/fcSO8=", "From": "Anatolij Gustschin <agust@denx.de>", "To": "u-boot@lists.denx.de", "Date": "Mon, 4 Sep 2017 23:58:17 +0200", "Message-Id": "<1504562297-25420-1-git-send-email-agust@denx.de>", "X-Mailer": "git-send-email 2.7.4", "Subject": "[U-Boot] [PATCH v2] video: ipuv3_fb: skip IPU shutdown if IPU was\n\tnot enabled before", "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": "Boards can skip display interface init using board_video_skip().\nIf display interface was not initialized (e.g. no ipuv3 framebuffer\nregistered or IPU clock disabled), booting Linux stops due to the\ncrash in IPU shutdown function, when accessing IPU registers.\nCheck IPU clock and skip shutdown if clock is not enabled.\n\nSigned-off-by: Anatolij Gustschin <agust@denx.de>\n---\nChanges in v2:\n- fixed build breakage when building mx5 targets\n\n drivers/video/ipu.h | 1 +\n drivers/video/ipu_common.c | 5 +++++\n drivers/video/mxc_ipuv3_fb.c | 3 +++\n 3 files changed, 9 insertions(+)", "diff": "diff --git a/drivers/video/ipu.h b/drivers/video/ipu.h\nindex 348be58..ff91d18 100644\n--- a/drivers/video/ipu.h\n+++ b/drivers/video/ipu.h\n@@ -253,6 +253,7 @@ struct clk *clk_get_parent(struct clk *clk);\n \n void ipu_dump_registers(void);\n int ipu_probe(void);\n+bool ipu_clk_enabled(void);\n \n void ipu_dmfc_init(int dmfc_type, int first);\n void ipu_init_dc_mappings(void);\ndiff --git a/drivers/video/ipu_common.c b/drivers/video/ipu_common.c\nindex f8d4488..f259fb9 100644\n--- a/drivers/video/ipu_common.c\n+++ b/drivers/video/ipu_common.c\n@@ -1243,3 +1243,8 @@ int ipu_set_ldb_clock(int rate)\n \n \treturn 0;\n }\n+\n+bool ipu_clk_enabled(void)\n+{\n+\treturn g_ipu_clk_enabled;\n+}\ndiff --git a/drivers/video/mxc_ipuv3_fb.c b/drivers/video/mxc_ipuv3_fb.c\nindex 0d0a0a9..1ab5cb7 100644\n--- a/drivers/video/mxc_ipuv3_fb.c\n+++ b/drivers/video/mxc_ipuv3_fb.c\n@@ -571,6 +571,9 @@ void ipuv3_fb_shutdown(void)\n \tint i;\n \tstruct ipu_stat *stat = (struct ipu_stat *)IPU_STAT;\n \n+\tif (!ipu_clk_enabled())\n+\t\treturn;\n+\n \tfor (i = 0; i < ARRAY_SIZE(mxcfb_info); i++) {\n \t\tstruct fb_info *fbi = mxcfb_info[i];\n \t\tif (fbi) {\n", "prefixes": [ "U-Boot", "v2" ] }