Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/806176/?format=api
{ "id": 806176, "url": "http://patchwork.ozlabs.org/api/patches/806176/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20170826225328.7550-7-xypron.glpk@gmx.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": "<20170826225328.7550-7-xypron.glpk@gmx.de>", "list_archive_url": null, "date": "2017-08-26T22:53:25", "name": "[U-Boot,16/23] efi_loader: implement DisconnectController", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "6fedeb250791717d08b5744f2ba3388d99e97cff", "submitter": { "id": 61270, "url": "http://patchwork.ozlabs.org/api/people/61270/?format=api", "name": "Heinrich Schuchardt", "email": "xypron.glpk@gmx.de" }, "delegate": { "id": 3400, "url": "http://patchwork.ozlabs.org/api/users/3400/?format=api", "username": "agraf", "first_name": "Alexander", "last_name": "Graf", "email": "agraf@suse.de" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20170826225328.7550-7-xypron.glpk@gmx.de/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/806176/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/806176/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 3xftmD5NQ0z9s78\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSun, 27 Aug 2017 09:00:28 +1000 (AEST)", "by lists.denx.de (Postfix, from userid 105)\n\tid 3EFEDC221BF; Sat, 26 Aug 2017 22:56:09 +0000 (UTC)", "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id F0B6AC221DA;\n\tSat, 26 Aug 2017 22:56:00 +0000 (UTC)", "by lists.denx.de (Postfix, from userid 105)\n\tid 6DD67C221D7; Sat, 26 Aug 2017 22:54:23 +0000 (UTC)", "from mout.gmx.net (mout.gmx.net [212.227.17.21])\n\tby lists.denx.de (Postfix) with ESMTPS id 69905C221C9\n\tfor <u-boot@lists.denx.de>; Sat, 26 Aug 2017 22:54:19 +0000 (UTC)", "from localhost.localdomain ([84.118.154.110]) by mail.gmx.com\n\t(mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id\n\t0LbuIK-1d4ftl45NU-00jKBS; Sun, 27 Aug 2017 00:53:38 +0200" ], "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=FREEMAIL_FROM,\n\tRCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,\n\tRCVD_IN_MSPIKE_WL autolearn=unavailable\n\tautolearn_force=no version=3.4.0", "From": "Heinrich Schuchardt <xypron.glpk@gmx.de>", "To": "Alexander Graf <agraf@suse.de>", "Date": "Sun, 27 Aug 2017 00:53:25 +0200", "Message-Id": "<20170826225328.7550-7-xypron.glpk@gmx.de>", "X-Mailer": "git-send-email 2.14.1", "In-Reply-To": "<20170826225328.7550-1-xypron.glpk@gmx.de>", "References": "<20170826225110.7381-1-xypron.glpk@gmx.de>\n\t<20170826225328.7550-1-xypron.glpk@gmx.de>", "X-Provags-ID": "V03:K0:mJgiLSsB+IoXFh0U1l1WE+1iJhHICD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HaQMVShGbniT+nK9yf4hI+Kc0BZ\n\tsMLgPIqDA2rBRl2gGtIdClkPvJisA==", "Cc": "Heinrich Schuchardt <xypron.glpk@gmx.de>, u-boot@lists.denx.de", "Subject": "[U-Boot] [PATCH 16/23] efi_loader: implement DisconnectController", "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": "Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>\n---\n lib/efi_loader/efi_boottime.c | 77 ++++++++++++++++++++++++++++++++++++++++++-\n 1 file changed, 76 insertions(+), 1 deletion(-)", "diff": "diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c\nindex 1069da7d79..c5a17b6252 100644\n--- a/lib/efi_loader/efi_boottime.c\n+++ b/lib/efi_loader/efi_boottime.c\n@@ -1052,9 +1052,84 @@ static efi_status_t EFIAPI efi_disconnect_controller(void *controller_handle,\n \t\t\t\t\t\t void *driver_image_handle,\n \t\t\t\t\t\t void *child_handle)\n {\n+\tstruct efi_driver_binding_protocol *binding_protocol;\n+\tefi_handle_t child_handle_buffer;\n+\tunsigned long driver_count;\n+\tefi_handle_t *driver_handle_buffer;\n+\tsize_t i;\n+\tUINTN number_of_children;\n+\tefi_status_t r;\n+\tsize_t stop_count = 0;\n+\n \tEFI_ENTRY(\"%p, %p, %p\", controller_handle, driver_image_handle,\n \t\t child_handle);\n-\treturn EFI_EXIT(EFI_INVALID_PARAMETER);\n+\n+\tif (!efi_search_obj(controller_handle)) {\n+\t\tr = EFI_INVALID_PARAMETER;\n+\t\tgoto out;\n+\t}\n+\n+\t/* Create list of driver handles */\n+\tif (driver_image_handle) {\n+\t\tdriver_handle_buffer = &driver_image_handle,\n+\t\tdriver_count = 1;\n+\t\t/* Check that the handle supports driver binding protocol */\n+\t\tr = efi_search_protocol(driver_image_handle,\n+\t\t\t\t\t&efi_guid_driver_binding_protocol,\n+\t\t\t\t\tNULL);\n+\t} else {\n+\t\t/* Get buffer with all handles with driver binding protocol */\n+\t\tr = EFI_CALL(efi_locate_handle_buffer(\n+\t\t\t by_protocol, &efi_guid_driver_binding_protocol,\n+\t\t\t NULL, &driver_count, &driver_handle_buffer));\n+\t}\n+\tif (r != EFI_SUCCESS)\n+\t\tgoto out;\n+\n+\t/* Create list of child handles */\n+\tif (child_handle) {\n+\t\tnumber_of_children = 1;\n+\t\tchild_handle_buffer = &child_handle;\n+\t} else {\n+\t\t/*\n+\t\t * We do not fully support child handles.\n+\t\t *\n+\t\t * It is unclear from which handle and which protocols the\n+\t\t * list of child controllers should be collected.\n+\t\t */\n+\t\tnumber_of_children = 0;\n+\t\tchild_handle_buffer = NULL;\n+\t}\n+\n+\tfor (i = 0; i < driver_count; ++i) {\n+\t\tr = EFI_CALL(efi_open_protocol(\n+\t\t\t driver_handle_buffer[i],\n+\t\t\t &efi_guid_driver_binding_protocol,\n+\t\t\t (void **)&binding_protocol,\n+\t\t\t driver_handle_buffer[i], NULL,\n+\t\t\t EFI_OPEN_PROTOCOL_GET_PROTOCOL));\n+\t\tif (r != EFI_SUCCESS)\n+\t\t\tcontinue;\n+\n+\t\tr = EFI_CALL(binding_protocol->stop(binding_protocol,\n+\t\t\t\t\t\t controller_handle,\n+\t\t\t\t\t\t number_of_children,\n+\t\t\t\t\t\t child_handle_buffer));\n+\t\tif (r == EFI_SUCCESS)\n+\t\t\t++stop_count;\n+\t\tEFI_CALL(efi_close_protocol(driver_handle_buffer[i],\n+\t\t\t\t\t &efi_guid_driver_binding_protocol,\n+\t\t\t\t\t driver_handle_buffer[i], NULL));\n+\t}\n+\n+\tif (driver_image_handle)\n+\t\tefi_free_pool(driver_handle_buffer);\n+\tif (stop_count)\n+\t\tr = EFI_SUCCESS;\n+\telse\n+\t\tr = EFI_NOT_FOUND;\n+out:\n+\treturn EFI_EXIT(r);\n }\n \n efi_status_t EFIAPI efi_close_protocol(void *handle, const efi_guid_t *protocol,\n", "prefixes": [ "U-Boot", "16/23" ] }