From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A9F80C433F5 for ; Thu, 16 Sep 2021 08:55:33 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 258C561165 for ; Thu, 16 Sep 2021 08:55:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 258C561165 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7FCCA8319C; Thu, 16 Sep 2021 10:54: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="yTo4MvaO"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 07C0783124; Thu, 16 Sep 2021 10:54:06 +0200 (CEST) Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) (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 F20C8831D5 for ; Thu, 16 Sep 2021 10:53:40 +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=masami.hiramatsu@linaro.org Received: by mail-pf1-x42a.google.com with SMTP id y8so5225318pfa.7 for ; Thu, 16 Sep 2021 01:53:40 -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:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=z/P28taXTWuoZNLOu5MoRtO3G6G9hQYJRdgwPsybijU=; b=yTo4MvaOlCtqn/ZpfIqUzbUYebyuX7M/wMD3xDG8Ur/dAZiY0ksj3Yp1HVsN7WdiGa V8zuH9qZKKNSokIipM1Qt+7gdP4nDTOzlINRKG7JdaDdCciFYgw1HBJA6QxKwBpUXUB9 cFurZMqxODysuLQN6rCaDwuUHP68s3S6qwnOHlZgOmH3jbCEwXaSlWy6iRT/Y0xO/vXH p+HIjM3BVVBHXDmHgdTgjj6QnJRC9uYXSlpH+Vtbq+8AKqy+5mRH79jCk5Yr+EiOWENS gkRv+WSnfDTaxz9Wj2yd1QJDLpZU60oXwQKe0iZwGgrXW8JEanCmBNBZE4EEk8qIZb+v uVMQ== 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:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=z/P28taXTWuoZNLOu5MoRtO3G6G9hQYJRdgwPsybijU=; b=Vg6M/ZN+L53OdB3MIckDwdubp6lTOonduG0oGKhLqcbbRhZrxLoN2xWwvcloc1SE7s SnkR0nvAeQMKY7R2FNWKT5ujHzjc5Wt4RxIO9lwTUXJ5j1zexVFsG5TVywz/7sZ5DitX +utO6RO2lKpsJfFjhMjuS+fw504e+TFbgjcISnc+nTwMC9SyK9RgNQ1XLpxQ5Qbe6N4o Z6Tmfk7kWRtwzNckXtJ4oIkIMh3McGpxsumR4i6FlBp+1vg/OK5VF5ev889tPDGz8LoR T+39wRyrDbbOnJ5ft+JRyD3LMUCFUgULFVEsk20FWUzfG/nCnuHdY1xyWeVhqBpllQsk KPUg== X-Gm-Message-State: AOAM5317imQU2TrhsT+qBHmLoXd4rAs4Je5EFDZSon80cZWmtzZYIGk+ fxyH5im8I70Ycck0Yr38z6XwLQ== X-Google-Smtp-Source: ABdhPJzzpHgTFVkgHNvBw2K4GRGs0fZMC27rhzqNlFh2AyUXfnGOhMuCBlrhonoyzTjHlHiLssHCxg== X-Received: by 2002:a62:5406:0:b0:441:c46a:ccb9 with SMTP id i6-20020a625406000000b00441c46accb9mr1672137pfb.52.1631782419199; Thu, 16 Sep 2021 01:53:39 -0700 (PDT) Received: from localhost.localdomain (122x208x150x49.ap122.ftth.ucom.ne.jp. [122.208.150.49]) by smtp.gmail.com with ESMTPSA id b13sm7122786pjk.35.2021.09.16.01.53.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Sep 2021 01:53:38 -0700 (PDT) From: Masami Hiramatsu To: Heinrich Schuchardt Cc: Kazuhiko Sakamoto , Masami Hiramatsu , Jassi Brar , Ilias Apalodimas , u-boot@lists.denx.de Subject: [PATCH 2/3] efi_selftest: Do not check EFI_SIMPLE_NETWORK_RECEIVE_INTERRUPT Date: Thu, 16 Sep 2021 17:53:36 +0900 Message-Id: <163178241612.65790.3191991741031171590.stgit@localhost> X-Mailer: git-send-email 2.25.1 In-Reply-To: <163178239865.65790.17211919979018423637.stgit@localhost> References: <163178239865.65790.17211919979018423637.stgit@localhost> User-Agent: StGit/0.19 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean Do not check EFI_SIMPLE_NETWORK_RECEIVE_INTERRUPT in packet receiving loop. This depends on the implementation and not related to whether the packet can be received or not. Whether the received packets are available or not is ensured by wait_for_packet, and that is already done in the loop. Signed-off-by: Masami Hiramatsu --- lib/efi_selftest/efi_selftest_snp.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/lib/efi_selftest/efi_selftest_snp.c b/lib/efi_selftest/efi_selftest_snp.c index cb0db7eea2..c5366c872c 100644 --- a/lib/efi_selftest/efi_selftest_snp.c +++ b/lib/efi_selftest/efi_selftest_snp.c @@ -340,8 +340,6 @@ static int execute(void) events[0] = timer; events[1] = net->wait_for_packet; for (;;) { - u32 int_status; - /* * Wait for packet to be received or timer event. */ @@ -367,15 +365,6 @@ static int execute(void) * Receive packet */ buffer_size = sizeof(buffer); - ret = net->get_status(net, &int_status, NULL); - if (ret != EFI_SUCCESS) { - efi_st_error("Failed to get status"); - return EFI_ST_FAILURE; - } - if (!(int_status & EFI_SIMPLE_NETWORK_RECEIVE_INTERRUPT)) { - efi_st_error("RX interrupt not set"); - return EFI_ST_FAILURE; - } ret = net->receive(net, NULL, &buffer_size, &buffer, &srcaddr, &destaddr, NULL); if (ret != EFI_SUCCESS) {