From patchwork Tue Sep 3 08:37:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Forissier X-Patchwork-Id: 824876 Delivered-To: patch@linaro.org Received: by 2002:a5d:48c1:0:b0:367:895a:4699 with SMTP id p1csp2297732wrs; Tue, 3 Sep 2024 01:39:06 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXy0RYoL2kSVgv21T5Xsd5+RdTs1gy55Y1igr8VUHw8J4Cjtpm5KDGey38rAhlSbMDS573i9A==@linaro.org X-Google-Smtp-Source: AGHT+IFx6FIcJw3NJjai+pjTvOvB4ma6sBv40SbsnWRFJ5qorA6f4wqBYy+puKw1JXdogAt7v8Gm X-Received: by 2002:a17:906:c14b:b0:a72:b4d6:ec6c with SMTP id a640c23a62f3a-a89b955a9cemr684927066b.33.1725352741896; Tue, 03 Sep 2024 01:39:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725352741; cv=none; d=google.com; s=arc-20240605; b=Dx8oOQ9Yb6qMBAjeo5YmLGCIYshSzfQhCN1nn4bQngdFnSaYMDfLqW5kJK876YM4D2 Lzbn9236jFaf6IBC0IOxrfaO4bcOqO0BJjUXC7wm8ITygofuwV7N/LuxWcp3XLvOFHiK K0DG6VsjXihR7ihqkUjyXfY+QgwlnZ1Ir2lnhiYXsyfYYkSN1TC9v27h+0OwXQbrmdpp NwpF4lBawePS6MZnru59yX1I82WkahhSicE4u/GGLbSzrUkaNq2In0MsThWfDcShxDQ/ aFgs1aUfUY8kdmDlm0ZkNQSJlHBC8+aGAslzEPIJ/bueMb/u0bs3J7N5Ij4DFAd4DSLj bLkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=fE83AK41qas/C5KrJhvshI8YbnBfo8bqWhSX5ugB1gI=; fh=fel16blFnBofjPNXe2Cz3Kf/hr1z/DvTbb9IdGYQ0Do=; b=GU/XjmMfS4bYb4mLufdmzlhvg3Dkx0QyVw5ZCbZ0O3VaEaXM0b/jdHwuuoafWLFFx2 rrNKw26/d6B8OeIV/VqVJKOiJrkfQRdfCi+Gb3Kti/kdVem86A02n0EMUPVsEcFNA7zm U/N0L32vgXI69hEyF5XQ4Ta/RfqnyODMiVgfEHRUF+V7l4aw7DaUhF9hNcLNnC1Vkqx8 DdyWKR9vbDMJld8YphVsH0AVPyEUxoJMGhvPUDZt88YD3MfP/q1xR/w8WK7nZ4IHR1Ot G2xtC961M8v0vRqq2tu58259RbtUE9liuiYn0rML/lbrEXF1tzyoVxqzcJPOm6ZXEl7b iPGg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ed9qz9m6; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id a640c23a62f3a-a8988fb8ff1si856717266b.259.2024.09.03.01.39.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 01:39:01 -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=ed9qz9m6; 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; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5B07788C6F; Tue, 3 Sep 2024 10:38:50 +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="ed9qz9m6"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 734C888C1C; Tue, 3 Sep 2024 10:38:49 +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, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) (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 8527F88C19 for ; Tue, 3 Sep 2024 10:38:47 +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=jerome.forissier@linaro.org Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-42c7a384b18so22266475e9.0 for ; Tue, 03 Sep 2024 01:38:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725352726; x=1725957526; 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=fE83AK41qas/C5KrJhvshI8YbnBfo8bqWhSX5ugB1gI=; b=ed9qz9m6wMpHbuQBntma/v/UdMMrKzeBqJkfdGrDZXMd1+/U4jRKmCVDDGhN3m9GIJ S+28+rKG4dx4RoVBlLRuPGrmI+ZWi2s8tW1Fsg6F3LYIwjRzaP70P+/C/IXBiDq7L9pd OzRvTc4LvAJ00dsjH9CQNims81/VuRJJsZ0U3q6Q12FfvPzrG6IpS3Q9PI2UJqGYJraz 3OyAixYMBH/MuHboWZwq3vbIjV8Lg4XzEb8SbsUdLUwG1eefIxq4Us68DQk3Af0URRUw vElxIM1XIDBiDK1BvKx0Xl3L7ATR7NEtqOEDqBnEvqRNoNiYc8+1ggbdfS0boj1ZDw4T 4Qrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725352726; x=1725957526; 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=fE83AK41qas/C5KrJhvshI8YbnBfo8bqWhSX5ugB1gI=; b=vyl1BdHuwiQUVae3DPykjN243c7Tycwa8kGyFgyETa/UcKM69IFTqnTjiWv3JX0Q0R 3fpPqQRBCB97GaLo4blXcs4HWLK1+J4t5WSb9EjpgQG7XpvDdihEVJhzmuRYo7AW19nB nqdlkRmBSCs2+pqA6ra6Xl79Hf9mxD1bCNbkSCbYBO4Nmt2Ed2a586TAMC87MkR0dIYv I6PBH6IW3KLBmUluj4E9qlJbf0Ec0v94YjGouizjp51fR6nD1qkD9MzuU5yLXaiaBdYL not31oXBVojU+j1jTaHxNtCCMw4QZShKPTyZ88LrAx4FjGkKqfKOMdICrnE3f1kXUu1l HEPw== X-Gm-Message-State: AOJu0Ywgd7K7fe1poX2MJBFXp/Htnww328Jw9tf/ma9pc8Q/Z5Mbjw75 gulqPIOnrLF8oPDZamtWbaRtUOCsX5rrRp9me0ncIBgNwNGICWBySyvjmB32UDA7vpytfJh451C wdOzQUg== X-Received: by 2002:a05:600c:1c1a:b0:426:593c:935f with SMTP id 5b1f17b1804b1-42bd731ee1bmr59489005e9.1.1725352726366; Tue, 03 Sep 2024 01:38:46 -0700 (PDT) Received: from builder.. ([2a01:e0a:3cb:7bb0:6417:8cf6:a7f7:ee38]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42bb6df795asm163103325e9.21.2024.09.03.01.38.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 01:38:45 -0700 (PDT) From: Jerome Forissier To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Peter Robinson , Jerome Forissier , Tom Rini , Simon Glass , Heinrich Schuchardt , Sumit Garg , Andrew Davis , Rasmus Villemoes , Bryan Brattlof , Jesse Taube , "Leon M. Busch-George" Subject: [PATCH v3 01/16] Makefile: detect HOST_ARCH properly when CROSS_COMPILE is multi-word Date: Tue, 3 Sep 2024 10:37:58 +0200 Message-Id: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: 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 When CROSS_COMPILE contains multiple words, HOST_ARCH is not properly detected and the sandbox build fail. It typically happens when using ccache. For example: $ make sandbox_defconfig $ make CROSS_COMPILE="ccache x86_64-linux-gnu-" \ CC="ccache x86_64-linux-gnu-gcc" [...] In file included from boot/bootmeth_efi.c:16: include/efi_default_filename.h:33:2: error: #error Unsupported UEFI architecture 33 | #error Unsupported UEFI architecture | ^~~~~ A similar error occurs when the build is done via buildman and ~/.buildman contains: [toolchain-wrapper] wrapper = ccache Fix the issue by considering only the last word in $(CROSS_COMPILE). Signed-off-by: Jerome Forissier Reviewed-by: Peter Robinson Reviewed-by: Ilias Apalodimas Reviewed-by: Peter Robinson --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f90e48f58a5..dc7bdd79420 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ include include/host_arch.h ifeq ("", "$(CROSS_COMPILE)") MK_ARCH="${shell uname -m}" else - MK_ARCH="${shell echo $(CROSS_COMPILE) | sed -n 's/^[[:space:]]*\([^\/]*\/\)*\([^-]*\)-[^[:space:]]*/\2/p'}" + MK_ARCH="${shell echo ${lastword $(CROSS_COMPILE)} | sed -n 's/^[[:space:]]*\([^\/]*\/\)*\([^-]*\)-[^[:space:]]*/\2/p'}" endif unexport HOST_ARCH ifeq ("x86_64", $(MK_ARCH)) From patchwork Tue Sep 3 08:37:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Forissier X-Patchwork-Id: 824877 Delivered-To: patch@linaro.org Received: by 2002:a5d:48c1:0:b0:367:895a:4699 with SMTP id p1csp2297766wrs; Tue, 3 Sep 2024 01:39:12 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUSj4AWJPhJbknMuKl3goMV38PVViQGuBfYk8HFgTd5GdHK9Vyed8AQv0LlQi6qNLMRn/jENw==@linaro.org X-Google-Smtp-Source: AGHT+IHGC7DFU1jDkj43Fl8Q3XJZ6Aoeo647nY5HyZeY+vA8Nc12KePXKvkkWdUi1pg+HGDLq3uN X-Received: by 2002:a17:907:7d93:b0:a86:ac05:2112 with SMTP id a640c23a62f3a-a897fa75845mr1265803666b.51.1725352752696; Tue, 03 Sep 2024 01:39:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725352752; cv=none; d=google.com; s=arc-20240605; b=Dz/RL1jb4JjRLXl9QK6yyeRiAWR3L1jg9b6+f7NlHF5q7BDd9H8YNwAUbHA1D1d1WY BfE5HCWAyyFi/tXoNMsKRZ5yhSHQgVjgp0mADxm1sYp9uvC5YIYtCEhS7cLpprma9hZ7 x0rmv6l7UpjefnIJ6zgAYX4MjJ9KFFBdv5QyeAL3Ejqr8XUlkQ21JYFCyCgUkfG0xQFP rBJGW91vfhv8Sa7whX9DNH1LRH9MRFtz0pv9EclBieyGMY7gWvtaSUTDUSYtdeQFFyor dJfvHuj8Q6QyYaADlwKmnKdePXBP2H2cWA14x7otfV5ztf1+b1gobFDZlGkPjPpta/SD gfIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=rNk71n5E6pjt2UwcXalyjEEUKv5jtsxHr6voRWPzPlU=; fh=Ml11yGlGMDDCs4gB3YGjuzID7dvLW1iXR8zEFklcGgM=; b=hRvU1DkF8gsFLqnCnfvD4k7hfCzlfUjEk/JhkGnta+N5lYLgi7AkHjnPxJOACqzyf5 TKKhabm1iIOl0DrTJIzG+xNUtwdbYUcQccFLaV5NJbp2Jz+XOd+umsOXxqvi9PNHDDT0 LEh9sSoAaOIoyLA3klMLX19lvLPzvV53Eg7MaE9HpVzNDHh6tkPmIOr4TPhTdQaKo/Gd bbTGAjzFcHo190fShFc8h0Nye/vLyEXJ0vtyOwr5LZjeTV0C0xrxZD49B/FoXCDzeB5d TPqBxTXdCE1GwRMLfnhwCixVxT0yDQsMkS4kWJWABMjhkG2DW/kpwrVCTpxw1zUT6y0L YGuA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WhtLZZ3O; 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; dara=neutral header.i=@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 a640c23a62f3a-a898912eff2si825895266b.473.2024.09.03.01.39.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 01:39:12 -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=WhtLZZ3O; 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; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B23AE88C91; Tue, 3 Sep 2024 10:38:52 +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="WhtLZZ3O"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0022588C87; Tue, 3 Sep 2024 10:38:50 +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, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) (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 014D788AB1 for ; Tue, 3 Sep 2024 10:38:49 +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=jerome.forissier@linaro.org Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-42c5347b2f7so26759195e9.0 for ; Tue, 03 Sep 2024 01:38:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725352728; x=1725957528; 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=rNk71n5E6pjt2UwcXalyjEEUKv5jtsxHr6voRWPzPlU=; b=WhtLZZ3Omq5ncGFMqMEGNASBduqTHYvGK0vItnk6B3oCGfFOPbIGjRLvIXlz/9KzWM /IyGBAeKtIT7l6hnm4plJD7DMSfmWSPCl0tpShOTipwOzg3M08TtNJcuad2xpy1/evvv RSRQ1YRzOEX0D9Nw23jKzwg+vUbGLZjrnwoZ2rarVu0+SpyVCXPkoGy9r3spj8CDLJtt j+rrtPoSM7qPPSkuONv/A+FWNWBwjHsXBIsEgRgJoM0Zdg7rijMR3xFODipFrBo2ctWE h6lvOXiy6aFBEXIR1h/2QnC1kxwK2lqPQwGsu3MnXkf5IJRk1YqZIv2gfG4g5gZXrMSs 1oRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725352728; x=1725957528; 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=rNk71n5E6pjt2UwcXalyjEEUKv5jtsxHr6voRWPzPlU=; b=Je2JxwCCJbEuFdJjVQDRs7AQyO0pf6wBgjQXTm8W/Iq+/lwXizQUv3aG3a60kOUrh0 3SDDDmv2bXMf3/H/XJ4aSGjyBhGzqKYckjA9hDoqn5mHkJhhQUgp+RW+R1xBwTE5BNvK bZWlUb9+4He5pL5UssJEhOrkw+KPbPIsW+lTQ0yLBl6480AatmdVt7uFKEzjRsdjZ1OX fB+yogp22bsyiWpcR1gl1LyHP+l91EKk8rA6Z/JhObz1NAXj8y+Cm5ybPx5g8yl5k3Oh E0GWb3tip8qgxXj69lNlixd9/cQp08q0s7GYkWmJATN8IfOrSAUvCFGWUf9dtqgaTJFM gkDA== X-Gm-Message-State: AOJu0Yw23rbSjF1MkFgTHZ1wZ180znAx7kYRaYBfUhrmBO5Bn1OLNGty 0KDgEPVNbLTOzNb4hxYr19aDOw8YTfjlJZ7o0GaPBXodvDBk+TUqajWdYmfIXSSHfpz7ROBEjCp yXoYrOg== X-Received: by 2002:a05:600c:1c83:b0:426:6ed5:d682 with SMTP id 5b1f17b1804b1-42bb01b4419mr115014325e9.12.1725352727630; Tue, 03 Sep 2024 01:38:47 -0700 (PDT) Received: from builder.. ([2a01:e0a:3cb:7bb0:6417:8cf6:a7f7:ee38]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42bb6df795asm163103325e9.21.2024.09.03.01.38.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 01:38:47 -0700 (PDT) From: Jerome Forissier To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Peter Robinson , Jerome Forissier , Simon Glass , Tom Rini , Andrejs Cainikovs , Brandon Maier , Heinrich Schuchardt Subject: [PATCH v3 02/16] buildman/toolchain.py: do not set CROSS_COMPILE for sandbox Date: Tue, 3 Sep 2024 10:37:59 +0200 Message-Id: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: 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 When building for sandbox, self.cross is empty. In MakeEnvironment(), CROSS_COMPILE is defined to be self.cross (with or without a full path), optionally prefixed by the toolchain wrapper defined in ~/.buildman. This is fine when self.cross is not empty, but it doesn't make sense when it is: - Either there is no wrapper and we end up with an empty CROSS_COMPILE which is the same as not defining it (the host compiler will be used), - Or there is a wrapper and CROSS_COMPILE will contain only the wrapper which obviously is not a valid compiler, hence an error. Test case: $ sudo apt install ccache $ grep -q toolchain-wrapper ~/.buildman || \ printf "[toolchain-wrapper]\nwrapper = ccache\n" >>~/.buildman $ make mrproper $ ./tools/buildman/buildman sandbox_noinst $ ./tools/buildman/buildman sandbox_noinst Building current source for 1 boards (1 thread, 24 jobs per thread) sandbox: + sandbox_noinst +arch/sandbox/lib/reloc_sandbox_efi.c:10:15: error: operator '==' has no left operand + 10 | #if HOST_ARCH == HOST_ARCH_X86_64 + | ^~ [...] The GetEnvArgs function is modified too, since the VAR_CROSS_COMPILE case has the same issue. In tools/buildman/test.py, testGetEnvArgs is extended and testMakeEnvironment is added. They check the 'arm' and 'sandbox' toolchains, with and without a wrapper. Signed-off-by: Jerome Forissier --- tools/buildman/test.py | 46 +++++++++++++++++++++++++++++++++++++ tools/buildman/toolchain.py | 6 +++-- 2 files changed, 50 insertions(+), 2 deletions(-) diff --git a/tools/buildman/test.py b/tools/buildman/test.py index bfad3093030..bda6596bde8 100644 --- a/tools/buildman/test.py +++ b/tools/buildman/test.py @@ -36,6 +36,16 @@ main: /usr/sbin x86: i386 x86_64 ''' +settings_data_wrapper = ''' +# Buildman settings file + +[toolchain] +main: /usr/sbin + +[toolchain-wrapper] +wrapper = ccache +''' + migration = '''===================== WARNING ====================== This board does not use CONFIG_DM. CONFIG_DM will be compulsory starting with the v2020.01 release. @@ -605,6 +615,9 @@ class TestBuild(unittest.TestCase): tc.GetEnvArgs(toolchain.VAR_ARCH)) self.assertEqual('', tc.GetEnvArgs(toolchain.VAR_MAKE_ARGS)) + tc = self.toolchains.Select('sandbox') + self.assertEqual('', tc.GetEnvArgs(toolchain.VAR_CROSS_COMPILE)) + self.toolchains.Add('/path/to/x86_64-linux-gcc', test=False) tc = self.toolchains.Select('x86') self.assertEqual('/path/to', @@ -613,6 +626,39 @@ class TestBuild(unittest.TestCase): self.assertEqual('HOSTCC=clang CC=clang', tc.GetEnvArgs(toolchain.VAR_MAKE_ARGS)) + # Test config with ccache wrapper + bsettings.setup(None) + bsettings.add_file(settings_data_wrapper) + + tc = self.toolchains.Select('arm') + self.assertEqual('ccache arm-linux-', + tc.GetEnvArgs(toolchain.VAR_CROSS_COMPILE)) + + tc = self.toolchains.Select('sandbox') + self.assertEqual('', tc.GetEnvArgs(toolchain.VAR_CROSS_COMPILE)) + + def testMakeEnvironment(self): + """Test the MakeEnvironment function""" + tc = self.toolchains.Select('arm') + env = tc.MakeEnvironment(False) + self.assertEqual(env[b'CROSS_COMPILE'], b'arm-linux-') + + tc = self.toolchains.Select('sandbox') + env = tc.MakeEnvironment(False) + self.assertTrue(b'CROSS_COMPILE' not in env) + + # Test config with ccache wrapper + bsettings.setup(None) + bsettings.add_file(settings_data_wrapper) + + tc = self.toolchains.Select('arm') + env = tc.MakeEnvironment(False) + self.assertEqual(env[b'CROSS_COMPILE'], b'ccache arm-linux-') + + tc = self.toolchains.Select('sandbox') + env = tc.MakeEnvironment(False) + self.assertTrue(b'CROSS_COMPILE' not in env) + def testPrepareOutputSpace(self): def _Touch(fname): tools.write_file(os.path.join(base_dir, fname), b'') diff --git a/tools/buildman/toolchain.py b/tools/buildman/toolchain.py index 324ad0e0821..cbd8ce03d30 100644 --- a/tools/buildman/toolchain.py +++ b/tools/buildman/toolchain.py @@ -159,6 +159,8 @@ class Toolchain: if which == VAR_CROSS_COMPILE: wrapper = self.GetWrapper() base = '' if self.arch == 'sandbox' else self.path + if (base == '' and self.cross == ''): + return '' return wrapper + os.path.join(base, self.cross) elif which == VAR_PATH: return self.path @@ -201,10 +203,10 @@ class Toolchain: if self.override_toolchain: # We'll use MakeArgs() to provide this pass - elif full_path: + elif full_path and self.cross: env[b'CROSS_COMPILE'] = tools.to_bytes( wrapper + os.path.join(self.path, self.cross)) - else: + elif self.cross: env[b'CROSS_COMPILE'] = tools.to_bytes(wrapper + self.cross) env[b'PATH'] = tools.to_bytes(self.path) + b':' + env[b'PATH'] From patchwork Tue Sep 3 08:38:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Forissier X-Patchwork-Id: 824878 Delivered-To: patch@linaro.org Received: by 2002:a5d:48c1:0:b0:367:895a:4699 with SMTP id p1csp2297802wrs; Tue, 3 Sep 2024 01:39:22 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUpQzV7qNpRWuePMO0/b7kbgCr3228PWib8JYWj9h/h8lnNlWNh2U8Mh0AVFtXLMyFENzGP7w==@linaro.org X-Google-Smtp-Source: AGHT+IFZjv2lwHjqHG7K6yzbWYKuJIi9Pk2+4td3SEPI6+ldysW6HkyDdvpoBYfdJqiF9E8WyS5z X-Received: by 2002:a17:907:94c2:b0:a77:c95e:9b1c with SMTP id a640c23a62f3a-a897f84bb8cmr1416457766b.27.1725352762656; Tue, 03 Sep 2024 01:39:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725352762; cv=none; d=google.com; s=arc-20240605; b=VqlSx8ZBTFzxRRYqRE0/Nl99pZcQ6b6X9+5/6hJIDcl7ltcadA4J/iSjPzdwUx4ruN 66eOu1PlsLMxos5pPs0xk3RpLSqrBoPBaZ4dcfxQeBH5uGyHl6T84ywUW/r0WR7QSWWC 5tf1orGpdCvDUvENMGK7pBrfOwpSxsH80R4ZsPoaTFsoHI2wzWdgq1ErcwvIQppbx4Y6 84ylwXeGcA9PbrcQYFGKcolITnCudxCc337F51aHJ1DhhvW9jtAn0kKODxat48o+Cb/D AeN8rpjpVEyKG55xqf2AjCPvB7q/mg+VcJuwVpglpPL06qNyNfSiBfcHEBzcgWSsF4N7 4vDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=Jzb/mRtjzSkwQDUPWBuVjzDQMQ57CVrfodOKkaFVbTU=; fh=slYz+UywTUfWLwNOPkfX9QDtFYdM/Qn6XR9LiPzRPRg=; b=Wqmsv+chIhpZHt7DQ5CPsnVjI7jBOvUGrvpBX3tQCOUCyQYDnC0foE+Xwafsc8A6pe /ZOQnP92bKNh3ka+7+19d13m50UvxA8zpR2/9EsidAuNomp/pNrTpe+A24puqQD2HxtB Dq20e60XmfBWj3jR7wbggKHfT6ZEkq5RuByGe43ZueK79E9W/Hdsg/BquQDrJGbN0NQq f6Lc44rJPqXVOTxNsq+m4pJPRsEZs5hbl1eX7UQZwjwjqR4F0U6h3vrI4Wd9buaooNXW MgcJKXhp0lWh7087/RjXH6arJO9vVwmsOWYfXfI3SC/G6Rpvj1aWUW5OfJdvVUnSSb7B XTvw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QXvvV4eH; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id a640c23a62f3a-a89cb8bbc44si493674566b.8.2024.09.03.01.39.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 01:39:22 -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=QXvvV4eH; 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; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1449A88CD9; Tue, 3 Sep 2024 10:38:54 +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="QXvvV4eH"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1FC5988CD2; Tue, 3 Sep 2024 10:38:53 +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, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) (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 0186888C30 for ; Tue, 3 Sep 2024 10:38:50 +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=jerome.forissier@linaro.org Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-42bb72a5e0bso44306585e9.1 for ; Tue, 03 Sep 2024 01:38:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725352729; x=1725957529; 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=Jzb/mRtjzSkwQDUPWBuVjzDQMQ57CVrfodOKkaFVbTU=; b=QXvvV4eHa2rTkTK1nAQHbXRe5csnH3uzBSqM8p9ufsdLSOXXedkb2dXKTkTcgpBKeH 7gcoqgFkY1/2LSN5VsEp/mduePM142O1/m2vOlu0E3JnMYzHa+0jVS1v8O3MEGmGxzg5 IQNWQ5gf7QcqZ1VMpMmFbuBW035yqhpUB5ZWj9dRgbh/tOAgV/JrWTyvsugnuj2zYDjJ kRIO+yRIjXiZ2z6A/59fp54wGDH/jieu6sMgDKzxQs6BZUoZ1aa043LqCJgOJgyervjB vahDFNnJQoNT7uDkv9UkuCSRwOhDXk9PMZxBS6h9N/b6z4xP+Bv2+sHuxDoGNNozOGIo ST6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725352729; x=1725957529; 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=Jzb/mRtjzSkwQDUPWBuVjzDQMQ57CVrfodOKkaFVbTU=; b=qIhIPWuVEu/FMDSc3M4J9mX8TvR/n1wEjDQ15t8QJXhNnRM2TVNSNlZ0RRvQqMq7qt 8rFlRNKIVeGhJfDDejT4li9Fk+yGTK8xyUltDhf4a/F1eOVk/iT7qhF5CEd88V0aSI33 3pCRG56Zbq8sC7uF/mMImRFwuXiC/1pcng/XKwCnnRY0gu9MR6BC8x8fb1Vt3X2/Krvz n7yl0BmGi+4RtxKUXhJyofWYlHWS2XZKKx3tvON1b2QLDBvcqf+EJucsqBoMB7q3yCAG XN4o/oMwhfV9eHHqJgJWDlcvi5JGHymAKrfXIFqfDzfLcw6nb0N88kfv6VwjlrqtrHvg 8jLg== X-Gm-Message-State: AOJu0Yz1O+yYZbGo7t2xHtmy0UqsuLqewaYZk1iD1inEkYsrmLdB0FQn cyfKpvXbwTxIe6lnXkrw6wjRxY5nvMYIB7lnDlinjSog88Ln5snSCm9t/BSTX8nHsn05OPG97ny jlHJAOw== X-Received: by 2002:a05:600c:4f50:b0:42b:ac94:6929 with SMTP id 5b1f17b1804b1-42bb01fb8a9mr136639765e9.32.1725352729142; Tue, 03 Sep 2024 01:38:49 -0700 (PDT) Received: from builder.. ([2a01:e0a:3cb:7bb0:6417:8cf6:a7f7:ee38]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42bb6df795asm163103325e9.21.2024.09.03.01.38.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 01:38:48 -0700 (PDT) From: Jerome Forissier To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Peter Robinson , Jerome Forissier , Tom Rini , Angelo Dureghello , TsiChung Liew , Stefan Roese , Marek Vasut , Jason Liu , Peng Fan , William Zhang Subject: [PATCH v3 03/16] flash: prefix error codes with FL_ Date: Tue, 3 Sep 2024 10:38:00 +0200 Message-Id: <51b9ac0e7df1ae6f747ea44498a101170d7cae33.1725351676.git.jerome.forissier@linaro.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: 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 Prefix the flash status codes (ERR_*) with FL_ in order to avoid clashes with third-party libraries. Case in point: including the lwIP library header file which defines err_enum_t as an enum with values being ERR_*. Signed-off-by: Jerome Forissier Reviewed-by: Tom Rini Reviewed-by: Ilias Apalodimas Reviewed-by: Peter Robinson --- board/cobra5272/flash.c | 26 +++++++++--------- board/freescale/m5253demo/flash.c | 6 ++--- common/flash.c | 44 +++++++++++++++---------------- drivers/mtd/altera_qspi.c | 4 +-- drivers/mtd/cfi_flash.c | 36 ++++++++++++------------- include/flash.h | 20 +++++++------- 6 files changed, 68 insertions(+), 68 deletions(-) diff --git a/board/cobra5272/flash.c b/board/cobra5272/flash.c index 616842e62f4..d324aa6ac11 100644 --- a/board/cobra5272/flash.c +++ b/board/cobra5272/flash.c @@ -135,22 +135,22 @@ int flash_erase(flash_info_t *info, int s_first, int s_last) { ulong result; int iflag, cflag, prot, sect; - int rc = ERR_OK; + int rc = FL_ERR_OK; int chip1; ulong start; /* first look for protection bits */ if (info->flash_id == FLASH_UNKNOWN) - return ERR_UNKNOWN_FLASH_TYPE; + return FL_ERR_UNKNOWN_FLASH_TYPE; if ((s_first < 0) || (s_first > s_last)) { - return ERR_INVAL; + return FL_ERR_INVAL; } if ((info->flash_id & FLASH_VENDMASK) != (AMD_MANUFACT & FLASH_VENDMASK)) { - return ERR_UNKNOWN_FLASH_VENDOR; + return FL_ERR_UNKNOWN_FLASH_VENDOR; } prot = 0; @@ -160,7 +160,7 @@ int flash_erase(flash_info_t *info, int s_first, int s_last) } } if (prot) - return ERR_PROTECTED; + return FL_ERR_PROTECTED; /* * Disable interrupts which might cause a timeout @@ -217,11 +217,11 @@ int flash_erase(flash_info_t *info, int s_first, int s_last) MEM_FLASH_ADDR1 = CMD_READ_ARRAY; if (chip1 == ERR) { - rc = ERR_PROG_ERROR; + rc = FL_ERR_PROG_ERROR; goto outahere; } if (chip1 == TMO) { - rc = ERR_TIMEOUT; + rc = FL_ERR_TIMEOUT; goto outahere; } @@ -252,7 +252,7 @@ static int write_word(flash_info_t *info, ulong dest, ulong data) { volatile u16 *addr = (volatile u16 *) dest; ulong result; - int rc = ERR_OK; + int rc = FL_ERR_OK; int cflag, iflag; int chip1; ulong start; @@ -262,7 +262,7 @@ static int write_word(flash_info_t *info, ulong dest, ulong data) */ result = *addr; if ((result & data) != data) - return ERR_NOT_ERASED; + return FL_ERR_NOT_ERASED; /* * Disable interrupts which might cause a timeout @@ -302,7 +302,7 @@ static int write_word(flash_info_t *info, ulong dest, ulong data) *addr = CMD_READ_ARRAY; if (chip1 == ERR || *addr != data) - rc = ERR_PROG_ERROR; + rc = FL_ERR_PROG_ERROR; if (iflag) enable_interrupts(); @@ -320,13 +320,13 @@ int write_buff(flash_info_t *info, uchar *src, ulong addr, ulong cnt) if (addr & 1) { printf ("unaligned destination not supported\n"); - return ERR_ALIGN; + return FL_ERR_ALIGN; } #if 0 if (cnt & 1) { printf ("odd transfer sizes not supported\n"); - return ERR_ALIGN; + return FL_ERR_ALIGN; } #endif @@ -364,5 +364,5 @@ int write_buff(flash_info_t *info, uchar *src, ulong addr, ulong cnt) cnt -= 1; } - return ERR_OK; + return FL_ERR_OK; } diff --git a/board/freescale/m5253demo/flash.c b/board/freescale/m5253demo/flash.c index 334518a4bc9..ab5d2ebff64 100644 --- a/board/freescale/m5253demo/flash.c +++ b/board/freescale/m5253demo/flash.c @@ -72,7 +72,7 @@ int flash_get_offsets(ulong base, flash_info_t * info) } } - return ERR_OK; + return FL_ERR_OK; } void flash_print_info(flash_info_t * info) @@ -369,9 +369,9 @@ int write_buff(flash_info_t * info, uchar * src, ulong addr, ulong cnt) } if (cnt == 0) - return ERR_OK; + return FL_ERR_OK; - return ERR_OK; + return FL_ERR_OK; } /*----------------------------------------------------------------------- diff --git a/common/flash.c b/common/flash.c index 24ddc8bee72..a64e51a9b5a 100644 --- a/common/flash.c +++ b/common/flash.c @@ -110,13 +110,13 @@ addr2info(ulong addr) * Make sure all target addresses are within Flash bounds, * and no protected sectors are hit. * Returns: - * ERR_OK 0 - OK - * ERR_TIMEOUT 1 - write timeout - * ERR_NOT_ERASED 2 - Flash not erased - * ERR_PROTECTED 4 - target range includes protected sectors - * ERR_INVAL 8 - target address not in Flash memory - * ERR_ALIGN 16 - target address not aligned on boundary - * (only some targets require alignment) + * FL_ERR_OK 0 - OK + * FL_ERR_TIMEOUT 1 - write timeout + * FL_ERR_NOT_ERASED 2 - Flash not erased + * FL_ERR_PROTECTED 4 - target range includes protected sectors + * FL_ERR_INVAL 8 - target address not in Flash memory + * FL_ERR_ALIGN 16 - target address not aligned on boundary + * (only some targets require alignment) */ int flash_write(char *src, ulong addr, ulong cnt) @@ -131,11 +131,11 @@ flash_write(char *src, ulong addr, ulong cnt) __maybe_unused ulong cnt_orig = cnt; if (cnt == 0) { - return (ERR_OK); + return (FL_ERR_OK); } if (!info_first || !info_last) { - return (ERR_INVAL); + return (FL_ERR_INVAL); } for (info = info_first; info <= info_last; ++info) { @@ -146,7 +146,7 @@ flash_write(char *src, ulong addr, ulong cnt) if ((end >= info->start[i]) && (addr < e_addr) && (info->protect[i] != 0) ) { - return (ERR_PROTECTED); + return (FL_ERR_PROTECTED); } } } @@ -169,11 +169,11 @@ flash_write(char *src, ulong addr, ulong cnt) #if defined(CONFIG_FLASH_VERIFY) if (memcmp(src_orig, addr_orig, cnt_orig)) { printf("\nVerify failed!\n"); - return ERR_PROG_ERROR; + return FL_ERR_PROG_ERROR; } #endif /* CONFIG_SYS_FLASH_VERIFY_AFTER_WRITE */ - return (ERR_OK); + return (FL_ERR_OK); } /*----------------------------------------------------------------------- @@ -182,33 +182,33 @@ flash_write(char *src, ulong addr, ulong cnt) void flash_perror(int err) { switch (err) { - case ERR_OK: + case FL_ERR_OK: break; - case ERR_TIMEOUT: + case FL_ERR_TIMEOUT: puts ("Timeout writing to Flash\n"); break; - case ERR_NOT_ERASED: + case FL_ERR_NOT_ERASED: puts ("Flash not Erased\n"); break; - case ERR_PROTECTED: + case FL_ERR_PROTECTED: puts ("Can't write to protected Flash sectors\n"); break; - case ERR_INVAL: + case FL_ERR_INVAL: puts ("Outside available Flash\n"); break; - case ERR_ALIGN: + case FL_ERR_ALIGN: puts ("Start and/or end address not on sector boundary\n"); break; - case ERR_UNKNOWN_FLASH_VENDOR: + case FL_ERR_UNKNOWN_FLASH_VENDOR: puts ("Unknown Vendor of Flash\n"); break; - case ERR_UNKNOWN_FLASH_TYPE: + case FL_ERR_UNKNOWN_FLASH_TYPE: puts ("Unknown Type of Flash\n"); break; - case ERR_PROG_ERROR: + case FL_ERR_PROG_ERROR: puts ("General Flash Programming Error\n"); break; - case ERR_ABORTED: + case FL_ERR_ABORTED: puts("Flash Programming Aborted\n"); break; default: diff --git a/drivers/mtd/altera_qspi.c b/drivers/mtd/altera_qspi.c index c26615821c8..e5c8df750b7 100644 --- a/drivers/mtd/altera_qspi.c +++ b/drivers/mtd/altera_qspi.c @@ -96,7 +96,7 @@ int flash_erase(flash_info_t *info, int s_first, int s_last) ret = mtd_erase(mtd, &instr); flash_set_verbose(0); if (ret) - return ERR_PROTECTED; + return FL_ERR_PROTECTED; puts(" done\n"); return 0; @@ -114,7 +114,7 @@ int write_buff(flash_info_t *info, uchar *src, ulong addr, ulong cnt) ret = mtd_write(mtd, to, cnt, &retlen, src); if (ret) - return ERR_PROTECTED; + return FL_ERR_PROTECTED; return 0; } diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c index a7826e81c17..e50502824ac 100644 --- a/drivers/mtd/cfi_flash.c +++ b/drivers/mtd/cfi_flash.c @@ -593,11 +593,11 @@ static int flash_status_check(flash_info_t *info, flash_sect_t sector, flash_read_long(info, sector, 0)); flash_write_cmd(info, sector, 0, info->cmd_reset); udelay(1); - return ERR_TIMEOUT; + return FL_ERR_TIMEOUT; } udelay(1); /* also triggers watchdog */ } - return ERR_OK; + return FL_ERR_OK; } /*----------------------------------------------------------------------- @@ -616,9 +616,9 @@ static int flash_full_status_check(flash_info_t *info, flash_sect_t sector, case CFI_CMDSET_INTEL_PROG_REGIONS: case CFI_CMDSET_INTEL_EXTENDED: case CFI_CMDSET_INTEL_STANDARD: - if (retcode == ERR_OK && + if (retcode == FL_ERR_OK && !flash_isset(info, sector, 0, FLASH_STATUS_DONE)) { - retcode = ERR_INVAL; + retcode = FL_ERR_INVAL; printf("Flash %s error at address %lx\n", prompt, info->start[sector]); if (flash_isset(info, sector, 0, FLASH_STATUS_ECLBS | @@ -627,14 +627,14 @@ static int flash_full_status_check(flash_info_t *info, flash_sect_t sector, } else if (flash_isset(info, sector, 0, FLASH_STATUS_ECLBS)) { puts("Block Erase Error.\n"); - retcode = ERR_NOT_ERASED; + retcode = FL_ERR_NOT_ERASED; } else if (flash_isset(info, sector, 0, FLASH_STATUS_PSLBS)) { puts("Locking Error\n"); } if (flash_isset(info, sector, 0, FLASH_STATUS_DPS)) { puts("Block locked.\n"); - retcode = ERR_PROTECTED; + retcode = FL_ERR_PROTECTED; } if (flash_isset(info, sector, 0, FLASH_STATUS_VPENS)) puts("Vpp Low Error.\n"); @@ -702,12 +702,12 @@ static int flash_status_poll(flash_info_t *info, void *src, void *dst, if (get_timer(start) > tout) { printf("Flash %s timeout at address %lx data %lx\n", prompt, (ulong)dst, (ulong)flash_read8(dst)); - return ERR_TIMEOUT; + return FL_ERR_TIMEOUT; } udelay(1); /* also triggers watchdog */ } #endif /* CONFIG_SYS_CFI_FLASH_STATUS_POLL */ - return ERR_OK; + return FL_ERR_OK; } /*----------------------------------------------------------------------- @@ -810,7 +810,7 @@ static int flash_write_cfiword(flash_info_t *info, ulong dest, cfiword_t cword) break; } if (!flag) - return ERR_NOT_ERASED; + return FL_ERR_NOT_ERASED; /* Disable interrupts which might cause a timeout here */ flag = disable_interrupts(); @@ -899,7 +899,7 @@ static int flash_write_cfibuffer(flash_info_t *info, ulong dest, uchar *cp, shift = 3; break; default: - retcode = ERR_INVAL; + retcode = FL_ERR_INVAL; goto out_unmap; } @@ -930,7 +930,7 @@ static int flash_write_cfibuffer(flash_info_t *info, ulong dest, uchar *cp, } } if (!flag) { - retcode = ERR_NOT_ERASED; + retcode = FL_ERR_NOT_ERASED; goto out_unmap; } @@ -950,7 +950,7 @@ static int flash_write_cfibuffer(flash_info_t *info, ulong dest, uchar *cp, retcode = flash_status_check(info, sector, info->buffer_write_tout, "write to buffer"); - if (retcode == ERR_OK) { + if (retcode == FL_ERR_OK) { /* reduce the number of loops by the width of * the port */ @@ -975,7 +975,7 @@ static int flash_write_cfibuffer(flash_info_t *info, ulong dest, uchar *cp, src += 8, dst += 8; break; default: - retcode = ERR_INVAL; + retcode = FL_ERR_INVAL; goto out_unmap; } } @@ -1025,7 +1025,7 @@ static int flash_write_cfibuffer(flash_info_t *info, ulong dest, uchar *cp, } break; default: - retcode = ERR_INVAL; + retcode = FL_ERR_INVAL; goto out_unmap; } @@ -1043,7 +1043,7 @@ static int flash_write_cfibuffer(flash_info_t *info, ulong dest, uchar *cp, default: debug("Unknown Command Set\n"); - retcode = ERR_INVAL; + retcode = FL_ERR_INVAL; break; } @@ -1389,7 +1389,7 @@ int write_buff(flash_info_t *info, uchar *src, ulong addr, ulong cnt) if (i > cnt) i = cnt; rc = flash_write_cfibuffer(info, wp, src, i); - if (rc != ERR_OK) + if (rc != FL_ERR_OK) return rc; i -= i & (info->portwidth - 1); wp += i; @@ -1398,7 +1398,7 @@ int write_buff(flash_info_t *info, uchar *src, ulong addr, ulong cnt) FLASH_SHOW_PROGRESS(scale, dots, digit, i); /* Only check every once in a while */ if ((cnt & 0xFFFF) < buffered_size && ctrlc()) - return ERR_ABORTED; + return FL_ERR_ABORTED; } #else while (cnt >= info->portwidth) { @@ -1413,7 +1413,7 @@ int write_buff(flash_info_t *info, uchar *src, ulong addr, ulong cnt) FLASH_SHOW_PROGRESS(scale, dots, digit, info->portwidth); /* Only check every once in a while */ if ((cnt & 0xFFFF) < info->portwidth && ctrlc()) - return ERR_ABORTED; + return FL_ERR_ABORTED; } #endif /* CONFIG_SYS_FLASH_USE_BUFFER_WRITE */ diff --git a/include/flash.h b/include/flash.h index 60babe8a805..32bc65e7b60 100644 --- a/include/flash.h +++ b/include/flash.h @@ -127,16 +127,16 @@ void flash_perror(int err); /*----------------------------------------------------------------------- * return codes from flash_write(): */ -#define ERR_OK 0 -#define ERR_TIMEOUT 1 -#define ERR_NOT_ERASED 2 -#define ERR_PROTECTED 4 -#define ERR_INVAL 8 -#define ERR_ALIGN 16 -#define ERR_UNKNOWN_FLASH_VENDOR 32 -#define ERR_UNKNOWN_FLASH_TYPE 64 -#define ERR_PROG_ERROR 128 -#define ERR_ABORTED 256 +#define FL_ERR_OK 0 +#define FL_ERR_TIMEOUT 1 +#define FL_ERR_NOT_ERASED 2 +#define FL_ERR_PROTECTED 4 +#define FL_ERR_INVAL 8 +#define FL_ERR_ALIGN 16 +#define FL_ERR_UNKNOWN_FLASH_VENDOR 32 +#define FL_ERR_UNKNOWN_FLASH_TYPE 64 +#define FL_ERR_PROG_ERROR 128 +#define FL_ERR_ABORTED 256 /*----------------------------------------------------------------------- * Protection Flags for flash_protect(): From patchwork Tue Sep 3 08:38:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Forissier X-Patchwork-Id: 824879 Delivered-To: patch@linaro.org Received: by 2002:a5d:48c1:0:b0:367:895a:4699 with SMTP id p1csp2297846wrs; Tue, 3 Sep 2024 01:39:33 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWzPNo2OEUh0/gX3h/COlmbHGLNoyhVrohlIO/9oJv7UgQYCvtccONdz0/NbFchPhEa4/zcnw==@linaro.org X-Google-Smtp-Source: AGHT+IFxFK+3QquWattm12UdyvpArB7TVs/v3hK/igszfMZOI4fC4vNxzykYtNIg5JdcPiPHmbU4 X-Received: by 2002:a17:907:9488:b0:a7a:9ca6:528 with SMTP id a640c23a62f3a-a89b93c7cdfmr659767466b.11.1725352773493; Tue, 03 Sep 2024 01:39:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725352773; cv=none; d=google.com; s=arc-20240605; b=BPsS9gtsaB1PpeEhXXHRVnpqMnnUKZB8L97/M4tuW8znt+NNT6MMuW71um9wKBBH2T Jc+a1cmSPqvG5FqDIvDKuVbJKY+xMesT10awCwRWqUb3wS5g5cWuDve2dTsB2p/ODIhM 9KKq+uD5JUNipOUYrr4dE4b8KXdMPIVpZmA9VCfKTJPCFlDGQxSvYKcihDA48aoyAaY1 xT9MNgzLsKW7nkq3DcG6yPi2U3B/rKJ8dQNaXiW3Dzc3Ub/Azf2UNzUldEdHEt4IBJ6+ +9bNpjLQ2EnwAR2pFJ0RpUT2/BdfFoMyTzBRw5qULYSbFtnrbxeNBIxGH5GiKTJNzQWw TkBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=zoK8FOzTIrKWJpua5WQQxt2OxRail5WV2S9LpE9drIs=; fh=vl1KxqUGBNe9jkGYhhn7R6+0R7dDj9SH2iFdtSvOsOg=; b=WtCyjN9Pz2L2J5RuVGcCtTXU2Mm1HuDXu/gbzwzuK9hCbUYgHOedkdKLSFS0X1EeG6 hCmivXMV8uH6bxItxwoW/UnEuqHOlqCVRuvuN4I2VK5QLgxjeZ8Rn7O/rDk/eTFmMvo0 k22U9XPNtpY8UV9mvjr5gyst4bhF3SqaGKDJs0j49cMojMvkPPsF01d8KuuzXrPtq1rE YiuXuCrgueyMMkRfae15kSexeN7IN045dmTQJ0IOGlw90LvSs3p84jJQZEbnwFFkW1Mu u+2nJWi8A2CTEHkiNF+3L+IXPjlJpq3L+dri9TY/dajmQb6rXRBPZQUGO5ts+asTdIM/ 5ctg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ykme2GhZ; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id a640c23a62f3a-a898916b210si847039766b.575.2024.09.03.01.39.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 01:39:33 -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=ykme2GhZ; 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; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6A36388CF2; Tue, 3 Sep 2024 10:38:56 +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="ykme2GhZ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 32C2E88C8A; Tue, 3 Sep 2024 10:38:55 +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, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) (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 C6D7388CAF for ; Tue, 3 Sep 2024 10:38:52 +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=jerome.forissier@linaro.org Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-42c7a384b18so22267085e9.0 for ; Tue, 03 Sep 2024 01:38:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725352731; x=1725957531; 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=zoK8FOzTIrKWJpua5WQQxt2OxRail5WV2S9LpE9drIs=; b=ykme2GhZ1EwEdPmfHedLj+mU8qncJuVOVfTLr3x2DsnVn6p3ccns3FVZWwwgOgKjQ4 2GsC8mH/i5NjCG1sOBsDYjkRYGlQS/XSg/P3rvw8pbmwYlx2KScQV/sDGWyk/yO78C4v evSFb5BmpYi0l3tze9zCmN9VkC6DIrJqqI4htzRAM7zw0Nj6p219A15onX7FV/GEdTqE eAppVNxXrGSBV7dPk2k/XJIBNoA5y5rF7ZKx5MjbX/vjOuA4cDsawGX5vJz1OLGfiSa7 uHcrlIRwgbjD9cPD8yvJLdexFEH7g+vn33MSdTwXegJ2qe4ezhU+cvTOasBA5Czm5U3O TkYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725352731; x=1725957531; 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=zoK8FOzTIrKWJpua5WQQxt2OxRail5WV2S9LpE9drIs=; b=FWvRgc5Y4CmJ1OqZncjzAKyb5Z5qxhRSoitzAzrSloqTkDDe7WhgMSRVptTJXDXlRd mdrt4YwgIQ0UptAXOVPCQNEFWNk6L/9vSBlM81dOulPi0PQdRrY/h7AZ9Rqbsm1hyoso n5aQ1dCD2SJW2KnzT37lx21qw5ZTbZErsS4b3Nq+cbCVoXtElfB679ldUsB30r+KcBmm UJFqti3kCXtyqaVRZGXqLIRmSqIeZ7ll9Cn+GOLo5JDB+wlhigdL+YxRFh2RcXD7bp/c QaKxnj4xXUIaCyaLfgmkobfbRT+/7W8jPBKKill5Y+KbFlYoPBiiuPsuRTCwl0L9blhZ 2nBA== X-Gm-Message-State: AOJu0YyuwUgA76CMj+rnLVj/2aXV6tV1WHB3rxkHc0PxgNtmzDael8hX mLMNPHt7U3hQEyQ3LRH+1/H0pEdODNMKCP/YW7mk8Hv/YMKUsnAr/+fB8fRMJoe0rdylUg596Mv fWqnRRQ== X-Received: by 2002:a05:600c:4452:b0:428:1090:cfd4 with SMTP id 5b1f17b1804b1-42be48faa4emr63848185e9.33.1725352731492; Tue, 03 Sep 2024 01:38:51 -0700 (PDT) Received: from builder.. ([2a01:e0a:3cb:7bb0:6417:8cf6:a7f7:ee38]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42bb6df795asm163103325e9.21.2024.09.03.01.38.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 01:38:51 -0700 (PDT) From: Jerome Forissier To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Peter Robinson , Jerome Forissier , Heiko Schocher , Eugen Hristev , Tom Rini , Nicolas Ferre , Jakub Klama , Artur Rojek , Stefan Roese , Marcin Jabrzyk Subject: [PATCH v3 04/16] at91: rename mem_init() to at91_mem_init() Date: Tue, 3 Sep 2024 10:38:01 +0200 Message-Id: <65899254eef2808c23068dcad1db0c301c9101bc.1725351676.git.jerome.forissier@linaro.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: 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 The AT91-based platforms have a mem_init() function declared in arch/arm/mach-at91/include/mach/at91_common.h and implemented in various places. In preparation of the introduction of the lwIP networking library which also has a global mem_init() function, rename the AT91 one to at91_mem_init(). Signed-off-by: Jerome Forissier Reviewed-by: Peter Robinson Reviewed-by: Ilias Apalodimas Reviewed-by: Heiko Schocher --- arch/arm/mach-at91/include/mach/at91_common.h | 2 +- arch/arm/mach-at91/spl_at91.c | 2 +- arch/arm/mach-at91/spl_atmel.c | 2 +- board/atmel/at91sam9m10g45ek/at91sam9m10g45ek.c | 2 +- board/atmel/at91sam9n12ek/at91sam9n12ek.c | 2 +- board/atmel/at91sam9x5ek/at91sam9x5ek.c | 2 +- board/atmel/sama5d27_som1_ek/sama5d27_som1_ek.c | 2 +- board/atmel/sama5d27_wlsom1_ek/sama5d27_wlsom1_ek.c | 2 +- board/atmel/sama5d2_icp/sama5d2_icp.c | 2 +- board/atmel/sama5d2_xplained/sama5d2_xplained.c | 2 +- board/atmel/sama5d3_xplained/sama5d3_xplained.c | 2 +- board/atmel/sama5d3xek/sama5d3xek.c | 2 +- board/atmel/sama5d4_xplained/sama5d4_xplained.c | 2 +- board/atmel/sama5d4ek/sama5d4ek.c | 2 +- board/conclusive/kstr-sama5d27/kstr-sama5d27.c | 2 +- board/gardena/smart-gateway-at91sam/spl.c | 2 +- board/siemens/corvus/board.c | 2 +- board/siemens/smartweb/smartweb.c | 2 +- board/siemens/taurus/taurus.c | 2 +- 19 files changed, 19 insertions(+), 19 deletions(-) diff --git a/arch/arm/mach-at91/include/mach/at91_common.h b/arch/arm/mach-at91/include/mach/at91_common.h index 683e539b1b3..8fec346c1e4 100644 --- a/arch/arm/mach-at91/include/mach/at91_common.h +++ b/arch/arm/mach-at91/include/mach/at91_common.h @@ -28,7 +28,7 @@ void at91_pllb_init(u32 pllar); void at91_mck_init(u32 mckr); void at91_mck_init_down(u32 mckr); void at91_pmc_init(void); -void mem_init(void); +void at91_mem_init(void); void at91_phy_reset(void); void at91_sdram_hw_init(void); void at91_mck_init(u32 mckr); diff --git a/arch/arm/mach-at91/spl_at91.c b/arch/arm/mach-at91/spl_at91.c index cde1700a283..0d1233cd109 100644 --- a/arch/arm/mach-at91/spl_at91.c +++ b/arch/arm/mach-at91/spl_at91.c @@ -142,7 +142,7 @@ void board_init_f(ulong dummy) preloader_console_init(); #endif - mem_init(); + at91_mem_init(); at91_spl_board_init(); } diff --git a/arch/arm/mach-at91/spl_atmel.c b/arch/arm/mach-at91/spl_atmel.c index 62a7df8a195..7bfbadf0483 100644 --- a/arch/arm/mach-at91/spl_atmel.c +++ b/arch/arm/mach-at91/spl_atmel.c @@ -134,7 +134,7 @@ void board_init_f(ulong dummy) board_early_init_f(); - mem_init(); + at91_mem_init(); ret = spl_init(); if (ret) { diff --git a/board/atmel/at91sam9m10g45ek/at91sam9m10g45ek.c b/board/atmel/at91sam9m10g45ek/at91sam9m10g45ek.c index 3bd94d0889d..af486e977e5 100644 --- a/board/atmel/at91sam9m10g45ek/at91sam9m10g45ek.c +++ b/board/atmel/at91sam9m10g45ek/at91sam9m10g45ek.c @@ -125,7 +125,7 @@ static void ddr2_conf(struct atmel_mpddrc_config *ddr2) 2 << ATMEL_MPDDRC_TPR2_TXARD_OFFSET); } -void mem_init(void) +void at91_mem_init(void) { struct atmel_mpddrc_config ddr2; diff --git a/board/atmel/at91sam9n12ek/at91sam9n12ek.c b/board/atmel/at91sam9n12ek/at91sam9n12ek.c index afc0c0520e1..6f9abcbb127 100644 --- a/board/atmel/at91sam9n12ek/at91sam9n12ek.c +++ b/board/atmel/at91sam9n12ek/at91sam9n12ek.c @@ -167,7 +167,7 @@ static void ddr2_conf(struct atmel_mpddrc_config *ddr2) 2 << ATMEL_MPDDRC_TPR2_TXARD_OFFSET); } -void mem_init(void) +void at91_mem_init(void) { struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; struct at91_matrix *matrix = (struct at91_matrix *)ATMEL_BASE_MATRIX; diff --git a/board/atmel/at91sam9x5ek/at91sam9x5ek.c b/board/atmel/at91sam9x5ek/at91sam9x5ek.c index e5688c6cf13..f52b9a97731 100644 --- a/board/atmel/at91sam9x5ek/at91sam9x5ek.c +++ b/board/atmel/at91sam9x5ek/at91sam9x5ek.c @@ -181,7 +181,7 @@ static void ddr2_conf(struct atmel_mpddrc_config *ddr2) 2 << ATMEL_MPDDRC_TPR2_TXARD_OFFSET); } -void mem_init(void) +void at91_mem_init(void) { struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; struct at91_matrix *matrix = (struct at91_matrix *)ATMEL_BASE_MATRIX; diff --git a/board/atmel/sama5d27_som1_ek/sama5d27_som1_ek.c b/board/atmel/sama5d27_som1_ek/sama5d27_som1_ek.c index 36995a927cf..cb3cd7ac9ae 100644 --- a/board/atmel/sama5d27_som1_ek/sama5d27_som1_ek.c +++ b/board/atmel/sama5d27_som1_ek/sama5d27_som1_ek.c @@ -146,7 +146,7 @@ static void ddrc_conf(struct atmel_mpddrc_config *ddrc) (8 << ATMEL_MPDDRC_TPR2_TFAW_OFFSET)); } -void mem_init(void) +void at91_mem_init(void) { struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; struct atmel_mpddr *mpddrc = (struct atmel_mpddr *)ATMEL_BASE_MPDDRC; diff --git a/board/atmel/sama5d27_wlsom1_ek/sama5d27_wlsom1_ek.c b/board/atmel/sama5d27_wlsom1_ek/sama5d27_wlsom1_ek.c index c775d593e58..15cbd0daa6f 100644 --- a/board/atmel/sama5d27_wlsom1_ek/sama5d27_wlsom1_ek.c +++ b/board/atmel/sama5d27_wlsom1_ek/sama5d27_wlsom1_ek.c @@ -208,7 +208,7 @@ static void ddrc_conf(struct atmel_mpddrc_config *ddrc) ddrc->cal_mr4 |= ATMEL_MPDDRC_CAL_MR4_MR4R(0xFFFE); } -void mem_init(void) +void at91_mem_init(void) { struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; struct atmel_mpddr *mpddrc = (struct atmel_mpddr *)ATMEL_BASE_MPDDRC; diff --git a/board/atmel/sama5d2_icp/sama5d2_icp.c b/board/atmel/sama5d2_icp/sama5d2_icp.c index 986da01639f..6f0d578abf7 100644 --- a/board/atmel/sama5d2_icp/sama5d2_icp.c +++ b/board/atmel/sama5d2_icp/sama5d2_icp.c @@ -180,7 +180,7 @@ static void ddrc_conf(struct atmel_mpddrc_config *ddrc) (7 << ATMEL_MPDDRC_TPR2_TFAW_OFFSET)); } -void mem_init(void) +void at91_mem_init(void) { struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; struct atmel_mpddr *mpddrc = (struct atmel_mpddr *)ATMEL_BASE_MPDDRC; diff --git a/board/atmel/sama5d2_xplained/sama5d2_xplained.c b/board/atmel/sama5d2_xplained/sama5d2_xplained.c index c8a8eb49826..d104736fa7c 100644 --- a/board/atmel/sama5d2_xplained/sama5d2_xplained.c +++ b/board/atmel/sama5d2_xplained/sama5d2_xplained.c @@ -146,7 +146,7 @@ static void ddrc_conf(struct atmel_mpddrc_config *ddrc) 7 << ATMEL_MPDDRC_TPR2_TFAW_OFFSET); } -void mem_init(void) +void at91_mem_init(void) { struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; struct atmel_mpddr *mpddrc = (struct atmel_mpddr *)ATMEL_BASE_MPDDRC; diff --git a/board/atmel/sama5d3_xplained/sama5d3_xplained.c b/board/atmel/sama5d3_xplained/sama5d3_xplained.c index 54cc3c4d900..f98322fb540 100644 --- a/board/atmel/sama5d3_xplained/sama5d3_xplained.c +++ b/board/atmel/sama5d3_xplained/sama5d3_xplained.c @@ -175,7 +175,7 @@ static void ddr2_conf(struct atmel_mpddrc_config *ddr2) 8 << ATMEL_MPDDRC_TPR2_TXARD_OFFSET); } -void mem_init(void) +void at91_mem_init(void) { struct atmel_mpddrc_config ddr2; diff --git a/board/atmel/sama5d3xek/sama5d3xek.c b/board/atmel/sama5d3xek/sama5d3xek.c index f2e1242fcb0..28079a81517 100644 --- a/board/atmel/sama5d3xek/sama5d3xek.c +++ b/board/atmel/sama5d3xek/sama5d3xek.c @@ -241,7 +241,7 @@ static void ddr2_conf(struct atmel_mpddrc_config *ddr2) 8 << ATMEL_MPDDRC_TPR2_TXARD_OFFSET); } -void mem_init(void) +void at91_mem_init(void) { struct atmel_mpddrc_config ddr2; diff --git a/board/atmel/sama5d4_xplained/sama5d4_xplained.c b/board/atmel/sama5d4_xplained/sama5d4_xplained.c index 09ca16ca88c..f9112fc5321 100644 --- a/board/atmel/sama5d4_xplained/sama5d4_xplained.c +++ b/board/atmel/sama5d4_xplained/sama5d4_xplained.c @@ -184,7 +184,7 @@ static void ddr2_conf(struct atmel_mpddrc_config *ddr2) 8 << ATMEL_MPDDRC_TPR2_TXARD_OFFSET); } -void mem_init(void) +void at91_mem_init(void) { struct atmel_mpddrc_config ddr2; diff --git a/board/atmel/sama5d4ek/sama5d4ek.c b/board/atmel/sama5d4ek/sama5d4ek.c index 1f8b85f0614..0bdc6adbdc8 100644 --- a/board/atmel/sama5d4ek/sama5d4ek.c +++ b/board/atmel/sama5d4ek/sama5d4ek.c @@ -169,7 +169,7 @@ static void ddr2_conf(struct atmel_mpddrc_config *ddr2) 8 << ATMEL_MPDDRC_TPR2_TXARD_OFFSET); } -void mem_init(void) +void at91_mem_init(void) { struct atmel_mpddrc_config ddr2; const struct atmel_mpddr *mpddr = (struct atmel_mpddr *)ATMEL_BASE_MPDDRC; diff --git a/board/conclusive/kstr-sama5d27/kstr-sama5d27.c b/board/conclusive/kstr-sama5d27/kstr-sama5d27.c index 64282ae9dc7..37750137ad9 100644 --- a/board/conclusive/kstr-sama5d27/kstr-sama5d27.c +++ b/board/conclusive/kstr-sama5d27/kstr-sama5d27.c @@ -182,7 +182,7 @@ static void ddrc_conf(struct atmel_mpddrc_config *ddrc) (8 << ATMEL_MPDDRC_TPR2_TFAW_OFFSET)); } -void mem_init(void) +void at91_mem_init(void) { struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; struct atmel_mpddr *mpddrc = (struct atmel_mpddr *)ATMEL_BASE_MPDDRC; diff --git a/board/gardena/smart-gateway-at91sam/spl.c b/board/gardena/smart-gateway-at91sam/spl.c index fb3ec48f9c5..db9ba881884 100644 --- a/board/gardena/smart-gateway-at91sam/spl.c +++ b/board/gardena/smart-gateway-at91sam/spl.c @@ -110,7 +110,7 @@ static void ddr2_conf(struct atmel_mpddrc_config *ddr2) 2 << ATMEL_MPDDRC_TPR2_TXARD_OFFSET); } -void mem_init(void) +void at91_mem_init(void) { struct at91_matrix *matrix = (struct at91_matrix *)ATMEL_BASE_MATRIX; struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; diff --git a/board/siemens/corvus/board.c b/board/siemens/corvus/board.c index 7d73d1f2b36..cd27fc1cc37 100644 --- a/board/siemens/corvus/board.c +++ b/board/siemens/corvus/board.c @@ -187,7 +187,7 @@ static void ddr2_conf(struct atmel_mpddrc_config *ddr2) 2 << ATMEL_MPDDRC_TPR2_TXARD_OFFSET); } -void mem_init(void) +void at91_mem_init(void) { struct atmel_mpddrc_config ddr2; diff --git a/board/siemens/smartweb/smartweb.c b/board/siemens/smartweb/smartweb.c index 946fbc3f229..e9e4bc348cb 100644 --- a/board/siemens/smartweb/smartweb.c +++ b/board/siemens/smartweb/smartweb.c @@ -238,7 +238,7 @@ void at91_spl_board_init(void) | AT91_SDRAMC_TRP_VAL(2) | AT91_SDRAMC_TRCD_VAL(2) \ | AT91_SDRAMC_TRAS_VAL(5) | AT91_SDRAMC_TXSR_VAL(8)) -void mem_init(void) +void at91_mem_init(void) { struct at91_matrix *ma = (struct at91_matrix *)ATMEL_BASE_MATRIX; struct at91_port *port = (struct at91_port *)ATMEL_BASE_PIOC; diff --git a/board/siemens/taurus/taurus.c b/board/siemens/taurus/taurus.c index bda12a97708..3764ab48ab3 100644 --- a/board/siemens/taurus/taurus.c +++ b/board/siemens/taurus/taurus.c @@ -177,7 +177,7 @@ void sdramc_configure(unsigned int mask) sdramc_initialize(ATMEL_BASE_CS1, &setting); } -void mem_init(void) +void at91_mem_init(void) { unsigned int ram_size = 0; From patchwork Tue Sep 3 08:38:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Forissier X-Patchwork-Id: 824880 Delivered-To: patch@linaro.org Received: by 2002:a5d:48c1:0:b0:367:895a:4699 with SMTP id p1csp2297906wrs; Tue, 3 Sep 2024 01:39:45 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWVVXDaLCgllIPD7NNFmu+Qs0QW0T/saNHAFV+/KbmhLlmNtUJ6SfyJ7Caj+RAiLywZVFZwjQ==@linaro.org X-Google-Smtp-Source: AGHT+IFQYvPfovi8UM8oRlqC6kBexXkqV/so1yftY31i2gkqxsqr6eWgumzL4wEZl5gkP+s+uA0K X-Received: by 2002:a05:6402:210d:b0:5c2:60cd:b814 with SMTP id 4fb4d7f45d1cf-5c260cdb9ecmr3457822a12.12.1725352785194; Tue, 03 Sep 2024 01:39:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725352785; cv=none; d=google.com; s=arc-20240605; b=HJ952Ntu9GkOPqFBRCbW8d53gLHWqCihVlIuLQEh7BU4xZDYFe4IquSXr5ytbp7Sz8 hLjt9PmUN1TA8/VC/DuQd6TWQN/be3Wi6rTTaOmJsFoFNceB6Xqv/ZROvj4xpkEpCF6f EUbEo81+cXOFUBrvbBBV3egM8gpUgRGZv1H0Oduh1897nIqw8CqMqwo+3WArsawWzm44 eiBUzIN7OJv2wQAAe2UsoquqBXNJTdwqXOqczmlSzm8kgHCs+lzb3ICmXfrkeNZU0HxC hait6BYl4qGOZEo3TXVW0FgBluOZhqy5EK1OUlyATuxjaMTabWNsvFwY1B+XngOi+c2w eR6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=eyG3QXG+UUiIibtKovBRnK2Z7clawHN81b2WLACzqvU=; fh=0K4K44fQHqw6k1022Md2ulakJYB69+wgpp45D92YdEc=; b=GG9ZNtinwUiarQI6K+seFCsp2az9aRy7SdMmUhAAMnT9W/DTvWkgtilRtOK0lZP4on YMATKdAmD82jJv6h+hprAHi/xravf4MN/51FlcSK5wqQB3QnVRYEgU0n7Q97Rda7kmSy cUsbcMi2SdJ5u3Qvf1AnVAe3YV/98+bU0KFgU7M6Tj2c5HKqhtxZ/6o2Xj2UywZoWNbj R4PAP3jDnkFXNqWCJ/rhz5xMw5osVyGw4ieVE3N6WNicfNa8xwekArNfp0gvdTAsj71G 6+xr0N/vZZqYDmxYlRnqxn8GFxSe6D1/DGoLpyufQG/IbofuH+5WSEkl049U0P8VBCII oHJQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=A8uBSMEV; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5c253fcfc1csi3526347a12.201.2024.09.03.01.39.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 01:39:45 -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=A8uBSMEV; 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; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BDD3388C87; Tue, 3 Sep 2024 10:38:56 +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="A8uBSMEV"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 89E5588CF2; Tue, 3 Sep 2024 10:38:55 +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, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) (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 9BF0288C30 for ; Tue, 3 Sep 2024 10:38:53 +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=jerome.forissier@linaro.org Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-42c7856ed66so23989195e9.3 for ; Tue, 03 Sep 2024 01:38:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725352733; x=1725957533; 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=eyG3QXG+UUiIibtKovBRnK2Z7clawHN81b2WLACzqvU=; b=A8uBSMEVeT0g8jB0NiaItGBGyvg0YdpEuW+lHvtc0Jm3XMuEwovdDGns0rWCQI+MdU V5zYP3AEoAVusvwNxtITgpGFCravzFflqzo/VIcK36kVNLeYtE++gqEIlLozot364bEh Qu9EXiIMGlynsUdhYH8O2Qx3xZYxOqUNWqlK4CPwfu1n5saVa0R1Y4LDsM0/aUM3UPGn UMQZwmMOull6sGF0kVXEihBdVT6+0e7Kxbe5ItWCWAycru0uUYzd5t1tgYJsojgq/bJN yf/D5sfYVEoDl9jkKUj4WSXVt90SVGedJX5crB4sQnj/nV6wzNFLQTeGy2qS+GvYelOw RlEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725352733; x=1725957533; 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=eyG3QXG+UUiIibtKovBRnK2Z7clawHN81b2WLACzqvU=; b=hmPvAJiC5vhbf7QTSL1H2fD3S+B7F4aKlzuexU8wiJ13ozXKm9SPOzWs1vOnbMSeSK mFR8fRXgVfHAAuZzCXFqUydSLzkm/FMB3YN6dnDt6ofeh55JjpZu0OtbvirWIs/duPeH dwDlkJ7Fofjj+JyQfKfzV/6HHQyIizYAVFY4erAgjNXdbqHsTiq095NSWA2laMR6EL6j nnA4s7qnnAaseiDJ2+83FYh9vsmI+vtHfOIC9LeO3mX0wCEYyIdd7Xytl7Db/FMTG4Uw dG1FG2UyYqYiHsfXbyxxNzBU6YKoGlo+oSnw01IMoSIJ4fShlknjgDY5Oc76rbXQr7wR r8Ig== X-Gm-Message-State: AOJu0YwcKR4zeveUMQJfRpIhwkDJTWGtvAFMWdr/OlvuEj7vWTqPOBHa ejuJ30/w6YsEpon7X63J/YSjQ3TloGo122pnpY2YxD3McvRpICu9Z1saJT62xGv+qRy4bcsRAQj rYw5S7w== X-Received: by 2002:a05:600c:3ba7:b0:425:7c5f:1bac with SMTP id 5b1f17b1804b1-42bb0306f94mr138048555e9.21.1725352732842; Tue, 03 Sep 2024 01:38:52 -0700 (PDT) Received: from builder.. ([2a01:e0a:3cb:7bb0:6417:8cf6:a7f7:ee38]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42bb6df795asm163103325e9.21.2024.09.03.01.38.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 01:38:52 -0700 (PDT) From: Jerome Forissier To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Peter Robinson , Jerome Forissier , Tom Rini Subject: [PATCH v3 05/16] arm: omap2: add missing #include Date: Tue, 3 Sep 2024 10:38:02 +0200 Message-Id: <5c4e108966560a56f1f6e9257d9c4f78059b8a2b.1725351676.git.jerome.forissier@linaro.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: 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 emac.c implements cpu_eth_init() so it needs to pull the corresponding header file. Signed-off-by: Jerome Forissier Reviewed-by: Tom Rini Reviewed-by: Peter Robinson Reviewed-by: Ilias Apalodimas --- arch/arm/mach-omap2/omap3/emac.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-omap2/omap3/emac.c b/arch/arm/mach-omap2/omap3/emac.c index 7348e92cabd..1e30a06361d 100644 --- a/arch/arm/mach-omap2/omap3/emac.c +++ b/arch/arm/mach-omap2/omap3/emac.c @@ -9,6 +9,7 @@ #include #include #include +#include /* * Initializes on-chip ethernet controllers. From patchwork Tue Sep 3 08:38:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Forissier X-Patchwork-Id: 824881 Delivered-To: patch@linaro.org Received: by 2002:a5d:48c1:0:b0:367:895a:4699 with SMTP id p1csp2297960wrs; Tue, 3 Sep 2024 01:39:57 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCW0Y1JBNWvlmtYz47g+AZ59BnZ5o1aQnJ/JoaL3wOSZhMvhprQRhCFgkFkEuf5+gMd1/gkgtQ==@linaro.org X-Google-Smtp-Source: AGHT+IEFRPOFZkWlg/Ve1f2xYQahwc4kXWtIQ6gz+Xeqe3Z37Uepo9FMnXOA7mEP2bVuepVsrrhy X-Received: by 2002:a05:6402:268f:b0:5be:f5b0:fc38 with SMTP id 4fb4d7f45d1cf-5c220136181mr18567413a12.10.1725352797000; Tue, 03 Sep 2024 01:39:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725352796; cv=none; d=google.com; s=arc-20240605; b=JcXezKd5sXT/Kd3oNTX5MQF26+juRWSOM/fOmpTH4knTCQmJmzRym2NOpe6zBL2/AF GNf54y028MQdt9SYj8sDs7z44tuk5Y8CHg0+jCgIFdw3pCb7iSZgjUC8a13si6MFRFqN PvH8OPeFy1ys0pLKiSZ3ze+mxrpn0UcqVmi+d8+mkBUWyCUoSNzbW9sOcItY7VSdQNwF H5QI+0DJ/wGZCtmx0uRgdjpWaiJTdqbeLCnGrK1IaTjUBTBwPhJsnko5iw2qlX5yIk/F Dg7eDBQq9/YBDgeB6urNlct4ykkmYM/bk8vomyAKlSd7ahCsA/Rvt6OPWRo27j2tYJOV GRww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=nMH3K6RMJfnQZ/B/a5WpOMKrLegix2UP4tjC+okn3SY=; fh=EAnZL4IFRrLi/kZZl+bxs1QDWyO5W9ePvI/a8qBrx+4=; b=XNBf+i72OJw5+7uXtXJjWAzrL58GW9dB7clRzaWU5Cb25Zrs3YsoEfXqjTDwN/7Syz 52LucJ4c0AkCNv1n9yR9SxMUd6Xn0WJD8p71DbASYLKxYDX2738hl+vJpxhrEUIYHNKP LYZ4/B9/f7ESaIEVX7hq0uUlzwFAuoxUvAye7m+wQQatec62f+FRI6sTzezJfApXClRM npxbHc0h/XFc8pKjAlowPizdEuiyzfomF+aC2qAuGlwoH4WPg3tov4ZKynh3zj2QJZIt jQnxxFn2a8zb65Z8nyVHZ7Mbk7Ku21FWAUolNWHP3o1zupQ2dDe6K4iH+5dS/BEhhT18 pOuw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QUfQgVb9; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5c2483e9935si4725086a12.580.2024.09.03.01.39.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 01:39:56 -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=QUfQgVb9; 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; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2AC3A88CD2; Tue, 3 Sep 2024 10:38:59 +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="QUfQgVb9"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6710088CEB; Tue, 3 Sep 2024 10:38:57 +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, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) (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 449BA88CF0 for ; Tue, 3 Sep 2024 10:38:55 +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=jerome.forissier@linaro.org Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-374c7d14191so1065373f8f.0 for ; Tue, 03 Sep 2024 01:38:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725352734; x=1725957534; 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=nMH3K6RMJfnQZ/B/a5WpOMKrLegix2UP4tjC+okn3SY=; b=QUfQgVb9NCS7VIOAuNahl5AhyRP8m40t1Omqv2wsB++BGjWZjmxejQdzMaH0pB/ckB 8pJOG2s0himeDom54l2L8SYbRuONjthqyMg48i3W4Pbq4mOW14MnRLggAyG/OZtBhmQ4 dmY4T6tYvz0+9Jhv+wk9sNuGFblX+qkvNPO7BAj/cwirbCy1g0DhL9N8h4pwbp7W/1L9 smvKg9z7nRfBg0DM3/pJgRVd/RJck8gtHyBv275N0i46MY83330dcVU3sFAH8u9bJHIL ros5a5O+3i30qEm6PvLPSZ5Cjr9LlkyOJwAuqEjpZkP56L4ZGIvt2JK7lGQ87m6xvhRT mZZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725352734; x=1725957534; 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=nMH3K6RMJfnQZ/B/a5WpOMKrLegix2UP4tjC+okn3SY=; b=fl6+8k3C4OaKfc/JrpHyVHPFKFxYuuI3tcv6rl578lFXok3xW+F7vbXVPVLRPuNe5s sZjNsBih+QdIejkvi/Jm1dhVwnCF5CVDtcZ0HOpfOqACiYYCGP5kDXN6zWsQtVm8QFdg j8mTc7yavA3Kihrf2kSQe2ZvOF5yYCOpUXwfI3XBQyNkH6vbC/99tOAXa6g0hgDur5nj QR+LVWTw0/de8XDCyVOl9HAr0OBnGfAvVgqbv9pHCMGr6ED0P0EYVb9SAOGu5Vnn908L RUy2PhvgeHg6/ajPMMyLLBVwg/s9zzsazDagRL2fCvXBHxO5SsBg1P21dEKxC2JJ+sEA VwJA== X-Gm-Message-State: AOJu0YzXpQYLftUJEga/Yur3qR9bFnKjoZxoXupCMItDGPV5WriAjInQ qfWszUB22xxeSTDoh/6P1zDVe7rTFucKDcm5khc+ZHMimbYjm9nQELjCjqZrYGnBJjv4Zr8S8AE s9Tj5Hg== X-Received: by 2002:a5d:59a7:0:b0:374:c878:21f7 with SMTP id ffacd0b85a97d-374c87823fcmr4793397f8f.10.1725352733802; Tue, 03 Sep 2024 01:38:53 -0700 (PDT) Received: from builder.. ([2a01:e0a:3cb:7bb0:6417:8cf6:a7f7:ee38]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42bb6df795asm163103325e9.21.2024.09.03.01.38.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 01:38:53 -0700 (PDT) From: Jerome Forissier To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Peter Robinson , Jerome Forissier , Joe Hershberger , Ramon Fried , Tom Rini Subject: [PATCH v3 06/16] net: fm: call dtsec_init_phy() only when it is defined Date: Tue, 3 Sep 2024 10:38:03 +0200 Message-Id: <0313c96cea56acb5585f04bbf4da25145560de3b.1725351676.git.jerome.forissier@linaro.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: 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 dtsec_init_phy() is defined only with MII so add the proper conditional in the caller code. Signed-off-by: Jerome Forissier Reviewed-by: Peter Robinson --- drivers/net/fm/eth.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/net/fm/eth.c b/drivers/net/fm/eth.c index 19f3f0fef07..22025b6a273 100644 --- a/drivers/net/fm/eth.c +++ b/drivers/net/fm/eth.c @@ -26,7 +26,8 @@ #include "fm.h" -#if defined(CONFIG_MII) || defined(CONFIG_CMD_MII) && !defined(BITBANGMII) +#if ((defined(CONFIG_MII) || defined(CONFIG_CMD_MII)) && \ + !defined(CONFIG_BITBANGMII)) #define TBIANA_SETTINGS (TBIANA_ASYMMETRIC_PAUSE | TBIANA_SYMMETRIC_PAUSE | \ TBIANA_FULL_DUPLEX) @@ -701,8 +702,11 @@ static int init_phy(struct fm_eth *fm_eth) supported |= SUPPORTED_2500baseX_Full; #endif - if (fm_eth->type == FM_ETH_1G_E) - dtsec_init_phy(fm_eth); + if ((IS_ENABLED(CONFIG_MII) || IS_ENABLED(CONFIG_CMD_MII)) && + !IS_ENABLED(CONFIG_BITBANGMII)) { + if (fm_eth->type == FM_ETH_1G_E) + dtsec_init_phy(fm_eth); + } #ifdef CONFIG_PHYLIB #ifdef CONFIG_DM_MDIO From patchwork Tue Sep 3 08:38:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Forissier X-Patchwork-Id: 824882 Delivered-To: patch@linaro.org Received: by 2002:a5d:48c1:0:b0:367:895a:4699 with SMTP id p1csp2298014wrs; Tue, 3 Sep 2024 01:40:09 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUmCgdVeREtROtoxeFAYgI+OV9x+CsLmiCzKcwEQyt+di7xK7Y/bt+BOI0Iomu3tMSDhOBdGg==@linaro.org X-Google-Smtp-Source: AGHT+IFeDQtM1fXwM1JB6z6emhZo6z8vUfEELxn4mxypR6uZvQsXKk+rLfvhXQSrb2ppm68FQPp6 X-Received: by 2002:a17:906:dc95:b0:a7a:bece:6223 with SMTP id a640c23a62f3a-a89a3503807mr846550866b.6.1725352809041; Tue, 03 Sep 2024 01:40:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725352809; cv=none; d=google.com; s=arc-20240605; b=hdBzXyNS8m48ofm7VLYk/C8Lj9LzY8HJkO8k7dNGW9+1bLQB1fExaIzPckMz7hf5ll l04kbUzmMmDsHn5Wh6c0W/z0kyWZkXFEOEkbbMX+U3ubSf82T/p4gv1cGN+FZVst4Nq/ WnAZKxXricxirhXZpuheIXaa337fk2aKeTvwhitfzn2Atbk5OWlL3SQDxLj7xEZTU9DC eIClvSLyfDfCE3SnLeGD9/saI87pLZ8piAjp1ZaiF0y18zEcTnR8196zyIaTLU51uN4v 57mJzXWn5CLZEMH8yDj+Nt4FNcoWJJ28y5P8fqwM7LzUj4kfF/uaHtKvqx1FbSZE8Cly XD8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=HQRratDTux43Q2ePlyrz4FZtTR8e+cQ86jEMfNCxWhs=; fh=+JYMqiJxo5d/c9+inGUQ11Ab2OxQtZbRGs0mg5+KzD0=; b=fTAWcOvAL31qJ5PWpnCJNFw6zxEdIM2d4KEFgVm/TCRL95BjuYks6oDE7KoF6AXQF9 TaXhAuNARewuk739x+Sn9/iNggz6afEg8houzfaEs2srnJBiFliLVKlA/h9I1Oq6aycr bkoMisEiFyK2/h83t00Rl+MJCPL3xgQUGo3wgRN8qboOyK8kK0dLxt48RLA0czZ/MRe0 yykKRpLRrPmRlNVWFcSC8zznfB0SLRY1aJ1E5KxaxyaaNdv7aWzLc9PNhbiorM8KVnnf 5ARhCVELebYCDqZEX1Jo2ovnghplGp3tGOOH9S91+dRumsp0/YZ9dNb0KyAApIkx7QJq 5Klg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ylRWDEDU; 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; dara=neutral header.i=@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 a640c23a62f3a-a89891307d5si850785366b.432.2024.09.03.01.40.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 01:40:09 -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=ylRWDEDU; 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; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8718088CFB; Tue, 3 Sep 2024 10:39:00 +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="ylRWDEDU"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9EDD888C30; Tue, 3 Sep 2024 10:38:58 +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, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) (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 71FB988CF3 for ; Tue, 3 Sep 2024 10:38:56 +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=jerome.forissier@linaro.org Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-42c2e50ec13so25658025e9.0 for ; Tue, 03 Sep 2024 01:38:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725352735; x=1725957535; 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=HQRratDTux43Q2ePlyrz4FZtTR8e+cQ86jEMfNCxWhs=; b=ylRWDEDU/D5tMcUHyyXuyncyJ7Z2ZSBmyo2EduQyBGuaZOweKTj3pTtPuHQ4I40WPk 56wnJzL9sdfIann44Aa41Om60+Ld+Df552vzZ6DALQCZhplsUXZoBDxfJAw2oDmR9Dda 3mGd2rZc0J6DqjGckKKZDxXwxaYaXG0W61jhbbtNXwxnWldPBN2tIgujVP2J3yIL7p0A ajRdwaBiMEKXzPJKeyYGz7sZUPoWKa0FvurUgdND2psKP+lZTAIYlDAYIhlKXQMUUV4k zuELaxZ3jCYC8Io4vbrFd8voJreC5QmYIoFYmCOeGvGeBOFnrwe7E9ukcV855kcidtHs zBdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725352735; x=1725957535; 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=HQRratDTux43Q2ePlyrz4FZtTR8e+cQ86jEMfNCxWhs=; b=HI1e22Ktk1ricMAdDPLcyfzVR28ooXdXHBkGyXHycNpSqNQgCiPw5awnCeCm9eB8Rw AvgYny5et0NC/3k/JWWOdCfAY+8S9LhzS34msr2i4v47m+aPKprh4cJMAVhewzaOo2/4 r1J1RZvaN3sAznzbTGT2jlmTvgHqIxokT2akAFYpsoeRGIhlg8NQYbzc6JIEhXJmhlff xIPNaByKeZGLYQvVogWwr5pLWzk0r1ggQNxjMWjUSDMLcSuV4/acmX71FXTOdiWo/u4R 587kMV5FHYGLY/YAUa4jQwCr1iDJPplLA4cJn/uOhcIqo0o7GwNR8CJEAz6d4ikIBJtG 695Q== X-Gm-Message-State: AOJu0YxX+fPOiaaX7I66r6BzQNkqM60aAUqvTYVP2D8AyEFs3kfvKEq3 KlRMP/TznQQKO9KnLq7fp53UxPK6y2vM3keOLSBtZh+aNaAfbXiMJRWjqDHNQq+rlLdta9ec/3k aE3oEbA== X-Received: by 2002:a05:600c:511c:b0:426:5b29:b5c8 with SMTP id 5b1f17b1804b1-42bbb436e23mr93243215e9.28.1725352735307; Tue, 03 Sep 2024 01:38:55 -0700 (PDT) Received: from builder.. ([2a01:e0a:3cb:7bb0:6417:8cf6:a7f7:ee38]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42bb6df795asm163103325e9.21.2024.09.03.01.38.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 01:38:54 -0700 (PDT) From: Jerome Forissier To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Peter Robinson , Jerome Forissier , Joe Hershberger , Ramon Fried , Tom Rini , Simon Glass , Masahisa Kojima , Yasuharu Shibata , Marek Vasut Subject: [PATCH v3 07/16] net: wget: removed unused function wget_success() Date: Tue, 3 Sep 2024 10:38:04 +0200 Message-Id: <11aad5fc807a2b544fe364e233c9a0613d18974f.1725351676.git.jerome.forissier@linaro.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: 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 wget_success() is used nowhere so remove it. Signed-off-by: Jerome Forissier Reviewed-by: Ilias Apalodimas Reviewed-by: Peter Robinson --- net/wget.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/net/wget.c b/net/wget.c index f1dd7abeff6..0e4dc5159d0 100644 --- a/net/wget.c +++ b/net/wget.c @@ -199,13 +199,6 @@ void wget_fail(char *error_message, unsigned int tcp_seq_num, wget_send(action, tcp_seq_num, tcp_ack_num, 0); } -void wget_success(u8 action, unsigned int tcp_seq_num, - unsigned int tcp_ack_num, int len, int packets) -{ - printf("Packets received %d, Transfer Successful\n", packets); - wget_send(action, tcp_seq_num, tcp_ack_num, len); -} - /* * Interfaces of U-BOOT */ From patchwork Tue Sep 3 08:38:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Forissier X-Patchwork-Id: 824883 Delivered-To: patch@linaro.org Received: by 2002:a5d:48c1:0:b0:367:895a:4699 with SMTP id p1csp2298070wrs; Tue, 3 Sep 2024 01:40:19 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWlyjZpjWhpE0gm83dJYPYcatgYWVMS74ssZH4rlhrLIZWqlg/hdT/gJ9otzJqD6qznTqQdyA==@linaro.org X-Google-Smtp-Source: AGHT+IGH+6WokWnrtt7T+hUY314Xh06jShmAT6pwePd7C+8elHsScrXR43mQAEBHH5raGbpA101V X-Received: by 2002:a2e:be13:0:b0:2f3:e7cb:ee37 with SMTP id 38308e7fff4ca-2f61e02576fmr99473331fa.8.1725352819717; Tue, 03 Sep 2024 01:40:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725352819; cv=none; d=google.com; s=arc-20240605; b=hJUAGfnBknegUY4FlR7jlSirfnNg/Q6uWqf4gld9WUG2CPU0NoAgNHa2o+1sQvKi8+ MxgaOYkWKHqIKsLtCSi1v59FYJBKqgYsnnCDc9Zx5HaZmH0SknhvIDlCuFeZ6I+1kv8p dmA0PH11bWqJpbkPvrN02siaak6LJBq6QeaBKbzSlAe2FsUQ9Ywc+eRbAxauQNW04/Bz rIv6bxPy64aB79DKHnYUq/FafKgfZvK1Dndav2KEiSeX3KIe8JpxwHmNMeCY/cm14hgP q9SixTiWf5ZiRveORjpHgxdmKu9vKSW+OqK79g3PJKArvYOo6WYHZAMyaaX4pxhPd69p 9kxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=8i3lBROvhfrY82vIccP41xA0yhZbBOfEI92vYpX/wGs=; fh=wqlC5ZCksxtIKhW3Qt4fOjT33qsCBGebXnH5MgM1b78=; b=NDozdLt/I+qxdZbsttEQ3CBx6wMjzlaeh5OKIFT05SEA+pjXMrf7HUH3i69OW3Dd0H +FAImkW9Rs1J4HWMJXi252IdfTtoBkvNWb32er15dMammyyF0LOWW4JEL0Z0neA1nB+G NHNHhtEg9bURHmOvXsFBzycwaMItyFER93xL75xNF7MzyAJ9+NxVaOmpM48KpqAiR7a3 MY/XlWMSnSxEpmPxVAyXPT6ZgeVy95C5YV1F6OfwhyNfIqJAdtpp5BgHjA76Byy+PrWY jL8EBcNZpP0lh4/ziMoqoSS3iTHvAlQ653BmwxqQnoi6lgmkEYJJtDu4cCNy2zZ5Ls50 qyXg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Mnzhrdo8; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5c226d0659esi8156856a12.389.2024.09.03.01.40.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 01:40:19 -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=Mnzhrdo8; 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; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 324DA88CAF; Tue, 3 Sep 2024 10:39:01 +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="Mnzhrdo8"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3A54888CEF; Tue, 3 Sep 2024 10:38:59 +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, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) (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 59FE088CFA for ; Tue, 3 Sep 2024 10:38:57 +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=jerome.forissier@linaro.org Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-428e0d18666so42872155e9.3 for ; Tue, 03 Sep 2024 01:38:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725352736; x=1725957536; 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=8i3lBROvhfrY82vIccP41xA0yhZbBOfEI92vYpX/wGs=; b=Mnzhrdo8CGT/KX99r609s9u6f7tIey1r17JO5FSQE+hzjr9bX0EfgCYfWU/1I+1NGk 354k72FhQ+PHIGVf7Yy69MqSTd7LK9aMFhiu4qVjRCua/BNL/JHOp3+rGPWKuBOl8ytb NehThA00SuU69hztltkPb+2skiOuzKCWwP4SxGEHbBQ25kalsGAGV/+XUhbm96xmPxMZ c7Fl9Iel5xEO1keZUyXQhT6xJJhe9kg2OeyfGJ4sZLwitXpbcGmQiALnDSA6AxKaNgyN qwKZrBSGkBnt4qmWyNMKdQZSuFePKEK24BJ+TqtpM3rWmRM8Yl+xKmCylszToJ/NTUcz 4kAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725352736; x=1725957536; 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=8i3lBROvhfrY82vIccP41xA0yhZbBOfEI92vYpX/wGs=; b=g/GS/of/iry4FQUqzJQwQPbOW6RqQABA7eLf3pFCxLkQsGd3Z8wjTiv2Lz687jlJ9K t9dN+jceLZjZ2WAD+BiR+NzceAw+7MRApXkdSTX/p8O6LUl5EGD9o7b4DtwbvkADLjiv O2vGER9ttgIhxEJ2dlQJ5zdWIqJX6GCWRHecQoUzL8VBp/KE8hOfgtMl1t8nXyJRiues 1W5Flx5xs+V8CqyYzmMnoanF0tJoE1zNvfblYsDvnuSiMsUGIck86vaEB/pzETPsRd2B ccpZmLcWRn4UzsHkXN7qVs3Dovvd9Wa0dqPfN/Vqbcf087J62CTbTCnDbyO6Xd2z5Mub RW4Q== X-Gm-Message-State: AOJu0Yx8vg5Lxj6bZLReB9QiSC6iX0xmNuZpFKevueF8UpKhswTCNYZS VAQlpbCzZdqtgZDiLZSUpPlZwFT6AOqrBXdbmbmFl4DkSxifaXswdBeVsbPMrg5udG51Tbq6mHN x8RQMmA== X-Received: by 2002:a05:600c:4707:b0:428:f41:d467 with SMTP id 5b1f17b1804b1-42bbb205ad3mr74959235e9.10.1725352736532; Tue, 03 Sep 2024 01:38:56 -0700 (PDT) Received: from builder.. ([2a01:e0a:3cb:7bb0:6417:8cf6:a7f7:ee38]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42bb6df795asm163103325e9.21.2024.09.03.01.38.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 01:38:55 -0700 (PDT) From: Jerome Forissier To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Peter Robinson , Jerome Forissier , Joe Hershberger , Ramon Fried , Tom Rini , Nicolas Frattaroli , Marek Vasut Subject: [PATCH v3 08/16] net: phy: ncsi: depend on NET Date: Tue, 3 Sep 2024 10:38:05 +0200 Message-Id: <7f3f18e266b64e4dc5ae77e4e342193fb58d31df.1725351676.git.jerome.forissier@linaro.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: 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 PHY_NCSI enables drivers/net/phy/ncsi.c which calls net_loop() and net_set_timeout_handler(). That's the legacy NET stack (as opposed to NET_LWIP). Therefore add the dependency to Kconfig. Signed-off-by: Jerome Forissier Reviewed-by: Peter Robinson Reviewed-by: Ilias Apalodimas --- drivers/net/phy/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/phy/Kconfig b/drivers/net/phy/Kconfig index 73064b2af68..a9efc509814 100644 --- a/drivers/net/phy/Kconfig +++ b/drivers/net/phy/Kconfig @@ -368,6 +368,7 @@ config PHY_FIXED config PHY_NCSI bool "NC-SI based PHY" + depends on NET endif #PHYLIB From patchwork Tue Sep 3 08:38:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Forissier X-Patchwork-Id: 824884 Delivered-To: patch@linaro.org Received: by 2002:a5d:48c1:0:b0:367:895a:4699 with SMTP id p1csp2298142wrs; Tue, 3 Sep 2024 01:40:30 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXXLTiS5hkZGyXM8oluMj8GCIGRM/vk5p28DBBHNXwYX9wIuw36JcA9AAwYxIg08RJDITI4yg==@linaro.org X-Google-Smtp-Source: AGHT+IFx+jfQnba+Ay2nsnwdyDgvVqF07pYLKODL/D0JXzSGdouDLvcug4FGs3nDO8EQzGSkHFA4 X-Received: by 2002:a17:906:db07:b0:a86:ae95:eba3 with SMTP id a640c23a62f3a-a89a3823702mr978493166b.62.1725352830388; Tue, 03 Sep 2024 01:40:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725352830; cv=none; d=google.com; s=arc-20240605; b=T2a1pB+6MouRpQC4072NKfLjzG854hnpqxyhzwqasRjp2CNgJlaVaKIk73mcSpVYKa juezdoxkuTE3hDFM7UIRhuuqXdPRL0YAWZ7hAv/ajzc2T9uuvl4hd2s18mnFKNMxIo9J /+hfOuTTOMo+BUhz4DRH4e5TKHcMJ/sM/Is6VQjRuHwO0bkBUcuf6itkq3vPI4R85UT3 x0AECQB8O6TnkUVCJRg5BO6/NjoWxNz4VLW75SCQonXVFoKRR6hsOH+lvLBga2dp7U2+ M9NHtXXaG2+TDv8kg8s1dcHv0ynRRbPtsiMsTpS/HFfY0QIhrjv6EW+a20ULEnz5pwul qWDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=9Y5IVVMRA6huUAqoPdum8k+WQjyk5hjB1KqdHDqrcgI=; fh=N0TLk50SToLEqvzSSN3uysD9HHs9HSkWG9BvzL1ioNc=; b=WUCRdMh0w6Z4Yveicd4n9AobGe6+TAGeLyvmiyAfA+S1H9kGs2QC6rabUFIXMsJ+dD zDItob8uJE6gwzOMYUGVOPwqxyq7j3DQm1YdInqr7MRnE2FzX0pisauNVywZiCBWto+T STbGyp5+Vm6FcjtnOpahStD+xjBrz1r6YWs/4RMMVo4xKID1TpcLc+jtn0hMOp45ffkc J838JwVI5n80mq/oSgtQketIQJv+dMNfikDesL3sI/ydoH0MFQ1bTWxtBp+Mv9qMu3dN iAeKrQ1PgAoBFCfph1+80rDGU9tNcgiGGzaCNQ0eVbZfEMUunT34Oi4u7C8DUslIkMvq oU+Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SU8eWLyx; 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; dara=neutral header.i=@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 a640c23a62f3a-a8988f40b7esi857033166b.72.2024.09.03.01.40.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 01:40:30 -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=SU8eWLyx; 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; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 48FDF88D06; Tue, 3 Sep 2024 10:39:02 +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="SU8eWLyx"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2439888CFB; Tue, 3 Sep 2024 10:39:00 +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, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) (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 3F8C288CEB for ; Tue, 3 Sep 2024 10:38:58 +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=jerome.forissier@linaro.org Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-42bbbff40bbso33100155e9.2 for ; Tue, 03 Sep 2024 01:38:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725352737; x=1725957537; 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=9Y5IVVMRA6huUAqoPdum8k+WQjyk5hjB1KqdHDqrcgI=; b=SU8eWLyxJ2vJrWl6isECH3Fr0p8WnrfTXuvN/U5OC7++zPFz72KEqHELyzl59xQ0tM ZNYOZAugNld/d5u2I6F/+8kzCtev/JAOzVF+Olbn+V7XSAAPTvGMFRl2ZbredNYUY0Qp z2UGQ9/Plqjk2zkHkHZr6KUfsioJCTZb+I3ASLMklK6nGKKEAdogy0PHG3/RHQFprZXX p+diwCmKy85w8YM4hZycrsVoQSQwwEcI6raOJUndj0Gzaxi55THmpH4ulLO5PwjOAKse 6B2uDhQjB/LTnQ/DjQz4dNKyK8aEA1EgNknCHYJSMDhMw2FPtu1VxZqKpgJeHs9UlQJ0 TO9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725352737; x=1725957537; 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=9Y5IVVMRA6huUAqoPdum8k+WQjyk5hjB1KqdHDqrcgI=; b=lhqZQkqzgFmkJvsVPq4Ll8WdpLUe9Y5Bmanac6JGLiYFBABX8SWEGdoXT8/DQusdCg n01AO3g6GT4trrnWdSwFckah6Lef95kn/1rdFIFvf1LwYTF2mTmenJjykBXCHgadfcGq c6lqVx2GjZlsSK5vdthEieBvspuEmmc5Ddf8YdnUVhDkCxwHg/qZ4+tGG8jL6cSf23Tf whOuPj2r7Vm/SuCJkYB2/ochLEotgq2LVOgqrq/vZRBEPROA/ahnLfBGpVgU5XV0Vn7Z zicad9YOYeW29aiz6Ary/HQWQ9S+vMWDHM8Kr7abWQGvu9GIi/nTmahRA108nZkJ1saL 1lNA== X-Gm-Message-State: AOJu0Yw5gBVEDwxbE0V3lqEau5H50SOB/k/bAsfQ/yaqjWM23x3uPRDQ y0rfJ8GZYUYNa9wyevD/K+tjYNbSEFkPqdStJi+82OeYZOwDm6+lQ8dtqbxVJm/yo9JNLPptz1J ujv3w/2a/ X-Received: by 2002:a05:600c:1ca0:b0:424:a2be:c161 with SMTP id 5b1f17b1804b1-42bbb216f26mr100644745e9.20.1725352737525; Tue, 03 Sep 2024 01:38:57 -0700 (PDT) Received: from builder.. ([2a01:e0a:3cb:7bb0:6417:8cf6:a7f7:ee38]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42bb6df795asm163103325e9.21.2024.09.03.01.38.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 01:38:57 -0700 (PDT) From: Jerome Forissier To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Peter Robinson , Jerome Forissier , Simon Glass , Joe Hershberger , Ramon Fried , Tom Rini , Yang Xiwen , Boon Khai Ng , Neil Armstrong , Kever Yang , Robert Marko , Jonas Karlman Subject: [PATCH v3 09/16] net: ftgmac100: depend on NET Date: Tue, 3 Sep 2024 10:38:06 +0200 Message-Id: <0846c275880af61c3bf4341ca979ed8cba509cfb.1725351676.git.jerome.forissier@linaro.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: 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 FTGMAC100 enables drivers/net/ftgmac100.c which uses PHY_INTERFACE_MODE_NCSI, which is defined only when PHY_NCSI is enabled. Therefore FTGMAC100 depends on PHY_NCSI. However adding such a dependency causes a "recursive dependency detected!" message, so add a dependency on NET instead (PHY_NCSI depends on NET). All in all, either the stack is NET and FTGMAC100 can be enabled, or it is NET_LWIP (or NO_NET) and it cannot. Signed-off-by: Jerome Forissier Reviewed-by: Peter Robinson Reviewed-by: Simon Glass --- drivers/net/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index 69ae7c07508..3382e533f42 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig @@ -461,6 +461,7 @@ config FTMAC100 config FTGMAC100 bool "Ftgmac100 Ethernet Support" select PHYLIB + depends on NET help This driver supports the Faraday's FTGMAC100 Gigabit SoC Ethernet controller that can be found on Aspeed SoCs (which From patchwork Tue Sep 3 08:38:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Forissier X-Patchwork-Id: 824885 Delivered-To: patch@linaro.org Received: by 2002:a5d:48c1:0:b0:367:895a:4699 with SMTP id p1csp2298201wrs; Tue, 3 Sep 2024 01:40:41 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCX6JBEEVrVQw2AsBQK4/7zFCjmpnKRaMlcG8X25J5MpcXLotCRNydp/SNCZRa+Zex4llmxPgw==@linaro.org X-Google-Smtp-Source: AGHT+IFBJpL2vGzRcpM93/OnD1XfA33zoc4IrilUGY+Ip4bkOdFL9ek9jCk0I0VARDC5jQcka0a3 X-Received: by 2002:a05:6402:2553:b0:5c2:6311:8445 with SMTP id 4fb4d7f45d1cf-5c26311848dmr2685401a12.2.1725352841203; Tue, 03 Sep 2024 01:40:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725352841; cv=none; d=google.com; s=arc-20240605; b=CoADR25o1PNz8mh0ll/LvM5XfyLouP3vb22M8FGJY/cPeFKkdE7jmyBzR9sB2emMlT 1pG3TmonNLb84X9PL5lIxi+CH2H9ylDsCwvLQDL4mNorpDi3kfk02lFH6s+uZEKGkhFZ 1v+wLCa3HAraJfxedZxatNolFjJgdv/MmWfMfyA5KjfrRG1cuBzTzTNIYrJCJ7b7esnq OIa90n7DvmWDla7Hp64OvgDYGczl7KDb12dhBsL8go0eKbtwYxY8kYMMjuMwkoe8xGm1 +6vZmxkmMOZu0g+jWXriQrYpcPxDYkUEMzJBYqH+c4sEzF/Gs+51SyWjj/qkpVGDdysv 1rTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=6Wa9HCrcfm7o0TjMrTTYfl4sO3SyOJxPMCBHWO3MOxY=; fh=Az6J42kLnxd0BLR2SdmitwXmHRhuMCF02fzaYQ0pg6k=; b=PVWFKdPQgVm/o+znn4FjR9/AY1ohEXZgkIoT2W10L5ov79Bs5xNL2pzDEVmPrAAZuz y9zTVbriJkKGF/XhRppTGV1j4E1BTk6Pp3hPmFOCx/CJ2ukG07RWbSF33AyemDGesWoO uHNkBre5ycsQ3lJAbHAJCO0ZsQBWmXzTXL/a1uJrkYPRx1fDOsQT3H+Cmv56bUC2dlJ7 Ce+trO0nMf9giJoOEdyQZAx+nhhPpHn2JDzrZPL/cltREmRP1/L3y7b2sYjYEHloJj+o opWC3OYwj5Cz+wotAw5ILcdaj9FNF/dn7KqWoRTDoOKkh2Xridodiw3yRT3kU3K67IqJ LDJQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ym9VxEoP; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5c2508fc705si3868794a12.690.2024.09.03.01.40.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 01:40:41 -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=Ym9VxEoP; 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; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AB70888D0F; Tue, 3 Sep 2024 10:39:02 +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="Ym9VxEoP"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 28DD388C55; Tue, 3 Sep 2024 10:39:01 +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, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) (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 34EAF88CED for ; Tue, 3 Sep 2024 10:38:59 +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=jerome.forissier@linaro.org Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-42c5347b2f7so26760895e9.0 for ; Tue, 03 Sep 2024 01:38:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725352738; x=1725957538; 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=6Wa9HCrcfm7o0TjMrTTYfl4sO3SyOJxPMCBHWO3MOxY=; b=Ym9VxEoPpF1AZeJkrv6U3oPiFBMbog2BCZXo2QRhBlj3a+i8CDRC2vAzMw96u/+R50 m2CK3gF8FU6zOqIGSOR1S8YuNKV9ky0bHVt8mxFZhcv+szCziPGf/eth4IzRLJLN8pbr 7s6GQSx+x+Qs35rada/hNOWbfaSULYmh0LSWaE8dO6YGoba9hN9l/yABjVaxcRr8UShy Oli0hlrsYYmGVYG2vtf0HEdZweqbih9mmrxL7F5/B+02xZ+iCGmJla9ucHtPE+q69/7S 5tQKG1UxUz1toSdtujNS/KkVTBFeGHuQFNTtQnCdS2pEruldWU2wB6pnuK8H5SCwQUyV +GVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725352738; x=1725957538; 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=6Wa9HCrcfm7o0TjMrTTYfl4sO3SyOJxPMCBHWO3MOxY=; b=qbuEqmYeg+bEqrqLGcPFAAwIFmcC/rsQDtjna4uydmzM4/SnyVbznXlC3KGu4yahZo CLQt1ofHyJ/Kw317gaXgTYEk7HY2HaHi4hXQcHIVeh/qvXb06Wh5K4H4if5xEC6VIDdN sR5a3ooHSG4L0HaqLTQjPILotNhpx43VgcfoGmiBPd4qG9FSBuvUG6Elb4LHMSqFzKp8 12WJpbeORJ8ca2Xjq8OcBqPyaz67emVDWBHPAV2HBg6ZclgXF8SSN2G2qN1RU77Hm9Y5 9lYkhWEWG7/rV57R0RXTLlqLATFatF3xxBptMjtaRm+ghLY+xgibFNagCTVO3LvntnbW Wy0Q== X-Gm-Message-State: AOJu0YzAfYatYJj7Dh/iUJu5KPMzUFI9uGpdRfL2ccvKqI5Jmk3JpmZE cAmpnqBEM6geYCdXrm1DGTOYH3vnMta7q7lZ39ODrFLzBdM5cCOieG6JnmIorYjQr11YfhWlXd+ r9o6PUg== X-Received: by 2002:adf:f34b:0:b0:374:ca16:e09b with SMTP id ffacd0b85a97d-374ca16e226mr4047661f8f.9.1725352738349; Tue, 03 Sep 2024 01:38:58 -0700 (PDT) Received: from builder.. ([2a01:e0a:3cb:7bb0:6417:8cf6:a7f7:ee38]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42bb6df795asm163103325e9.21.2024.09.03.01.38.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 01:38:58 -0700 (PDT) From: Jerome Forissier To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Peter Robinson , Jerome Forissier , Simon Glass , Joe Hershberger , Ramon Fried , Tom Rini , Masahisa Kojima , Yasuharu Shibata , Marek Vasut Subject: [PATCH v3 10/16] net: wget: allow EFI boot Date: Tue, 3 Sep 2024 10:38:07 +0200 Message-Id: <31d36ea06f9d8cbcf125aa65f080461ee14ceaf6.1725351676.git.jerome.forissier@linaro.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: 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 wget followed by bootefi currently fails as follows: U-Boot> wget 200000 192.168.0.30:helloworld.efi Waiting for Ethernet connection... done. HTTP/1.0 200 OK Packets received 13, Transfer Successful Bytes transferred = 12720 (31b0 hex) U-Boot> bootefi 200000 No UEFI binary known at 200000 U-Boot> Fix the problem by adding the missing efi_set_bootdev() call. Signed-off-by: Jerome Forissier Reviewed-by: Peter Robinson Reviewed-by: Ilias Apalodimas Reviewed-by: Simon Glass --- net/wget.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/net/wget.c b/net/wget.c index 0e4dc5159d0..cf7681a4e79 100644 --- a/net/wget.c +++ b/net/wget.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include @@ -429,6 +430,9 @@ static void wget_handler(uchar *pkt, u16 dport, case WGET_TRANSFERRED: printf("Packets received %d, Transfer Successful\n", packets); net_set_state(wget_loop_state); + efi_set_bootdev("Net", "", image_url, + map_sysmem(image_load_addr, 0), + net_boot_file_size); break; } } From patchwork Tue Sep 3 08:38:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Forissier X-Patchwork-Id: 824886 Delivered-To: patch@linaro.org Received: by 2002:a5d:48c1:0:b0:367:895a:4699 with SMTP id p1csp2298245wrs; Tue, 3 Sep 2024 01:40:52 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCX21GJPQdNToISsMdxHmk4E8tevLkjgc8yyBqO8eJgP+6eONaGJtSHCHNHS9wlwWHwI96eJNg==@linaro.org X-Google-Smtp-Source: AGHT+IGOiuidg93zwPxnwRPRPT1AvbEpyL39I1yph4r4vr47V08jDzUzBj11nCUh4/x1MC0vd5hr X-Received: by 2002:a17:907:3d92:b0:a83:94bd:d913 with SMTP id a640c23a62f3a-a8a1d29ba02mr202725566b.10.1725352852151; Tue, 03 Sep 2024 01:40:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725352852; cv=none; d=google.com; s=arc-20240605; b=UHDeSecQgRtMoNOHkiLGbxqySmaAD8XO4TGp8TUi+4HG1B3Qx/ht8qcMYEAFtaqaQo 08AkFE3dcDdimvaL4dlzLeGydFTEeFOH3lExnT7yB+99GEcNbwEfPSzjRTS8FVHoXYjy CLdxed5aDiswTsWekvQgau6qPc7CsYlMLQqp8UCVeGjsn5kNumsqg6SzlldQ/SJyqrpo kTNW3T2LNilxXKvPGkkhxNFrN4WG6QT0IdVTFGFGWk0TG5DKu1bg9crhHO4HIN5qwSbD 6cXWm0hUp9IWjvrZUPr17zsqhMpeLZWTiewMzGZzk4V0PraLstOlwhpm1jaW4qqn5JLI H3Aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=tCjcDCoXb5oyRDUvYeiyUQT0buhWu2O71HdCxslK+58=; fh=Eod2Vgq+6u20NMj8si0qj6e3EN9Vp1hMYkzBmyX0NSA=; b=FYMk7YrPiPevjaQgFyYOlxeeMuEBz/Ghs/9YYm4UwQLg+Dlqr4wa28S/s42jH12ziD 7dcel8nfeELfp0+07BjKJ2SYlIJofXz3x4B21PnmnJas++usu9kpvptNcKufq0A7h7Rz 2jJUCVZmW/wwO5iqa3PDD90RbrDGjPWjz2EfrOYPL8JxUR9zu7h5BZego3hP6eaIcpiT K64N7jJOEPlGHEqK44pMYY8nAGWft8lxjfAfLo+Z/PpRW5TqL4uEJZtwAk/IVw1T+Cqa WUD0nFPS1IY2RyUS3FPoX1obBf5zkjzKasfxDFFZPEq/YL7+E93VOU0Lp/4VXzMzCcO8 geJg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UnnFo9Np; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id a640c23a62f3a-a898916b7f7si878332166b.559.2024.09.03.01.40.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 01:40:52 -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=UnnFo9Np; 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; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B879C88D16; Tue, 3 Sep 2024 10:39:03 +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="UnnFo9Np"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 014E588CED; Tue, 3 Sep 2024 10:39:02 +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, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) (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 1239788CFA for ; Tue, 3 Sep 2024 10:39:00 +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=jerome.forissier@linaro.org Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-375e5c12042so333894f8f.3 for ; Tue, 03 Sep 2024 01:39:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725352739; x=1725957539; 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=tCjcDCoXb5oyRDUvYeiyUQT0buhWu2O71HdCxslK+58=; b=UnnFo9NpulXO6SUPPzXJ9mFx4U8RW2tXvVfdV0dm4fweUVy3Hqw917Vud1rx/wPOdf lCYKQ937DFnv82nM0wseGmxx+by8m8JRVVHRH8pXICT2lBaf18szF2/qmaN8SX0D+If0 OFG5yVrlCAJQHoXJ0i+rHYa6bk+dJ6b3nj8s5OQ+kY1eqPR+95pnsk4UNlI/9Yil+giv npjEcGNbVNUE1IoLe5GINT6JKlLTfgRrKji+RNvhOTigzRgXyd5EuVNSkSkSM4yX881f uWtYj65C/VhgVLfh5+3Sj39pwvsygiKxxa0RFirJzYOJ2OyEJFlonyJBxEfRkeIBa3gP AI9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725352739; x=1725957539; 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=tCjcDCoXb5oyRDUvYeiyUQT0buhWu2O71HdCxslK+58=; b=sFPDQLvcUja0cLa25nB+aUnlRGmvUl0IMwsgqcGAbGV+g2IgpAoF14h1IX1W1Mu5d9 waRzLG190Sfqmm2Bb7JnVL/nW/EjvZqS5yj/cOZjFy0bs94M11hZT/oU/ba9Dk6R7EVG zwzqwhN5skBeTK6KTDm2SLnxaPrGliwHP+tA4ITE1ljxe1l8y4ViePIVfL5RpzpRY/tG /6m/D/GwiqoSTIUhUYvAtBdIncpkkFA0K8BPsEUokbWrOY4W/oFgMF8CerLEhAewZ4WO bsDDzOIcjQPuvezeALSSi0jAqwHQsQ35JbdX29k4y04DLoR+vBN6uRYhpqxmj0WWP0RC CKMQ== X-Gm-Message-State: AOJu0YyVQ/mB45AZZbpoDZjjvdXjvrwzfQML5G4lNquulzPWj0E6cEPg QQetHPrldP60tmumFKZ/ylZZclJAdMwLpgvtMS0Ac7qaNkeo0lnC1s21Lu0BasPDVqQgxn60zAe 58EzxHA== X-Received: by 2002:a05:6000:1564:b0:366:ee9b:847 with SMTP id ffacd0b85a97d-374ecc8f13cmr2058695f8f.14.1725352739257; Tue, 03 Sep 2024 01:38:59 -0700 (PDT) Received: from builder.. ([2a01:e0a:3cb:7bb0:6417:8cf6:a7f7:ee38]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42bb6df795asm163103325e9.21.2024.09.03.01.38.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 01:38:59 -0700 (PDT) From: Jerome Forissier To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Peter Robinson , Jerome Forissier , Fabio Estevam , Joe Hershberger , Ramon Fried , Tom Rini , Ye Li Subject: [PATCH v3 11/16] net: fec_mxc_init(): do not ignore return status of fec_open() Date: Tue, 3 Sep 2024 10:38:08 +0200 Message-Id: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: 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 The fec_mxc_init() function currently always returns 0. This does not allow the callers to detect when for instance the PHY initialization failed due to the port being unconnected. Fix that by returning the status of fec_open(). Signed-off-by: Jerome Forissier Reviewed-by: Fabio Estevam Reviewed-by: Peter Robinson Reviewed-by: Ilias Apalodimas --- drivers/net/fec_mxc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index 0a0d92bc2cd..2dc1364beec 100644 --- a/drivers/net/fec_mxc.c +++ b/drivers/net/fec_mxc.c @@ -615,8 +615,7 @@ static int fecmxc_init(struct udevice *dev) if (fec->xcv_type != SEVENWIRE) miiphy_restart_aneg(dev); #endif - fec_open(dev); - return 0; + return fec_open(dev); } /** From patchwork Tue Sep 3 08:38:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Forissier X-Patchwork-Id: 824887 Delivered-To: patch@linaro.org Received: by 2002:a5d:48c1:0:b0:367:895a:4699 with SMTP id p1csp2298291wrs; Tue, 3 Sep 2024 01:41:04 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWhkhCg2uqQouRw3ZPgc4XLrpKS1faNxc48uA+/gk/Mb8/Y+6IPIrY8L2rMVazaeq9HF0oHbg==@linaro.org X-Google-Smtp-Source: AGHT+IFLMaBbtn5+0NSWE64TfztJwemsba6HVg+DLFEm7lTTbTkVJwI8Bhs1XOnxGulAHMcF5Jos X-Received: by 2002:a05:6512:4022:b0:52c:8075:4f3 with SMTP id 2adb3069b0e04-53546b5ed98mr11058743e87.36.1725352864085; Tue, 03 Sep 2024 01:41:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725352864; cv=none; d=google.com; s=arc-20240605; b=Dcgl6AO0wPu5V8hf8o6u+LokgkJEXhE+GIkpsiS95F6RRmd6/R7Nbs55SDHr8gmRmG sBBzG0nTUek2jdUBhmrk1/D0WTEDEt9ejs0QYnKRzeGIPE/nUkOOdrK43Djpaqv3Yvra 08ZaITUrrdDP5eHuBeSPYM4ISgilEgjM+l7einGxn0bRUWOkfJ2xKTpzPlVt3xJJmThS UynJbui5WVc9aSWr8im3Tp1ABJvDZTOjNAG9Z54dFcKWODaISNCNghY3yjUkVw9F1okU 5Fq4MEzHI7waHu3kwQs6udSiflZ0aFE6JAT5/6/whhSwuDznu0qQcjwLVk1aJdXePAlC gvVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=47/RH3dhOQEQUdlUxl7YjuTDLYbsddTLJ33keJnBwME=; fh=LM7c3h07p3wMy4uAJrOs51A+GLdCVDgAhljQbLRjyEg=; b=gLLsy4Has5xDUVuaW2mpD17NqZL8OoYAkoI6dLDTNRfuME/2iQWpS2Ul97jiejP1B0 EbgTIu+GWzn229mc/+idnefDjuHL02xr/ADV7aEklJJM14pLBzP0xQy/v5UK4O2AGmzX mmSz48vc7xiY5fT5vR/Sg7MMTta11wau4CsVMicW+ZDXar7HutN3L5mEvQdHeaADzgsu XM3m/b6rYEeQO8OG2w8KWhClmX6QNLxXJRaSxK1TEE3AqyutyOmcwHFt9w+3pt3JZnHp Vt+0BRQKo/KQ3+hqKhU/aTpdCifriCurOnM5Bl4822h9bLq5Iiq85T3Q5WaZ2wN7H4nw nD9g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=v0iRQh7v; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id a640c23a62f3a-a8988f3f59bsi860857466b.198.2024.09.03.01.41.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 01:41:04 -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=v0iRQh7v; 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; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8901288D03; Tue, 3 Sep 2024 10:39:04 +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="v0iRQh7v"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6145B88C8A; Tue, 3 Sep 2024 10:39:03 +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, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) (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 5E3B888CD0 for ; Tue, 3 Sep 2024 10:39:01 +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=jerome.forissier@linaro.org Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-42bb7298bdeso56241475e9.1 for ; Tue, 03 Sep 2024 01:39:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725352740; x=1725957540; 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=47/RH3dhOQEQUdlUxl7YjuTDLYbsddTLJ33keJnBwME=; b=v0iRQh7vimPebWdfEpFgqGsuWlHw6Tr05s1J9B4pCPpHV6Ejk1bfXAnD8D63NkwgXm dgF8GSbN3qJ+BuzgY3bT6z5P3PBhhLKAgD70B54bB6qpIJYsH/8u2ZcgBmM2EEFQS88t GlFq3Rz6vwJlEGwIaySlPYlhT1V4+jheJbZxuALNQEyEUFaYrr29hPSpezxxmdQq8Bfl jAcUhvEjQ+592pY0pWt39KKiAKS0IB1leJKAPZEnnecDexZGvqCU6ysB0tLsONz7jiXx a9j9+O/SiLa4RaROQJXqtJRHFwMuTT4jqbCNcH0Ca3wfFf/1j/juOuMoNezVSjQCqhQ4 a9YQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725352740; x=1725957540; 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=47/RH3dhOQEQUdlUxl7YjuTDLYbsddTLJ33keJnBwME=; b=MjMd8HxH4XGmRMfe0JDt6Nup6VQsZ56QSGUTD/zZIw8EDbCp1zDp6IGKLl4nFXnBBy Q4PcGx6ZCje8EX0DJIWEL3zIv2iN5FT5HwelwT5JiZS3ceq8Ejmvsflg8/H685SgR/YK CvoYejDaNlhAObyymgvg1OQIgdceyJWavJenYpPrEfw/0MJKMNxZsNiEfqeiSPy1Eo4w 92Z4xwVZVsnL30Z+jVrxUlnPDVH6EKlxSrCSjaJiJLOsWFutGWrHA7XewrF2noDqXgj6 S56Hjb9T8TpR7n0ctX0a01AVbp31ByG05h2F845SYPKBCbBEQe3A4hxuRcaAzKWUo31z X7Lw== X-Gm-Message-State: AOJu0YxN7D0lhJEt69kvWyekZjDTeVPULEBhgjQWDcDQQqEKGLwrKxcf et1pr/KUlcdEgYRSsB4q42MZqm0xoasSrPQHxOW6oZuJQr1olNhmS03VzARa9i5WEHDgysAMTll aGwk0HQ== X-Received: by 2002:a05:600c:4ece:b0:42a:a6aa:4118 with SMTP id 5b1f17b1804b1-42bb01c1b92mr161989835e9.18.1725352740556; Tue, 03 Sep 2024 01:39:00 -0700 (PDT) Received: from builder.. ([2a01:e0a:3cb:7bb0:6417:8cf6:a7f7:ee38]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42bb6df795asm163103325e9.21.2024.09.03.01.38.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 01:39:00 -0700 (PDT) From: Jerome Forissier To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Peter Robinson , Jerome Forissier , Tom Rini , Love Kumar Subject: [PATCH v3 12/16] test/py: net_boot: fix comment Date: Tue, 3 Sep 2024 10:38:09 +0200 Message-Id: <936c0b76708897f9d23e20e18e8abacf8f150998.1725351676.git.jerome.forissier@linaro.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: 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 If env__pxe_boot_test_skip is not present, it defaults to True not False. Therefore fix the comment. Signed-off-by: Jerome Forissier Reviewed-by: Peter Robinson Reviewed-by: Ilias Apalodimas --- test/py/tests/test_net_boot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/py/tests/test_net_boot.py b/test/py/tests/test_net_boot.py index 63309fe82e1..d7d74356928 100644 --- a/test/py/tests/test_net_boot.py +++ b/test/py/tests/test_net_boot.py @@ -75,7 +75,7 @@ env__net_pxe_bootable_file = { 'check_pattern': 'ERROR', } -# False or omitted if a PXE boot test should be tested. +# False if a PXE boot test should be tested. # If PXE boot testing is not possible or desired, set this variable to True. # For example: If pxe configuration file is not proper to boot env__pxe_boot_test_skip = False From patchwork Tue Sep 3 08:38:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Forissier X-Patchwork-Id: 824888 Delivered-To: patch@linaro.org Received: by 2002:a5d:48c1:0:b0:367:895a:4699 with SMTP id p1csp2298348wrs; Tue, 3 Sep 2024 01:41:13 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCX9uObC83yRFR6tqND2F88ti9t72tFyy68moYHAhnfuHi56GG/IurLQG06nMvBaQLO5Tk0+YQ==@linaro.org X-Google-Smtp-Source: AGHT+IHf0EhXvJ9dD5vra0mBR0yRkfvk8+8PLzIx0XXEwgnrI09/hntU+4p6iVS6NM9FV5doeUKg X-Received: by 2002:a17:907:9495:b0:a86:97e5:8d4e with SMTP id a640c23a62f3a-a8a1d2c8600mr201832466b.23.1725352873009; Tue, 03 Sep 2024 01:41:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725352872; cv=none; d=google.com; s=arc-20240605; b=KWxJLdsIq73ILpTLBXi4aqsotABbyFE/bDP8q57I2AsT0q5GPHu9b5W1eLv98ToCLN ser62ONrQ1nbLKwQa7TqEc7oGTAQD3SerWu/ROBWrechwaDyu5pstoRGhdzTDADoEUME KYRO7T1xqgSAVO5CEC5PY+h1EJcs4uO/13776jLSbRbxcuNUQnALqmaltIZWeb72FFCM byTEzYOvuDr8RL/JnvyIp6JNMVb9hzk5tbr63hWV7YTd2tbP9SD0Ngjd7VWguYn8fChJ bdGuZmSe0b2HxtpbC1XZW2k+egYAkmYJGhLePUO0YgDiiJDsfria1v2lpbzrXVqCW/ZC jRKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=3bGIbCSvTZOUrrfzEdG3CRsey8qYbjuB8FdRv1iwMkY=; fh=iwlctCWAQxhrnz/vtqAA+S8MFeTTMJC2n5Y3F0B81C8=; b=MeLPo35rHCuV6NUKC7eeepvg6RLBzqCElQQP2asO2ItMxjlQ8XzsmBfXlNXAEjNoKq luLHT4JBZOfQUoUNOGeRCqaUY7yhbHZ6PSvIfHcBWYi3+ThOXHuhY5UlVLsUwpYZZJLb 5up8+Kuakm+1CWTkc5ieKfjW+9L0O3R/7j5W40CdiCTssXvuJyd3bcOAzW/FBpAwo4Cq GO7j4yf8M8Bil5zWcRmaQrwQB9sqZoNDFAk5+RNbF+E9j6ShzFPI03foSwobZSgV+sgD ylgvBmuAxFfh2gw5bhnnWQoE8XcX4LDnZ5QQUC2e8j5zB4w+sb9f34KzoVO1bZGSUR9F mvAQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Eam6hdkW; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id a640c23a62f3a-a8988f40b94si867274366b.135.2024.09.03.01.41.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 01:41:12 -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=Eam6hdkW; 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; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EEA6E88CD0; Tue, 3 Sep 2024 10:39:05 +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="Eam6hdkW"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 205E188D22; Tue, 3 Sep 2024 10:39:04 +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, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) (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 2E2C988CED for ; Tue, 3 Sep 2024 10:39:02 +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=jerome.forissier@linaro.org Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-42bb9d719d4so36858385e9.3 for ; Tue, 03 Sep 2024 01:39:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725352741; x=1725957541; 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=3bGIbCSvTZOUrrfzEdG3CRsey8qYbjuB8FdRv1iwMkY=; b=Eam6hdkWHPDmOmk9thNEhfAz5GhX4IKAaU19phuEldOrvim18AEZJOu8nLU0g78aSV xh0ahinCbqH5k0FiKgpljZecujJTPlkfZ97P9KeXaq4/ubVten/usvRywstA+WspQ3Ta dlnR7oLP4kAfir38j3odkAmQa7BVov4DOZQyG4KQShKwg9rYdc/JzzgXeUpd7SX1VDeD Df/elPVy9KXk3cWeqC//zoR8pw4YOObwdzZBkdMZiaScT6dUNIvIsRLCcnoI+9JCJSs9 o6qieRyW7M6w5mwL8bsgMq9ZY6pajzfUy5/ArgrPnhHhz9G/YD8OetADQRvTb/S/NtjQ zORA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725352741; x=1725957541; 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=3bGIbCSvTZOUrrfzEdG3CRsey8qYbjuB8FdRv1iwMkY=; b=b7wR/mS3PrDVVHPaBEsBKItOGnjwJwxdz0Qn2jpKtkFJ8NQFkjTYWTby+0WHKMp7mP pwUvyCT6fkyHSGF5pG51olv7nkc/SWLF8rjTONtT8Gu8UD9nGIz5FoOTge52yM0EZXbP tJv1ZAuox50uQ50lUPxF2ZemE4+Mvv/jcf1oN5sIDCuZQ9YYIV11ZDl1HBazcH9Laxop dFFNYOYa3jJklkGMt58FvC6NZ5dLzJ2/w3CfitwRk0MCqsP2m4JRTCYnow6Z2+tPoipN SPSZmkA33dHbE/R2uVSZpdtZuKXz9JtMXpyLzSqNzY9ITj8JlouaVhfFLDok2aU3oG16 u7kw== X-Gm-Message-State: AOJu0YwGd8uGppIEEfOKP3KgDH9amQQa4tyDLF70i8bbuTrxSsc6ygQG Q0Gp552t47xkw0D9C3TddGjo4jUFCphRbEUE6F8bH3+eBSu77G+jcUxrQIxy4X9nzTjX69uZOUK spVjQZg== X-Received: by 2002:a05:600c:45d1:b0:42b:afbb:1704 with SMTP id 5b1f17b1804b1-42c880ec5e4mr21819265e9.6.1725352741433; Tue, 03 Sep 2024 01:39:01 -0700 (PDT) Received: from builder.. ([2a01:e0a:3cb:7bb0:6417:8cf6:a7f7:ee38]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42bb6df795asm163103325e9.21.2024.09.03.01.39.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 01:39:01 -0700 (PDT) From: Jerome Forissier To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Peter Robinson , Jerome Forissier , Tom Rini , Heinrich Schuchardt Subject: [PATCH v3 13/16] test/py: test_efi_loader: add missing dependency on cmd_tftpboot Date: Tue, 3 Sep 2024 10:38:10 +0200 Message-Id: <31db70d1519d1084258a7de1895b77f0e34cbbbd.1725351676.git.jerome.forissier@linaro.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: 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 test_efi_helloworld_net() and test_efi_grub_net() depend on cmd_tftpboot so add the missing annotations. Reported-by: Tom Rini Signed-off-by: Jerome Forissier Reviewed-by: Peter Robinson Reviewed-by: Ilias Apalodimas --- test/py/tests/test_efi_loader.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/py/tests/test_efi_loader.py b/test/py/tests/test_efi_loader.py index 85473a9049b..7c1e0ffa594 100644 --- a/test/py/tests/test_efi_loader.py +++ b/test/py/tests/test_efi_loader.py @@ -149,6 +149,7 @@ def fetch_tftp_file(u_boot_console, env_conf): @pytest.mark.buildconfigspec('of_control') @pytest.mark.buildconfigspec('cmd_bootefi_hello_compile') +@pytest.mark.buildconfigspec('cmd_tftpboot') def test_efi_helloworld_net(u_boot_console): """Run the helloworld.efi binary via TFTP. @@ -178,6 +179,7 @@ def test_efi_helloworld_builtin(u_boot_console): @pytest.mark.buildconfigspec('of_control') @pytest.mark.buildconfigspec('cmd_bootefi') +@pytest.mark.buildconfigspec('cmd_tftpboot') def test_efi_grub_net(u_boot_console): """Run the grub.efi binary via TFTP. From patchwork Tue Sep 3 08:38:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Forissier X-Patchwork-Id: 824889 Delivered-To: patch@linaro.org Received: by 2002:a5d:48c1:0:b0:367:895a:4699 with SMTP id p1csp2298404wrs; Tue, 3 Sep 2024 01:41:22 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVnys2OJ/Fbe4tFAuxolXyfKEVbBtUSuxZhIqjjkMhiVUApk4Y8V3pt2XH2EwfJ+RMpsHmuSQ==@linaro.org X-Google-Smtp-Source: AGHT+IG5sMJpC7GZpBBePlUZDaXzzNd7H8B0czCQc1WmYh791q+0vqll1jGMfPIMNsnLdgAAx/5q X-Received: by 2002:a05:6000:e06:b0:374:c9f0:7533 with SMTP id ffacd0b85a97d-374c9f076d0mr4464803f8f.41.1725352882408; Tue, 03 Sep 2024 01:41:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725352882; cv=none; d=google.com; s=arc-20240605; b=Vb2LfMd6EKjFycG1sfIKR+l39V6jeeB1awe5SpPTk4u+z4buPWOu/dQVWD02AMyVQn ksvsxX9ZcQz3Ea7BekiDVneZ5QoqS34vz1DgIqXmHR+jIG4LZ3QQMhZ7iyjD6ytM+Dfr a+FjM57Z1ILSa4++pKcHbqPb0IhmAZtl6FQD+Xbwf4q/vN2+WmPB3uUubNPWsZajBI/5 QRIVuMYuzVErVPnuvCE/NryUEO1hUuBL8Hq4Ksa+EWx2TMZMabFgJlpfPJw36wo+U9CK DFcbdaavd0tLIZYsmAujweFRHIwCQrzOj8ESNqSvuG5Frh51cP9vWFNjtyleFJLl27f/ nSiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=pVLp2Yc0TD42b4eD8h2KJ+CtamgC47vAQn8KmKi6cS4=; fh=iwlctCWAQxhrnz/vtqAA+S8MFeTTMJC2n5Y3F0B81C8=; b=fC86WkhJVi/DEggbZLiA8CY1Tz5CGogYyr/CZHJ5PqEs2VpU1OFkyLO5EoerImajRr 4yVrYgkc5lcQlbxhpPKFsVxBNQMdMavYHvUNkB1ConpQv6+xc/cAt4dpy24Rf84UK2EF MrGe5eMgb5BBS6AYdeVXsh/fxMC2I3BEzn4QYEU0hVa4ZWBtHOZ7cbQDnMCimOoqZWk1 o5SG7XTFxvJx1ydtlIYsKjUjSN+SkhRcg7wZWhVWhEAr7kLakcTuhigfTcaxDcsGosz+ zeCEVnHj9s6wn5KiL53IN0+lH4v3mznKShvz6gQHSFUoplsVcYO6s9ATSumDYSxYzq9+ jY7w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SpKazF24; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id a640c23a62f3a-a8988f41bf0si844925266b.85.2024.09.03.01.41.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 01:41:22 -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=SpKazF24; 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; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6666988D2C; Tue, 3 Sep 2024 10:39:06 +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="SpKazF24"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 52D0B88D29; Tue, 3 Sep 2024 10:39:05 +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, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) (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 38B1988D13 for ; Tue, 3 Sep 2024 10:39:03 +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=jerome.forissier@linaro.org Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-374c4c6cb29so1979896f8f.3 for ; Tue, 03 Sep 2024 01:39:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725352742; x=1725957542; 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=pVLp2Yc0TD42b4eD8h2KJ+CtamgC47vAQn8KmKi6cS4=; b=SpKazF24Tut0PsshPtTo/ZKsDxi5bSeiZ9HEYYYFPXTZAQjD/Y+G7L6lvXjOTx4JJV EgRigbnnES1IcSiIURtYWLy7cT8+HtpkUa/i0inkhasub1tg1PNjDPLEWqB4TfyeT0L4 eApOQcRiIJjd2S0mLZIIz8hapOHzekOE4wft/wJUdlnFn/wDh1usCBDGOlV11YwaaYx5 MNWwmDXP/GM/dyAh2Et8Yb8938GOP49j28c1U5zyRtPnCuoTDjN1XffRtRSIZbFiTeZ9 yhjT80aI9m2ryEsWjiOlLAolqnzr1DyIPVLrjYftiOdvLZaA+8H4BuYw3YjoM1p1lrkV 1BQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725352742; x=1725957542; 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=pVLp2Yc0TD42b4eD8h2KJ+CtamgC47vAQn8KmKi6cS4=; b=sQk2/mk6SqjED/JwHsv3BalLlYRg115aGuboIYKovJ0CoFDT7pUFUm3HEdsuuPcdo1 VC+hn2nNDZkVA/mr1Mn0gXGMGIJFJHfm4gFsOzVNgjLURyoFXS2IyBuKqcDQER/0RIxp DVKIDEuFROmNHCErhuvXi5TWJ0RAnVCZWI8pSCKT75xuYDTg+MZPufTnzkYlrJIPYfsh psxeCPRK6MsSzuX4GDJarpZ7CGTPQC0AAXmTffCLbW8GscqiF0ME2qOquc0+jcRfP1L1 ZbbExm7VvdR9T/I4ZQlJ32dKTcOOzl+U46/kwGv4sOL0elWdoNrKeDjCpEUkEo31GTgF kLpg== X-Gm-Message-State: AOJu0YxI9J7g6ujZTUEujoxW1TG6ahdKOaQIJL62fdrD976kFjNO9m69 9aDVXvwFjaZy+i6pk17F5asgLrJs8Na1WdXd8sz/y+8WXWxlXuk9/MoadRIzPaX4rQOvZRlazfG UZYueOw== X-Received: by 2002:adf:e005:0:b0:368:4c38:a668 with SMTP id ffacd0b85a97d-3749b526b73mr14821017f8f.9.1725352742237; Tue, 03 Sep 2024 01:39:02 -0700 (PDT) Received: from builder.. ([2a01:e0a:3cb:7bb0:6417:8cf6:a7f7:ee38]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42bb6df795asm163103325e9.21.2024.09.03.01.39.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 01:39:01 -0700 (PDT) From: Jerome Forissier To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Peter Robinson , Jerome Forissier , Tom Rini , Heinrich Schuchardt Subject: [PATCH v3 14/16] test/py: test_efi_loader: add HTTP (wget) test for the EFI loader Date: Tue, 3 Sep 2024 10:38:11 +0200 Message-Id: <062d95132016f9be6ae1a4ce21ab754cee0f9745.1725351676.git.jerome.forissier@linaro.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: 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 Add a test to test_efi_loader.py similar to the TFTP test but for HTTP with the wget command. Suggested-by: Tom Rini Signed-off-by: Jerome Forissier Tested-by: Tom Rini Reviewed-by: Peter Robinson --- test/py/tests/test_efi_loader.py | 62 +++++++++++++++++++++++--------- 1 file changed, 46 insertions(+), 16 deletions(-) diff --git a/test/py/tests/test_efi_loader.py b/test/py/tests/test_efi_loader.py index 7c1e0ffa594..5f3b448a066 100644 --- a/test/py/tests/test_efi_loader.py +++ b/test/py/tests/test_efi_loader.py @@ -45,11 +45,18 @@ env__efi_loader_helloworld_file = { 'crc32': 'c2244b26', # CRC32 check sum 'addr': 0x40400000, # load address } + +# False if the helloworld EFI over HTTP boot test should be performed. +# If HTTP boot testing is not possible or desired, set this variable to True or +# ommit it. +env__efi_helloworld_net_http_test_skip = True """ import pytest import u_boot_utils +PROTO_TFTP, PROTO_HTTP = range(0, 2) + net_set_up = False def test_efi_pre_commands(u_boot_console): @@ -110,10 +117,10 @@ def test_efi_setup_static(u_boot_console): global net_set_up net_set_up = True -def fetch_tftp_file(u_boot_console, env_conf): - """Grab an env described file via TFTP and return its address +def fetch_file(u_boot_console, env_conf, proto): + """Grab an env described file via TFTP or HTTP and return its address - A file as described by an env config is downloaded from the TFTP + A file as described by an env config is downloaded from the server. The address to that file is returned. """ if not net_set_up: @@ -128,7 +135,13 @@ def fetch_tftp_file(u_boot_console, env_conf): addr = u_boot_utils.find_ram_base(u_boot_console) fn = f['fn'] - output = u_boot_console.run_command('tftpboot %x %s' % (addr, fn)) + if proto == PROTO_TFTP: + cmd = 'tftpboot' + elif proto == PROTO_HTTP: + cmd = 'wget' + else: + assert False + output = u_boot_console.run_command('%s %x %s' % (cmd, addr, fn)) expected_text = 'Bytes transferred = ' sz = f.get('size', None) if sz: @@ -147,17 +160,8 @@ def fetch_tftp_file(u_boot_console, env_conf): return addr -@pytest.mark.buildconfigspec('of_control') -@pytest.mark.buildconfigspec('cmd_bootefi_hello_compile') -@pytest.mark.buildconfigspec('cmd_tftpboot') -def test_efi_helloworld_net(u_boot_console): - """Run the helloworld.efi binary via TFTP. - - The helloworld.efi file is downloaded from the TFTP server and is executed - using the fallback device tree at $fdtcontroladdr. - """ - - addr = fetch_tftp_file(u_boot_console, 'env__efi_loader_helloworld_file') +def do_test_efi_helloworld_net(u_boot_console, proto): + addr = fetch_file(u_boot_console, 'env__efi_loader_helloworld_file', proto) output = u_boot_console.run_command('bootefi %x' % addr) expected_text = 'Hello, world' @@ -165,6 +169,32 @@ def test_efi_helloworld_net(u_boot_console): expected_text = '## Application failed' assert expected_text not in output +@pytest.mark.buildconfigspec('of_control') +@pytest.mark.buildconfigspec('cmd_bootefi_hello_compile') +@pytest.mark.buildconfigspec('cmd_tftpboot') +def test_efi_helloworld_net_tftp(u_boot_console): + """Run the helloworld.efi binary via TFTP. + + The helloworld.efi file is downloaded from the TFTP server and is executed + using the fallback device tree at $fdtcontroladdr. + """ + + do_test_efi_helloworld_net(u_boot_console, PROTO_TFTP); + +@pytest.mark.buildconfigspec('of_control') +@pytest.mark.buildconfigspec('cmd_bootefi_hello_compile') +@pytest.mark.buildconfigspec('cmd_wget') +def test_efi_helloworld_net_http(u_boot_console): + """Run the helloworld.efi binary via HTTP. + + The helloworld.efi file is downloaded from the HTTP server and is executed + using the fallback device tree at $fdtcontroladdr. + """ + if u_boot_console.config.env.get('env__efi_helloworld_net_http_test_skip', True): + pytest.skip('helloworld.efi HTTP test is not enabled!') + + do_test_efi_helloworld_net(u_boot_console, PROTO_HTTP); + @pytest.mark.buildconfigspec('cmd_bootefi_hello') def test_efi_helloworld_builtin(u_boot_console): """Run the builtin helloworld.efi binary. @@ -187,7 +217,7 @@ def test_efi_grub_net(u_boot_console): executed. """ - addr = fetch_tftp_file(u_boot_console, 'env__efi_loader_grub_file') + addr = fetch_file(u_boot_console, 'env__efi_loader_grub_file', PROTO_TFTP) u_boot_console.run_command('bootefi %x' % addr, wait_for_prompt=False) From patchwork Tue Sep 3 08:38:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Forissier X-Patchwork-Id: 824890 Delivered-To: patch@linaro.org Received: by 2002:a5d:48c1:0:b0:367:895a:4699 with SMTP id p1csp2298448wrs; Tue, 3 Sep 2024 01:41:32 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCX8zdXw2rwIH8D7OshRk0+hj59cf5dNX6b6dL9P49fj0kAPIPZGFc9FTLtWFCzcAVDxVIrG3A==@linaro.org X-Google-Smtp-Source: AGHT+IFzgJ/ph6tiQzVc/O+WxikFMBhcxQe0qWeeOnpYvbl2XcS0FjKJwCCkXFopi8aqlVRmzoSd X-Received: by 2002:a17:907:9602:b0:a86:9596:92a3 with SMTP id a640c23a62f3a-a89faf98549mr486951966b.44.1725352892324; Tue, 03 Sep 2024 01:41:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725352892; cv=none; d=google.com; s=arc-20240605; b=K2r/JF1ublRlwmWahsO43k+dqBb/BM1ZPIyvhAkKlbFKVggkDu2GMzJcDeNvxxfsd9 XOdDhq1YUiASN07c4kvxh/wYek4AOPx+YfJX1vKlLpdSGJNEYoU4sIom+ABb29pMI5T2 CMAl4BgYAqjOS4B+xGTUzqgUWK9DrkzeNE4DXlNaJRuCM6vXAMwbKZu3C14TZoowwRzm D5X8BYRs0kN8B8Bxzk5PUipoGjUoXVlQvlXogNoW9M3a76pMYl2MPxxV2GGIVkWBmClU PdmhWP8KcWQ0FBRiKydWg5Lrl0gX+NeOc1HoVexSEUafZIO8PZRglv4YRkYlY01A9MQ5 VtwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=7pQJ/U35Kq9qHhWWud44CyWS+0/ZT8DvHOfQHL+FlLc=; fh=KK4fXgyFNgkiNrkNoUwNoo90LszXiJEto4XGHfu436I=; b=bRC43m61xJGrWAY11Fjq1K8X7F+SIDifKMVaUceGC2PUgzS+vHR+AXrsh4UKdZMnhu AVQA+cY+UJyeeEVCTPUxbLZR8bFl0jTaSbQGoauk5yEkJtVBrny4NT+uAlbi7TNoPRqL dfRDGPn50WMYHYyTemLGaK1KjcRn+oBDyNJmxH/BRhgzbmdRxRMykIM4yWcPYcl7Amd8 zF2bk0xKj9pvCsEKYJ8SM1cCk0SVtrhHrzqe1RS9FRsHHGjgVJmgYwOqWAlzfkvpH94H hHpnMgDgi8+Ql04yxj1+a8xuKDCLwLE/rIh7U16KFpENbVmvB/N2AfCCw0pADnCPIbwd xhrQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Do6we/yA"; 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; dara=neutral header.i=@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 a640c23a62f3a-a89891cf8a3si834908066b.738.2024.09.03.01.41.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 01:41:32 -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="Do6we/yA"; 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; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DD8C888D42; Tue, 3 Sep 2024 10:39:06 +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="Do6we/yA"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 52CA188D2A; Tue, 3 Sep 2024 10:39:06 +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, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) (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 1752488D20 for ; Tue, 3 Sep 2024 10:39:04 +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=jerome.forissier@linaro.org Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-42bac9469e8so41573585e9.3 for ; Tue, 03 Sep 2024 01:39:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725352743; x=1725957543; 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=7pQJ/U35Kq9qHhWWud44CyWS+0/ZT8DvHOfQHL+FlLc=; b=Do6we/yApPkji1K36YcO2MxbCM7o5bDcy2VzppW46an2uxMiTwBNLZS698UpYgBOFh 7nCDrIHvE9CjjVIpCLvYhLX/lMmBQILuwaaOkYjt11vWDLQzB6Fe12+I67pfyY5/sHha 7Tn+8xnBQvqJD+0D2ljT67jO0qiaj/K6aAnjsj68he8O91pn2oO/lOXRfmn73YjNO6LY TUIyE0omoc+t8JuyK2bxGpQ871Blt2gUruP6TAN/0dEnvKf1q2z5+ZJv1lT4K+zfvcU0 66Zk6pGmn6heTgxpl/dDdSpnVvrs4blgQR8LMOqQ/bwBWJ3t46NBUVZr34tpwwF/OjsZ +bew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725352743; x=1725957543; 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=7pQJ/U35Kq9qHhWWud44CyWS+0/ZT8DvHOfQHL+FlLc=; b=ZC1OMLATBOHXPOnQypH86bh01+SdZWN/v76jc8gjlS+DEe8BCP28MdwDnzQAK479EQ IRb+5b9gdvrQeRfdzDYsopHihqj8IbCU0ZiIuPcTFYlvhjCfXzqtGKGAuvn7Fr/UaB3a VmFrCbQwW/ETxmg0J5+bBYYa6Ihck+FOa7ungnLZLdr+arlZERmAnmZxMynhx2Li0vms foM43UHCOLUn9mNQJ61Uo1y2Y+S9tm6V/oiZvK7xDK1vbgcYldzpKYoqqoST4RaFjDNO OEaiB1OZoGx9h/NLxMVZeQMI5GH/J+7esyzRjMypwo6R1wlH7HVEDloSObHLXYAzu1ar cCEQ== X-Gm-Message-State: AOJu0YxxNFAQA8DwDeTLmyA8nc6WzvF5MOCS1fcgmf4LSIHnugTJuGYd wNTVkHgCE1sPsK1sNEWgOOGOFYoN0kFcgykumH5+1E5e3+zUmPcsZzvZ2AFnBQkQwgH+VJpntPo bB8tshA== X-Received: by 2002:a05:600c:3c98:b0:427:dac4:d36 with SMTP id 5b1f17b1804b1-42c82f47ed6mr48284425e9.7.1725352743131; Tue, 03 Sep 2024 01:39:03 -0700 (PDT) Received: from builder.. ([2a01:e0a:3cb:7bb0:6417:8cf6:a7f7:ee38]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42bb6df795asm163103325e9.21.2024.09.03.01.39.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 01:39:02 -0700 (PDT) From: Jerome Forissier To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Peter Robinson , Jerome Forissier , Tom Rini , Simon Glass , Stefan Roese , Marek Vasut , Rasmus Villemoes , Jagan Teki Subject: [PATCH v3 15/16] common: update: UPDATE_COMMON implies CMD_TFTPBOOT Date: Tue, 3 Sep 2024 10:38:12 +0200 Message-Id: <8d57cb45bfe353fbe8006d9c083898522613ba0d.1725351676.git.jerome.forissier@linaro.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: 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 common/update.c (UPDATE_COMMON) depends on tftp_timeout_ms which is defined in cmd/tftp.c (CMD_TFTPBOOT). Therefore add the appropriate imply statement to Kconfig. Signed-off-by: Jerome Forissier Reviewed-by: Peter Robinson --- common/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/common/Kconfig b/common/Kconfig index 83c81edac20..968d4fb66a8 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -934,6 +934,7 @@ menu "Update support" config UPDATE_COMMON bool select DFU_WRITE_ALT + imply CMD_TFTPBOOT config UPDATE_TFTP bool "Auto-update using fitImage via TFTP" From patchwork Tue Sep 3 08:38:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Forissier X-Patchwork-Id: 824891 Delivered-To: patch@linaro.org Received: by 2002:a5d:48c1:0:b0:367:895a:4699 with SMTP id p1csp2298496wrs; Tue, 3 Sep 2024 01:41:42 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWHJanZMbXZR2eQ523gywLeSTJx+BBp4bffzSxsIDttJ/d8kUMIietsFvQAkJ3oCvBWRnKQbQ==@linaro.org X-Google-Smtp-Source: AGHT+IHpOyBqF4q3fDpD9GqhfM2Vgmg7SwNkNIB3UECU3x6m41xJuGw0gwAbBTrqvw88Uwu/OAAJ X-Received: by 2002:a05:6512:2811:b0:533:ad6:8119 with SMTP id 2adb3069b0e04-53546b04b9emr9535281e87.14.1725352902629; Tue, 03 Sep 2024 01:41:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725352902; cv=none; d=google.com; s=arc-20240605; b=MW1FP4BWMxmhFcjr0RYXUEm3iwG2kHxiOepHotVRW9YF31L/E0Ac/SdQ2pSboFGMSu NaOmjTb0h1IQhIM9W9IMfXWfTF0UFJI59UoV7IvzInen9FFrgE6lKuIXyWkl2WPxCwWt Jlxg6LrkQFTm7Vq3/XMvuT8boMU/72ryZD8/0nNHmUr5a88aOznQ0i3/qgILKYiDG/Nc X+vo1gPypgy7OlZW+djOT0fjJBWQ3JZTpPWMKiMydG2M4Dm7W8ykLsDNe3ffbOoxpnkH j6qwU3X4H/vxnJ1X3bbxMzAe+rDK3eHcp1TlxnQAuj3Eep3HegkZScqakU2oVAt9tAhU jQTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=P9w4C1VZJ/ZW0U+WL/32spA/yy3oQgcllZbaXrOSnAI=; fh=NE5h+r8OBbnhB0GmteBN9GvTV7hJxc5S/IStnD/JB0k=; b=aOO7mKWP09Q9DJmrDojJh6DjpABFdTRlFmofp5+eEYTZY2aLVtgk7qkNA49pFhgMBO 1Kxsb5DLWqWID+xEs0nrUENT69wKsmzS/JuwymGaHos4NJbk5j9H+8vB4tRm33qzrH5G Z+KOoOBl3jTfC7sse5FM+LgkgFjudDvDE/5sZfK1h5bCqr/aYxUOGjcUhYdHEsO18XTn xqZ9J7DMcSxkXIuHzvlEAGXLH+DCSKAwGcJoaZyurEsNmbj88/qJxvrJVJxN79dJvqsG 2G3O/M/ynRxDSTdg0PA+AYIOOHNNifx2eN6eTWO2u5iAYzk2SCDcZTey5GI/hKjrPN7a Pf0A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=leJCoF8N; 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; dara=neutral header.i=@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 a640c23a62f3a-a8988f417b1si826023566b.77.2024.09.03.01.41.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 01:41: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=leJCoF8N; 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; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 930B388C6D; Tue, 3 Sep 2024 10:39:10 +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="leJCoF8N"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 291F588D40; Tue, 3 Sep 2024 10:39:07 +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, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) (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 D66E588D28 for ; Tue, 3 Sep 2024 10:39:04 +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=jerome.forissier@linaro.org Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-42bb9d719d4so36858735e9.3 for ; Tue, 03 Sep 2024 01:39:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725352744; x=1725957544; 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=P9w4C1VZJ/ZW0U+WL/32spA/yy3oQgcllZbaXrOSnAI=; b=leJCoF8NoqAcx1THakWVfMveKqGdypQBMD42MWEhKa0BBA4y6IJhqj52fFDoCUHg2B LWiN0IMmsZ22Qtii3NTb8iY2eBab6BVkXODHq9dwqH/Ro4txTTDCRG31B/nUXAwql1e2 UgXylyXkLm94PunSCQA9+IUDFvwjak+ibxysneR27Gfn16mkg/DxI13OjWsp2w7D6SvZ xwaKhe0KTXJSnuYVyzuTly9vOyIbRkueuJwSlP5MHPnGfDI3T1uAkjm9KI+INX3ZPZqd Rku6a5XdoxKJ0oMU4xzDA44G3MJjy4yby1EAe2HsD9D7NNleTcOUN4WwHpeRpLfvoivc nncQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725352744; x=1725957544; 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=P9w4C1VZJ/ZW0U+WL/32spA/yy3oQgcllZbaXrOSnAI=; b=tSn8wAxyw+Dt+ae3p4xrAceWnSZ0kMccmwGMTLo12LVb15etnZiG3Z37yJkuK6uJL0 2KeYUmlgFxml1AsZxWol/n1G2ZeG97Wui0I22fxAYOpJX2Q8jbKxuX3J0ku/bYLFmt8B R2L97MUQ31h7Ce3w3/8KfjwetC1WTrYlpvqnCrJjyFn7UraDSC3E90/xpLkccYg8oN3f S/dJfUuO5ZyzV5powOdPxZo+JD6azJbh/4zqjJfWkCZdVfyN79eQWIjF4DaBCfQVughY 6pBcp9TI26Z+HFoeoeJDcAFJ4QGHbbiXjpkPShhv9jtz5cmcR681977XNeoQkfadxfFU 9x/A== X-Gm-Message-State: AOJu0Yznok/ywAAUhkD7TkdP0HUUtBnbPoSk6dtzt3n+GAlh7viACxCV BDYyQbTW1DLeUSSlQgm4aU3ATDZox75C44HBUmR2cUrP6t6mHOQr+C4S+h2sbrYYVnrHaZdAjKT P70Ug62aY X-Received: by 2002:a05:600c:1d9b:b0:426:8ee5:5d24 with SMTP id 5b1f17b1804b1-42c880f41f0mr22473885e9.20.1725352744112; Tue, 03 Sep 2024 01:39:04 -0700 (PDT) Received: from builder.. ([2a01:e0a:3cb:7bb0:6417:8cf6:a7f7:ee38]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42bb6df795asm163103325e9.21.2024.09.03.01.39.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 01:39:03 -0700 (PDT) From: Jerome Forissier To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Peter Robinson , Jerome Forissier , Tom Rini , Simon Glass , Mattijs Korpershoek , AKASHI Takahiro , Heinrich Schuchardt , Michal Simek , Francis Laniel , Anand Moon Subject: [PATCH v3 16/16] cmd: pxe: CMD_PXE implies CMD_TFTPBOOT Date: Tue, 3 Sep 2024 10:38:13 +0200 Message-Id: <36e09ed4de54d0b21006fa098f4ce1837bbb6419.1725351676.git.jerome.forissier@linaro.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: 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 cmd/pxe.c (CMD_PXE) calls do_get_tftp() (CMD_TFTPBOOT) therefore add an "imply" to cmd/Kconfig. Signed-off-by: Jerome Forissier Reviewed-by: Peter Robinson --- cmd/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/Kconfig b/cmd/Kconfig index 978f44eda42..be15a4d2670 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -2091,6 +2091,7 @@ config CMD_ETHSW config CMD_PXE bool "pxe" select PXE_UTILS + imply CMD_TFTPBOOT help Boot image via network using PXE protocol