From patchwork Mon Mar 21 13:37:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masami Hiramatsu X-Patchwork-Id: 553337 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:1248:0:0:0:0 with SMTP id z8csp1510429mag; Mon, 21 Mar 2022 06:37:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFMn2YXS3fu0nFc4JVU3Qj1/ZU99gi9EHyY/jraf5SeBpHK7Jj6WokRFMCJuX24Emo/vju X-Received: by 2002:a17:906:99c4:b0:6df:f7c9:27f9 with SMTP id s4-20020a17090699c400b006dff7c927f9mr6908326ejn.465.1647869862048; Mon, 21 Mar 2022 06:37:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647869862; cv=none; d=google.com; s=arc-20160816; b=fsN59FpF0RtsJXDHw7U3Oz8MQ+xq6PzGVxSkFBv/Td7TP0MBQSIjGKuGLdzKhZcMw5 N4SnFwfxVlu4pjJPLcK4F/gjz1VmPgQUWEE04CNS6fRQwU8qH2GMcqRXFiV0FPYejLVb kiJNvTM9BPPoUtpEpP4/2DwkyKSX2OCQE6owNqVFEM/ykWk7iPsU46jlzAdJGCDRPywd rDnNcKq9lVo3W1CWbUeOMqsSFq824Ja57k39VxMVYHUaXGZ8WBe+g7S9hk0GcxZhO3kW vbh8yMntghn3+qd8k9ijHFsOjMcYS0nxvjOv6Pp857SYcBTOnAXV6+SGvwmKuxkf9byf ms8g== 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:user-agent:message-id:date:subject:cc:to:from :dkim-signature; bh=lVOe3OAfosHzfpN2keVo2070DTWzXfC2KSCwIlZz3JM=; b=y9rWonTbEIKKEhJbeJZyBOkhzo9VENcUrFNVXL2gTt4OBmvdhhd5FyBsvNmY8wDj1M JLcbp9D118Gqqg7dlijPe5bfp4sEP95Rqi9Z4+fidADha4p/WiTtmCqfuJChkGvaFVw6 u44cCSyu+fKgsrP/lwXRGi+astExxgYCwJJw7EhEcs+P5hHtZkczQd9dQuyPUocbibac fVQWmyvXY/Vmo+dhtCA0vB6iVZVwzGZLiDhE0+BYy22sw0S7RIa1g5xn9dYQj2BtDIPf N3oCmseBMkUn+DaJcABOce61ZgFXPhyfewFXLy8V9RK2Sbhn5RHNXjk64ukyooZDYcCH zzrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=B5PzfmGF; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id a8-20020a50f0c8000000b00418d6d7b866si8512012edm.161.2022.03.21.06.37.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 06:37:42 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=B5PzfmGF; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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 049D683B03; Mon, 21 Mar 2022 14:37:38 +0100 (CET) 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="B5PzfmGF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EDB4583B03; Mon, 21 Mar 2022 14:37:35 +0100 (CET) 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, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) (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 0D73C83AC8 for ; Mon, 21 Mar 2022 14:37:32 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=masami.hiramatsu@linaro.org Received: by mail-pf1-x430.google.com with SMTP id d19so15428985pfv.7 for ; Mon, 21 Mar 2022 06:37:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:user-agent:mime-version :content-transfer-encoding; bh=lVOe3OAfosHzfpN2keVo2070DTWzXfC2KSCwIlZz3JM=; b=B5PzfmGFaJLuUgHWFxcZanP1aa7CSe9zVElfqsn7RadviM3jAJ10FTG4pVrS/2Kv1j 0Afv+nmEL2bLvMhceHBvWo3sWCpoZizrd0zjiHnkVrGq7k41m62n0UWUlh/653oBLMzd PJTCg7at+a0YE4J7YGy+Eq4VIDHWX2dYgS9EcmwAVh17pMZ8A9yDzIBdX2gn2pNbdVjv T9bLkUL4XTkqfm0Zr0LqyMOsgKO3LOp7WhVLEbqcm8fXGZng0I468LLSjF4wCNrqI2Td kJ7ITr5UweNPOM+mm3ZF+zDIcMIPXSzPd4gRAp8IETENE4w8qLQfc5uhS8EOVO+dhqMt cwRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :mime-version:content-transfer-encoding; bh=lVOe3OAfosHzfpN2keVo2070DTWzXfC2KSCwIlZz3JM=; b=q9qOLwyrvO2KHpfFS0fQCrpBydPXw8HSzpyDa9+Fejh1Qy5qQMDh/cvcSyLQPq7yoT E6AKyOetbdW8KpTXKsjf38BBjEsih1kqlDukV433eKN0YDrcK3yCbs/yR1tdsB6ayByh RAngLssLUM9I+MRBEjKeJCclM6NIivG6iv/LiJMQs61/ToPEFMygJRMkeLCMI0EE4h2Q Fskta6hEDw4u9U/zj55ayFJjvCCweaHb6T0x93LTWo8WAhsROcF4tystdMfuihFsRpsG L17aNfG6t/rT2609+DCYmR49QMjWoOYdrenmzrZCnFTed8y0NfkCXhZryIbcNrdJT/E8 oVdw== X-Gm-Message-State: AOAM532RKJvrZtWmTrmpefvId7Md+hmfi7lyniS+mrEtPSehsVdGIA7g aPCUZN39yNU+ghqB7GGFDxJG6PgsYM/5/Q== X-Received: by 2002:a05:6a00:814:b0:4f7:4c6:1227 with SMTP id m20-20020a056a00081400b004f704c61227mr24086202pfk.54.1647869850067; Mon, 21 Mar 2022 06:37:30 -0700 (PDT) Received: from localhost.localdomain (113x37x226x201.ap113.ftth.ucom.ne.jp. [113.37.226.201]) by smtp.gmail.com with ESMTPSA id m14-20020a637d4e000000b00380b83e2e1fsm14883871pgn.70.2022.03.21.06.37.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 06:37:29 -0700 (PDT) From: Masami Hiramatsu To: u-boot@lists.denx.de, Simon Glass Cc: Masami Hiramatsu , Patrick Delaunay , Patrice Chotard , Heinrich Schuchardt , Alexander Graf , AKASHI Takahiro , Bin Meng , Ilias Apalodimas , Jose Marinho , Grant Likely , Tom Rini , Etienne Carriere , Sughosh Ganu , Paul Liu Subject: [PATCH v3 0/3] EFI: Use sysreset instead of reset command Date: Mon, 21 Mar 2022 22:37:25 +0900 Message-Id: <164786984495.412493.4209842889853239285.stgit@localhost> X-Mailer: git-send-email 2.25.1 User-Agent: StGit/0.19 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.5 at phobos.denx.de X-Virus-Status: Clean Hi, Here is the 3rd version of the series to use sysreset instead of do_reset command interface for resetting after capsule update on disk. This change requires EFI capsule update on disk to depends on sysreset. This adds two fixes from the previous patch: - [1/3] Disable 'capsule disk-update' of efidebug command when CONFIG_EFI_CAPSULE_ON_DISK is disabled. - [2/3] Make efi_load_capsule_drivers() available even if the CONFIG_EFI_CAPSULE_ON_DISK is disabled. And add Reviewed-by from Simon and Heinrich to [3/3]. Thank you, --- Masami Hiramatsu (3): cmd: efidebug: Disable 'capsule disk-update' when CONFIG_EFI_CAPSULE_ON_DISK=n efi_loader: Make efi_load_capsule_drivers() available even if EFI_CAPSULE_ON_DISK=n efi_loader: Use sysreset instead of reset command cmd/efidebug.c | 4 +++ lib/efi_loader/Kconfig | 1 + lib/efi_loader/efi_capsule.c | 65 +++++++++++++++++++++--------------------- 3 files changed, 38 insertions(+), 32 deletions(-) -- Masami Hiramatsu