Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1157048/?format=api
{ "id": 1157048, "url": "http://patchwork.ozlabs.org/api/patches/1157048/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20190903143850.9824-14-lukma@denx.de/", "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": "<20190903143850.9824-14-lukma@denx.de>", "list_archive_url": null, "date": "2019-09-03T14:38:49", "name": "[U-Boot,v2,13/14] imx: Convert emergency pad of display5 to use dm_gpio* functions", "commit_ref": "feeff1567f1e98775b1b0070b106ecc09059ecc1", "pull_url": null, "state": "accepted", "archived": false, "hash": "65204592efd82cbc106e81fe4e7af21a063e8dfb", "submitter": { "id": 70701, "url": "http://patchwork.ozlabs.org/api/people/70701/?format=api", "name": "Lukasz Majewski", "email": "lukma@denx.de" }, "delegate": { "id": 1693, "url": "http://patchwork.ozlabs.org/api/users/1693/?format=api", "username": "sbabic", "first_name": "Stefano", "last_name": "Babic", "email": "sbabic@denx.de" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20190903143850.9824-14-lukma@denx.de/mbox/", "series": [ { "id": 128783, "url": "http://patchwork.ozlabs.org/api/series/128783/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=128783", "date": "2019-09-03T14:38:36", "name": "DM: display5: Convert display5 board to DM/DTS (including 'factory' setup)", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/128783/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/1157048/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/1157048/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=denx.de" ], "Received": [ "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 46N8nd3Fhzz9s7T\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 4 Sep 2019 00:43:01 +1000 (AEST)", "by lists.denx.de (Postfix, from userid 105)\n\tid 0A771C21E1B; Tue, 3 Sep 2019 14:40:27 +0000 (UTC)", "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id A20C2C21DB3;\n\tTue, 3 Sep 2019 14:39:58 +0000 (UTC)", "by lists.denx.de (Postfix, from userid 105)\n\tid 9FA0CC21D8E; Tue, 3 Sep 2019 14:39:31 +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 7166BC21E02\n\tfor <u-boot@lists.denx.de>; Tue, 3 Sep 2019 14:39:29 +0000 (UTC)", "from frontend01.mail.m-online.net (unknown [192.168.8.182])\n\tby mail-out.m-online.net (Postfix) with ESMTP id 46N8jY23wDz1rWTJ;\n\tTue, 3 Sep 2019 16:39:29 +0200 (CEST)", "from localhost (dynscan1.mnet-online.de [192.168.6.70])\n\tby mail.m-online.net (Postfix) with ESMTP id 46N8jY1rltz1qqkP;\n\tTue, 3 Sep 2019 16:39:29 +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 A7Kb9linSQBO; Tue, 3 Sep 2019 16:39:28 +0200 (CEST)", "from localhost.localdomain (85-222-111-42.dynamic.chello.pl\n\t[85.222.111.42])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby mail.mnet-online.de (Postfix) with ESMTPSA;\n\tTue, 3 Sep 2019 16:39:28 +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.0 required=5.0 tests=none autolearn=unavailable\n\tautolearn_force=no version=3.4.0", "X-Virus-Scanned": "amavisd-new at mnet-online.de", "X-Auth-Info": "oXc6ELsgqYioF+/ImmyZ8MM93ArWHO75KJ76Ht/sLwM=", "From": "Lukasz Majewski <lukma@denx.de>", "To": "u-boot@lists.denx.de,\n\tStefano Babic <sbabic@denx.de>", "Date": "Tue, 3 Sep 2019 16:38:49 +0200", "Message-Id": "<20190903143850.9824-14-lukma@denx.de>", "X-Mailer": "git-send-email 2.11.0", "In-Reply-To": "<20190903143850.9824-1-lukma@denx.de>", "References": "<20190903143850.9824-1-lukma@denx.de>", "Subject": "[U-Boot] [PATCH v2 13/14] imx: Convert emergency pad of display5 to\n\tuse dm_gpio* functions", "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": "After this change the display5's emergency gpio use dm_gpio* functions\ninstead of legacy ones (gpio*) to read its state.\n\nSigned-off-by: Lukasz Majewski <lukma@denx.de>\n---\n\nChanges in v2: None\n\n board/liebherr/display5/display5.c | 12 +++++++-----\n 1 file changed, 7 insertions(+), 5 deletions(-)", "diff": "diff --git a/board/liebherr/display5/display5.c b/board/liebherr/display5/display5.c\nindex 5713401ed954..b8dcd03fd9b6 100644\n--- a/board/liebherr/display5/display5.c\n+++ b/board/liebherr/display5/display5.c\n@@ -36,7 +36,6 @@ static bool sw_ids_valid;\n static u32 cpu_id;\n static u32 unit_id;\n \n-#define EM_PAD IMX_GPIO_NR(3, 29)\n #define SW0\tIMX_GPIO_NR(2, 4)\n #define SW1\tIMX_GPIO_NR(2, 5)\n #define SW2\tIMX_GPIO_NR(2, 6)\n@@ -236,21 +235,24 @@ static inline void setup_boot_modes(void) {}\n \n int misc_init_r(void)\n {\n+\tstruct gpio_desc em_pad;\n \tint ret;\n \n \tsetup_boot_modes();\n \n-\tret = gpio_request(EM_PAD, \"Emergency_PAD\");\n+\tret = dm_gpio_lookup_name(\"GPIO3_29\", &em_pad);\n \tif (ret) {\n-\t\tprintf(\"Can't request emergency PAD gpio\\n\");\n+\t\tprintf(\"Can't find emergency PAD gpio\\n\");\n \t\treturn ret;\n \t}\n \n-\tret = gpio_direction_input(EM_PAD);\n+\tret = dm_gpio_request(&em_pad, \"Emergency_PAD\");\n \tif (ret) {\n-\t\tprintf(\"Can't set emergency PAD direction\\n\");\n+\t\tprintf(\"Can't request emergency PAD gpio\\n\");\n \t\treturn ret;\n \t}\n \n+\tdm_gpio_set_dir_flags(&em_pad, GPIOD_IS_IN);\n+\n \treturn 0;\n }\n", "prefixes": [ "U-Boot", "v2", "13/14" ] }