Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/805861/?format=api
{ "id": 805861, "url": "http://patchwork.ozlabs.org/api/1.2/patches/805861/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1503666643-15848-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": "<1503666643-15848-1-git-send-email-agust@denx.de>", "list_archive_url": null, "date": "2017-08-25T13:10:43", "name": "[U-Boot] video: ipuv3_fb: skip IPU shutdown if IPU was not enabled before", "commit_ref": "0d1ae97c0299089e85a2980ac76e924e6d4447c6", "pull_url": null, "state": "accepted", "archived": false, "hash": "4eeb835a1892f518ee632c87e606544c3adfd368", "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/1503666643-15848-1-git-send-email-agust@denx.de/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/805861/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/805861/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 3xf1rL09Kgz9s81\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 25 Aug 2017 23:16:00 +1000 (AEST)", "by lists.denx.de (Postfix, from userid 105)\n\tid 38FA4C21EC7; Fri, 25 Aug 2017 13:15:49 +0000 (UTC)", "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 04FC6C21F21;\n\tFri, 25 Aug 2017 13:11:44 +0000 (UTC)", "by lists.denx.de (Postfix, from userid 105)\n\tid 887C0C21EF7; Fri, 25 Aug 2017 13:11:42 +0000 (UTC)", "from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9])\n\tby lists.denx.de (Postfix) with ESMTPS id B0683C21EF2\n\tfor <u-boot@lists.denx.de>; Fri, 25 Aug 2017 13:10:36 +0000 (UTC)", "from frontend01.mail.m-online.net (unknown [192.168.8.182])\n\tby mail-out.m-online.net (Postfix) with ESMTP id 3xf1k43qtJz1rCfk\n\tfor <u-boot@lists.denx.de>; Fri, 25 Aug 2017 15:10:36 +0200 (CEST)", "from localhost (dynscan1.mnet-online.de [192.168.6.70])\n\tby mail.m-online.net (Postfix) with ESMTP id 3xf1k43XKMz3hhTD\n\tfor <u-boot@lists.denx.de>; Fri, 25 Aug 2017 15:10:36 +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) with ESMTP id zDSwnOIXwhL8 for <u-boot@lists.denx.de>;\n\tFri, 25 Aug 2017 15:10:35 +0200 (CEST)", "from crub.agik.hopto.org (p4FCB6B3C.dip0.t-ipconnect.de\n\t[79.203.107.60]) (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\tfor <u-boot@lists.denx.de>; Fri, 25 Aug 2017 15:10:35 +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": "RqBKX7pTBgAFFJ3+ArdlGu3tggAtjGZTVGgsTHeUM/s=", "From": "Anatolij Gustschin <agust@denx.de>", "To": "u-boot@lists.denx.de", "Date": "Fri, 25 Aug 2017 15:10:43 +0200", "Message-Id": "<1503666643-15848-1-git-send-email-agust@denx.de>", "X-Mailer": "git-send-email 2.7.4", "Subject": "[U-Boot] [PATCH] video: ipuv3_fb: skip IPU shutdown if IPU was not\n\tenabled 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---\n drivers/video/mxc_ipuv3_fb.c | 13 ++++++++++++-\n 1 file changed, 12 insertions(+), 1 deletion(-)", "diff": "diff --git a/drivers/video/mxc_ipuv3_fb.c b/drivers/video/mxc_ipuv3_fb.c\nindex 0d0a0a9..8836229 100644\n--- a/drivers/video/mxc_ipuv3_fb.c\n+++ b/drivers/video/mxc_ipuv3_fb.c\n@@ -13,6 +13,7 @@\n \n #include <common.h>\n #include <linux/errno.h>\n+#include <asm/arch/crm_regs.h>\n #include <asm/global_data.h>\n #include <linux/string.h>\n #include <linux/list.h>\n@@ -568,8 +569,18 @@ err0:\n \n void ipuv3_fb_shutdown(void)\n {\n-\tint i;\n+\tstruct mxc_ccm_reg *mxc_ccm = (struct mxc_ccm_reg *)CCM_BASE_ADDR;\n \tstruct ipu_stat *stat = (struct ipu_stat *)IPU_STAT;\n+\tu32 reg;\n+\tint i;\n+\n+\t/*\n+\t * Check if IPU clock was enabled before. Won't access\n+\t * IPU registers if clock is not enabled.\n+\t */\n+\treg = readl(&mxc_ccm->CCGR3);\n+\tif ((reg & MXC_CCM_CCGR3_IPU1_IPU_MASK) == 0)\n+\t\treturn;\n \n \tfor (i = 0; i < ARRAY_SIZE(mxcfb_info); i++) {\n \t\tstruct fb_info *fbi = mxcfb_info[i];\n", "prefixes": [ "U-Boot" ] }