Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/810362/?format=api
{ "id": 810362, "url": "http://patchwork.ozlabs.org/api/patches/810362/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20170906014950.132960-2-sjg@chromium.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": "<20170906014950.132960-2-sjg@chromium.org>", "list_archive_url": null, "date": "2017-09-06T01:49:45", "name": "[U-Boot,v3,1/6] board_f: Drop the timer after relocation", "commit_ref": "5ee94b4f4032502c26cd3c9ede6a910d7e2c9b46", "pull_url": null, "state": "accepted", "archived": false, "hash": "5b21b744eced457f49dab3dc20b7bd5d2bd27646", "submitter": { "id": 6170, "url": "http://patchwork.ozlabs.org/api/people/6170/?format=api", "name": "Simon Glass", "email": "sjg@chromium.org" }, "delegate": { "id": 56520, "url": "http://patchwork.ozlabs.org/api/users/56520/?format=api", "username": "bmeng", "first_name": "Bin", "last_name": "Meng", "email": "bmeng.cn@gmail.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20170906014950.132960-2-sjg@chromium.org/mbox/", "series": [ { "id": 1680, "url": "http://patchwork.ozlabs.org/api/series/1680/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=1680", "date": "2017-09-06T01:49:44", "name": "x86: bootstage: Fix bootstage operation on link", "version": 3, "mbox": "http://patchwork.ozlabs.org/series/1680/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/810362/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/810362/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\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=google.com header.i=@google.com\n\theader.b=\"TSVMmIFH\"; dkim-atps=neutral" ], "Received": [ "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xn66t4Z5Fz9sNq\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 6 Sep 2017 11:53:10 +1000 (AEST)", "by lists.denx.de (Postfix, from userid 105)\n\tid 4AE78C21EBA; Wed, 6 Sep 2017 01:50:39 +0000 (UTC)", "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id C2177C21E13;\n\tWed, 6 Sep 2017 01:50:26 +0000 (UTC)", "by lists.denx.de (Postfix, from userid 105)\n\tid 97D96C21C40; Wed, 6 Sep 2017 01:50:15 +0000 (UTC)", "from mail-oi0-f44.google.com (mail-oi0-f44.google.com\n\t[209.85.218.44])\n\tby lists.denx.de (Postfix) with ESMTPS id B6D81C21E64\n\tfor <u-boot@lists.denx.de>; Wed, 6 Sep 2017 01:50:13 +0000 (UTC)", "by mail-oi0-f44.google.com with SMTP id h70so34625906oic.1\n\tfor <u-boot@lists.denx.de>; Tue, 05 Sep 2017 18:50:13 -0700 (PDT)", "from kiwi.bld.corp.google.com ([2620:0:10f2:0:899a:2ed0:e52d:6fc6])\n\tby smtp.gmail.com with ESMTPSA id\n\t64sm2109350oig.22.2017.09.05.18.50.11\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tTue, 05 Sep 2017 18:50:11 -0700 (PDT)", "by kiwi.bld.corp.google.com (Postfix, from userid 121222)\n\tid 05A8E1405D6; Tue, 5 Sep 2017 19:50:11 -0600 (MDT)" ], "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=RCVD_IN_DNSWL_NONE,\n\tRCVD_IN_MSPIKE_H2,\n\tT_DKIM_INVALID autolearn=unavailable autolearn_force=no\n\tversion=3.4.0", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n\ts=20161025; \n\th=sender:from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=vcwGLvpClpzxwEl62Ax6irLcwTe30z+HKRDaybYA1sQ=;\n\tb=TSVMmIFHyal02IV1jZ1dGJh/9PLA1s4EKvNwI/oPMkYLMVQJuY4Crm5OrnT2s6Up09\n\taL/KWUNWhDHxO/a3lCVwXhmu2HkBsO7rviCLQ0tKSJJMeVI3G1vtQhA/yHrk+r6pIKei\n\tfjjwP5ll0peb7HYlG/D/LvP8g+amaMckJa8liN+6IU2y7rKeFqFZsBgIUsNYD9oPVCK4\n\tkRL+qiN202Y6Aqn2+lAhX9qeKTtUZcCw1N6kTQRVpY+7pKrIAe/ID1F3AWyOXddlZp7R\n\tghOrns7S3j/GZn+zBVTsFYCiU1ZMyjznY/VuXwBYMDNDhX89/r2mIT82a1yt6GHgiMRp\n\tozWw==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:sender:from:to:cc:subject:date:message-id\n\t:in-reply-to:references;\n\tbh=vcwGLvpClpzxwEl62Ax6irLcwTe30z+HKRDaybYA1sQ=;\n\tb=cOzPB6jrFxnSHoyBsPO1q8jOZjfBocdvAZVXMS8dDxXzT5DpKLRf6AgrFMyDYXsOoD\n\tYYpOTjqK/lRdPNw//2Yoq2Kt8tiutiSPzNwN7tw6XYWZxALGIAq8rK33JMRB5wr3g0gv\n\tSaGIb15i3ahn9Lz80KGAyuHn9ps4CeQCha4+9jPmh1FfBlWElr0vVpIOgN5P9gaOGkpE\n\tLbDPNxYrHNCOdTuXI8+KklsEy/KPvmHTan56DA718t7MJCHFouvhd8S7cApHY3ArcW5H\n\tPEvodTa7LKlQMR1n/dYyNPjyo0hP4+Bn7XFIa2saaqFaeVNZYIRtnYvWmOeXJIkBflZl\n\t4khA==", "X-Gm-Message-State": "AHPjjUgZiqY1HVdQx0wXg4VKyjgSiDB7c0bRhLmYBYID3UmGki67h8EO\n\tioIPD8JFVMuRYZe2", "X-Google-Smtp-Source": "ADKCNb7YKyLECKbpSNiWTaVee1S21rQmxQu0YKbZAjMXW3cdqUy7BOCz587WVMkovwz386Je4ik/ow==", "X-Received": "by 10.202.57.69 with SMTP id g66mr1119883oia.28.1504662612314;\n\tTue, 05 Sep 2017 18:50:12 -0700 (PDT)", "From": "Simon Glass <sjg@chromium.org>", "To": "U-Boot Mailing List <u-boot@lists.denx.de>", "Date": "Tue, 5 Sep 2017 19:49:45 -0600", "Message-Id": "<20170906014950.132960-2-sjg@chromium.org>", "X-Mailer": "git-send-email 2.14.1.581.gf28d330327-goog", "In-Reply-To": "<20170906014950.132960-1-sjg@chromium.org>", "References": "<20170906014950.132960-1-sjg@chromium.org>", "Subject": "[U-Boot] [PATCH v3 1/6] board_f: Drop the timer after relocation", "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": "Once U-Boot relocates itself the existing driver-model timer (if any) is\nno-longer valid until the device is reinitialised. Any use of the device\nmay cause a crash. To handle this, set the timer to NULL after relocation.\n\nSigned-off-by: Simon Glass <sjg@chromium.org>\n---\n\nChanges in v3:\n- Bracket access to gd->timer with an #ifdef\n\nChanges in v2: None\n\n common/board_f.c | 3 +++\n 1 file changed, 3 insertions(+)", "diff": "diff --git a/common/board_f.c b/common/board_f.c\nindex 104d144f41..9220815441 100644\n--- a/common/board_f.c\n+++ b/common/board_f.c\n@@ -952,6 +952,9 @@ void board_init_f_r(void)\n \t * UART if available.\n \t */\n \tgd->flags &= ~GD_FLG_SERIAL_READY;\n+#ifdef CONFIG_TIMER\n+\tgd->timer = NULL;\n+#endif\n \n \t/*\n \t * U-Boot has been copied into SDRAM, the BSS has been cleared etc.\n", "prefixes": [ "U-Boot", "v3", "1/6" ] }