{"id":814722,"url":"http://patchwork.ozlabs.org/api/patches/814722/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/20170917225927.117917-5-sjg@chromium.org/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/projects/18/?format=json","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":"<20170917225927.117917-5-sjg@chromium.org>","list_archive_url":null,"date":"2017-09-17T22:59:15","name":"[U-Boot,04/16] efi: Add a TODO to efi_init_obj_list()","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"d612af0f4401cb0103d5fd93dc24421ceae2a4f8","submitter":{"id":6170,"url":"http://patchwork.ozlabs.org/api/people/6170/?format=json","name":"Simon Glass","email":"sjg@chromium.org"},"delegate":{"id":3400,"url":"http://patchwork.ozlabs.org/api/users/3400/?format=json","username":"agraf","first_name":"Alexander","last_name":"Graf","email":"agraf@suse.de"},"mbox":"http://patchwork.ozlabs.org/project/uboot/patch/20170917225927.117917-5-sjg@chromium.org/mbox/","series":[{"id":3549,"url":"http://patchwork.ozlabs.org/api/series/3549/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/list/?series=3549","date":"2017-09-17T22:59:11","name":"efi: Enable basic sandbox support for EFI loader","version":1,"mbox":"http://patchwork.ozlabs.org/series/3549/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/814722/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/814722/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=\"H66N1mn1\"; dkim-atps=neutral"],"Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xwQpz54TNz9s7h\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 18 Sep 2017 09:49:47 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid 7F2E7C21E79; Sun, 17 Sep 2017 23:49:46 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 2F965C21ECF;\n\tSun, 17 Sep 2017 23:00:58 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid 1A8B8C21D7C; Sun, 17 Sep 2017 23:00:55 +0000 (UTC)","from mail-io0-f181.google.com (mail-io0-f181.google.com\n\t[209.85.223.181])\n\tby lists.denx.de (Postfix) with ESMTPS id 8865EC21DDD\n\tfor <u-boot@lists.denx.de>; Sun, 17 Sep 2017 22:59:36 +0000 (UTC)","by mail-io0-f181.google.com with SMTP id i197so14826740ioe.9\n\tfor <u-boot@lists.denx.de>; Sun, 17 Sep 2017 15:59:36 -0700 (PDT)","from kiwi.bld.corp.google.com ([100.101.164.89])\n\tby smtp.gmail.com with ESMTPSA id\n\tj19sm6852217oib.9.2017.09.17.15.59.33\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tSun, 17 Sep 2017 15:59:34 -0700 (PDT)","by kiwi.bld.corp.google.com (Postfix, from userid 121222)\n\tid 41A231417F3; Sun, 17 Sep 2017 16:59:33 -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=hZdSsSWHlIk/MUP5Gw1m8upkaoHU4ZwcvMy/3XNty1A=;\n\tb=H66N1mn1vg/nAEPUr2GVey3i/2Tw/1/1ADdBwbBD4ycgmh/1104whk9J+xE1Nl8cws\n\tn5dBmsMYPT5TW22tjqyRdUczq7SuwnjpEI+KL/5S0xDQvhh+t6CZtedlIAeSXHelYOIC\n\trRP7fjnE+2PbO7BKlCX75P8lEiuTNZetGMeDgrx9Fh1m+GOIaFbFhDq5/AuHfsb+roKd\n\t52WNNNG6tLS7L6UkLLnYnaJzBlPjPo2kgv+A/AsruCQsXHN9ezF5FQwvwLHtPJjbLQ2j\n\tNbzOiMT0+6LcDJbJdHkD9G1WriG/TnkVVUMjUF3V587ff8I4yEQZfXaoJlsatvaICQoa\n\tihqA==","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=hZdSsSWHlIk/MUP5Gw1m8upkaoHU4ZwcvMy/3XNty1A=;\n\tb=Whml2VqD87UzpS2Tl/X9cgNneE/0s6Cg7dmyX0FVGzOCAtENnDahGJMP8+h55RVnUr\n\tiVKm08ZDIrBDoNt0tAN6CeONLSB1sSFvN6NRbvDzXcT9LJ9wnKQb9CaMXtOxOGj7FGRo\n\tQ2gBV4aSVhaO6gEBPqe2en3eWIORPHfDvPiI8PIpfKlwHSPtkIRjRk/4f6dh8Ml1lWoS\n\t75vvXaDpapNiOLG8iYSd6ivImi2RZUW8bN89NMiRRanww1kRNUyKEllEQsN/ivt3NMVA\n\tbtc4+aQY2hGcT/NHKgtNP/nvaogkfj8UndGgyqrQHRWd8MVzF/N52zbuqk7qT10B+UtM\n\tMfTA==","X-Gm-Message-State":"AHPjjUhGgcPUGFhh9jQnoFt0jCBbK+RPfMTXcWqWQK2OceVoQPe90x4R\n\txclYDGbjxdvpVI9N","X-Google-Smtp-Source":"AOwi7QCsTkrdlf0MhwczXta3EpoWwnVQ7I83bcD58uBabkHD5mPQOqM6RUexr2aankF9qRH1jmXfrA==","X-Received":"by 10.202.170.144 with SMTP id\n\tt138mr20481809oie.11.1505689175073; \n\tSun, 17 Sep 2017 15:59:35 -0700 (PDT)","From":"Simon Glass <sjg@chromium.org>","To":"U-Boot Mailing List <u-boot@lists.denx.de>","Date":"Sun, 17 Sep 2017 16:59:15 -0600","Message-Id":"<20170917225927.117917-5-sjg@chromium.org>","X-Mailer":"git-send-email 2.14.1.690.gbb1197296e-goog","In-Reply-To":"<20170917225927.117917-1-sjg@chromium.org>","References":"<20170917225927.117917-1-sjg@chromium.org>","Cc":"Andy Shevchenko <andriy.shevchenko@linux.intel.com>,\n\tHeinrich Schuchardt <xypron.glpk@gmx.de>","Subject":"[U-Boot] [PATCH 04/16] efi: Add a TODO to efi_init_obj_list()","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":"This function repeats data structures provided by driver model. They are\nonly created once so can be stale if the EFI loader is called twice (e.g.\nfor testing or on boot failure).\n\nAdd a TODO to address this. It should be possible to attach EFI devices\nand data structures to driver-model devices and avoid having a parallel\nset of data structures.\n\nSigned-off-by: Simon Glass <sjg@chromium.org>\n---\n\n cmd/bootefi.c | 4 ++++\n 1 file changed, 4 insertions(+)","diff":"diff --git a/cmd/bootefi.c b/cmd/bootefi.c\nindex 9aa588eb1b..ee07733e3e 100644\n--- a/cmd/bootefi.c\n+++ b/cmd/bootefi.c\n@@ -109,6 +109,10 @@ static struct efi_object bootefi_device_obj = {\n /**\n  * efi_init_obj_list() - Initialize and populate EFI object list\n  *\n+ * TODO(sjg@chromium.org): Move this to a dynamic list based on driver model,\n+ * so that it does not need to be created before running EFI applications\n+ * and updates when devices change.\n+ *\n  * @return 0 if OK, -ve on error (in which case it prints a message)\n  */\n static int efi_init_obj_list(void)\n","prefixes":["U-Boot","04/16"]}