From patchwork Mon Oct 16 04:23:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 734010 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:1045:b0:32d:baff:b0ca with SMTP id c5csp34574wrx; Sun, 15 Oct 2023 21:28:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFL2MIMyko8o8QJDHsh0sekr47lx8iIgt11TEt2KJCmoCA3lKM2uELC5k/p/z1GkGvBMn6M X-Received: by 2002:a5d:6681:0:b0:317:618a:c72 with SMTP id l1-20020a5d6681000000b00317618a0c72mr27422461wru.64.1697430508208; Sun, 15 Oct 2023 21:28:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697430508; cv=none; d=google.com; s=arc-20160816; b=FGXAbcaMJMYwB1c3832edreeCL06uQpiFJ+uhfoj1cuEaGCG62fHkUSFJNsrxeo0B4 LzzTP9UHpNCYHSBvc/SHtrsaP/AXuGfCAa4hg/j3VpuPt03jmyS5M5NE1zG+MnjnrqrF 4g5vb+dfoNmDD/b83wS0nxtbs9/GsU4INrPOGJDmB3qXGSIfbZDrKhKyn2nO14+0mp4k d0xMIC8f7TZOAmzgZsGGUT8j77Px9gqo07PALyxK1z/qI0+ijHRkie1+1dRVqVlZkpQ+ Y6/DUSBla4IpbGx2k/8o1s1Wmi7CuYwSGlj1WfNACse2iJ3QwIOrCezKI+6UJ/E7vY65 8V9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=1yClAL1OyfbKc6TszWmib6hvyd044g2R3J1uiGAvAPE=; fh=I7E+BwgHMByijVVN/pPHsLSpz7oP4y4e73noHEekrEE=; b=P8j/ULIon3quay1uZmw3dwr9Z4TrgVBFG/awnNVMoX2dAgsD2cloTmoyg54qWRbiVQ s45kzJ2B+xgNDp2Uuzfr2yxhyS0wFtkRHmBoooVZzRy1zladQETJIyzuI5cylDi9YTV3 mbGC3iOn135M5KD0bwaPd+6mDNOJqzRbVBzVjjUkgsohOmmWM3qvm/RhT0mW2ApW09GB x3K+T9d0e2EjdrUrBhR3G4CsO26kNBsNiHRVzQHrxyGEHOU//XtWwsE5Tp96HgHzZHwM 8CO8ghngBv9DefvdJ3tC1ZB2TrC3gV0iAFvQWqmX/BZRvqXCva6LtVhAUFi5UVej5VFU jGhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Jhk2V98s; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id fm19-20020a05600c0c1300b00406559e2bb1si2232358wmb.86.2023.10.15.21.28.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Oct 2023 21:28:28 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Jhk2V98s; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3259A86DD5; Mon, 16 Oct 2023 06:25:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="Jhk2V98s"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A39EA86DE8; Mon, 16 Oct 2023 06:25:25 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4D83586BD6 for ; Mon, 16 Oct 2023 06:24:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=masahisa.kojima@linaro.org Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-694ed847889so3104395b3a.2 for ; Sun, 15 Oct 2023 21:24:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697430284; x=1698035084; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=1yClAL1OyfbKc6TszWmib6hvyd044g2R3J1uiGAvAPE=; b=Jhk2V98sM2eNWoPg0CN88JQ8QEr8HCN1jxRdEIOetvvhsc1GhUzIqT4qPT6DoaHjYf 2R1lhg3WnaxO3G1oO5vTrZLA+k/DUX3/6Z13kBuB+ofRy2EumpqEj2hX151imvC57ujK doRuhV+Qk6xOhU0b5mqI0VGZ7FiAYmpMCK9HRcvFGNkjw9BvYuxvirh7MHTZpQw2+15p ZEy8MUHEIRIAGTmsnswe7KrF/sOKhdo9ydpWh9YbI+Q20LgOC5T18MlN0qmtpOhVcLi5 vYC5k6wbNJQqn5iw+muOaNE+blrTLgXDN3iqEbX0SlpbGrM+o4fMCBCDka0Ve0yxCGCA GhmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697430284; x=1698035084; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1yClAL1OyfbKc6TszWmib6hvyd044g2R3J1uiGAvAPE=; b=Clk9LRx16KMTdyoi8zoRiF+P2J4nS6WoALBf3xH/U4Lw2mknGKbt/jxIlHIILwM0GG wWbCiQYllsR3PLX8gDWdM6IV/TzTHP5FujqnOAG/JiZMpvroFMTfXArXNk1Bny1cDhl7 IQXCT/jkq465eeMy2EMzmC2V5NuKff6I69rCOa8VPyQW5h8McK5mVttwfsJ+n2WILq0P 3JE8C6K/AthzuGYjKcrm6E+jJ1CVAetHQqQWjIDwyxzr8inwpoQh5oFwP23ezmEUnJ2R F/uVAErmK6O/kqEh6J/UD2MtTCRzFztWFnNYyhCkLJN5l6pZ+kdyZL2ptHHNRY31wAdL wr9A== X-Gm-Message-State: AOJu0YzoCS5AZsfihtBROctP6JqPMEn0cNikr2K+y3x+rYcGalNMlP3n q0iisBkPFCjAHrFeEJw93/HuVVHx0DGK1Dh6dSo= X-Received: by 2002:a62:f211:0:b0:6bd:ca1d:c51e with SMTP id m17-20020a62f211000000b006bdca1dc51emr1288353pfh.16.1697430284248; Sun, 15 Oct 2023 21:24:44 -0700 (PDT) Received: from localhost ([164.70.16.189]) by smtp.gmail.com with ESMTPSA id x20-20020a62fb14000000b006889081281bsm17014568pfm.138.2023.10.15.21.24.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Oct 2023 21:24:43 -0700 (PDT) From: Masahisa Kojima To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Simon Glass , Takahiro Akashi , Michal Simek , Masahisa Kojima Subject: [RESEND PATCH v6 6/9] efi_loader: add CDROM short-form device path Date: Mon, 16 Oct 2023 13:23:05 +0900 Message-Id: <20231016042309.2386387-7-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231016042309.2386387-1-masahisa.kojima@linaro.org> References: <20231016042309.2386387-1-masahisa.kojima@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean UEFI specification does not mandate to support the short-form of the CDROM media device path. Fedora installation ISO image is identified as CDROM media device path, supporting short-form CDROM media device path is required to automatically add the boot option having default file of Fedora installation image. Signed-off-by: Masahisa Kojima --- lib/efi_loader/efi_device_path.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/efi_loader/efi_device_path.c b/lib/efi_loader/efi_device_path.c index ed7214f3a3..ac673ab117 100644 --- a/lib/efi_loader/efi_device_path.c +++ b/lib/efi_loader/efi_device_path.c @@ -110,7 +110,8 @@ struct efi_device_path *efi_dp_shorten(struct efi_device_path *dp) while (dp) { if (EFI_DP_TYPE(dp, MESSAGING_DEVICE, MSG_USB_WWI) || EFI_DP_TYPE(dp, MEDIA_DEVICE, HARD_DRIVE_PATH) || - EFI_DP_TYPE(dp, MEDIA_DEVICE, FILE_PATH)) + EFI_DP_TYPE(dp, MEDIA_DEVICE, FILE_PATH) || + EFI_DP_TYPE(dp, MEDIA_DEVICE, CDROM_PATH)) return dp; dp = efi_dp_next(dp);