From patchwork Mon Dec 25 15:39:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 758219 Delivered-To: patch@linaro.org Received: by 2002:a5d:67c6:0:b0:336:6142:bf13 with SMTP id n6csp2709807wrw; Mon, 25 Dec 2023 07:41:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IHnmefuO+ubNl9NxHkE59/4PA05jBRNL8ss2KbGK5SDQu6RkqFqx2eOUsS9nyCTmxGdbf40 X-Received: by 2002:adf:f9d0:0:b0:336:615a:59d with SMTP id w16-20020adff9d0000000b00336615a059dmr2879219wrr.65.1703518919210; Mon, 25 Dec 2023 07:41:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703518919; cv=none; d=google.com; s=arc-20160816; b=k21/ikRitVVZ71/B4CLmrGQJ2aHUyhyDjHjiAxELEnSoe2tJ1poW78Asl0yiRgJ/cE AJVonOe9xjUxJqGGxuX1wIwPKjAIyEH066wE8W3+HC4POLx3JYYkzFY//Zwt3rBFmRWh QmKA7oOjKyuRckKMFawcGMQEnVUfnQ88uzwATNKU86oWWChwdE9X5oYfm7BASSbKL3pD fD3BvX+Y/2BPOu6jQbTVChNEWb9n+3rNFRn/QEDZKHbe4XWYExviIOoFfvB3/kfPTATU lYmmiq8JABYEkdA7tdUhIJnjl8C2/E+ldPmxldYCQLN3HMUDt2HwMKprY3gqQXkrB4jS 0dlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=bztCqZtuZeWJbD9MIA2Nj/8rhjf7X26SpwotbAnqAAE=; fh=al8TO5kxNSCLdK6Wct4/S1Ky9QCKGaknFfrx/Rr/20U=; b=W9peGZVb/vxjvQ7J/lMb9QtMVLMRvNYMMwjCfcXfupLQYjdRUCvivB609kX8IXE4Xi lh6K3Gn4cRdfVWLLuygf/DAgLkhWVYpSBja0rb5KjkQcJxEuFjqny/DKw4MvIJv0z8AI BiyOEE1+cdqeHFWKBZKj+cQScA/EOUNw63kQ2ob4znZG6cnhvXCv1fSFb420hBuRdhYT hUoUcqPtAYddeXIK79Z6SjndkZEKiuHedpioCRCJHjMRvEngIg9pxt0FVXInBzBvITvl 2pSQKT+wtCj4QxIIUX7dnhv5k5pssenRCwIzZqMvyG3RMbsbejLG+fQxLCsODtFvcVWv 9h9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pMBhUNVH; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id k14-20020a5d428e000000b0033656777351si4797178wrq.891.2023.12.25.07.41.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Dec 2023 07:41:59 -0800 (PST) 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=pMBhUNVH; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C1E808760D; Mon, 25 Dec 2023 16:41:49 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="pMBhUNVH"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 777C38760D; Mon, 25 Dec 2023 16:41:48 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) (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 77EC48753E for ; Mon, 25 Dec 2023 16:41:46 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2ccabfd9762so22187471fa.1 for ; Mon, 25 Dec 2023 07:41:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703518905; x=1704123705; 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=bztCqZtuZeWJbD9MIA2Nj/8rhjf7X26SpwotbAnqAAE=; b=pMBhUNVH3qEYFHRkj2j8sySwmYka0aCizvI6U4pUOY1eRckTF0eb/1E2xqunPy4SJx 1moUftl7MCff8M7eSVFDTmefB8osx8ywtKcnOTaNbOKbXmD/isL64/uMrRW0gC4EPsjA 4KgR/04NQ/uQWVHB1I+lTlXfhmGzgZ2hPKxpMsE34bYq5ioxpLSscYUQkq0OeuLwCzC4 HhKnmoNaOUl+lnwqQ5QhrxmRP0bXOAqhC/hk5vmodLwci/d6GCMKsS0GpDn3lHL42nTy CgHcJumyA28CcBEU5JFE0yRLNwc30dgHkDWM1Lf2rLEmu7wWYc1244KAMQMmBVY8xm3b GC5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703518905; x=1704123705; 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=bztCqZtuZeWJbD9MIA2Nj/8rhjf7X26SpwotbAnqAAE=; b=C6b+CGbPhavIE2YROHQOYWfO+oZj4EPxRQKFYenZrKM+YomKD/QFZjmchuPdLf9nvo VDu658lZxsGOlT72U9NOfaIR8loPfyK9sVZLAKYT41bTExUKSeq1fJZ9HlWrzW3wJUq5 ZFwOtPsMm4b1G1O9Fy/U5Sl2MEgqXB3of66DVXZIGBGynJXKxaq5LOhhBjDPoC5MoZXD ehBuHnGB+TK0X5qEI2Ec108xybVgnaoYFp0p4pxhmiN03Fbj29bum8LQiRHCRGFax/Cb uK5NscMtTNGnlmHj0LuiytEl9WO1iMHxQEvJ0vpTa4w0bHA6umt+T2OP4eMSrT+mXt29 WBVw== X-Gm-Message-State: AOJu0Yxl586X2/jteiAlpreU2yu5eusGi55W2bdUYXljaxOuO2Z9RkSs 3XYxCL0nzkeTecT+MK97ShWLh6IUWV4Bk2YnQdj86lcb3D8= X-Received: by 2002:a05:651c:613:b0:2cc:c6ae:9fa1 with SMTP id k19-20020a05651c061300b002ccc6ae9fa1mr887576lje.16.1703518905096; Mon, 25 Dec 2023 07:41:45 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id a17-20020a2ebe91000000b002cca6eafc44sm1425644ljr.113.2023.12.25.07.41.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Dec 2023 07:41:44 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: simon.k.r.goldschmidt@gmail.com, tien.fong.chee@intel.com, sjg@chromium.org, joe.hershberger@ni.com, rfried.dev@gmail.com, bharat.gooty@broadcom.com, rayagonda.kokatanur@broadcom.com, trini@konsulko.com, Maxim Uvarov Subject: [PATHv2 1/9] test_net: print out net list Date: Mon, 25 Dec 2023 21:39:21 +0600 Message-Id: <20231225153929.8284-2-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231225153929.8284-1-maxim.uvarov@linaro.org> References: <20231225153929.8284-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Printing net list is useful in CI log files. Signed-off-by: Maxim Uvarov Reviewed-by: Simon Glass --- test/py/tests/test_net.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/py/tests/test_net.py b/test/py/tests/test_net.py index b2241ae6a4..cd5b791a6a 100644 --- a/test/py/tests/test_net.py +++ b/test/py/tests/test_net.py @@ -96,6 +96,8 @@ def test_net_pre_commands(u_boot_console): if init_pci: u_boot_console.run_command('pci enum') + u_boot_console.run_command('net list') + @pytest.mark.buildconfigspec('cmd_dhcp') def test_net_dhcp(u_boot_console): """Test the dhcp command. From patchwork Mon Dec 25 15:39:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 758220 Delivered-To: patch@linaro.org Received: by 2002:a5d:67c6:0:b0:336:6142:bf13 with SMTP id n6csp2709868wrw; Mon, 25 Dec 2023 07:42:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IEm+ZEO/YlCQpJkTrP7DeRYyLemuca3/HanY4pUZ+VbKRDiaXfG2Sc+O9SYeVLCU1EnrQt8 X-Received: by 2002:a05:600c:35d4:b0:40d:50a3:cced with SMTP id r20-20020a05600c35d400b0040d50a3ccedmr2331263wmq.9.1703518929087; Mon, 25 Dec 2023 07:42:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703518929; cv=none; d=google.com; s=arc-20160816; b=xWVAmc7R/2DkoWvmEfzYvpJDqY1cVBAC8A36MxE+UdHYB9iCXoYfbUAR5xT953n/eC BHeKOJJTz3if4VQdBWVu6ICtbdjwgpVQfKe45XpP8pLugdS6CY6BEeU6T0tiV40fQ+Y+ sg3HjYcGpF+q27gLYp67l17OMJdBirvmohSz5LeBcQ3aPr0y+QLlqIVz233b1xhrREAT l59j95rGRHR7G9SiTiHVq3/ULi+6Oh/kcpJFgXVtMqp8BBbXunSv8wi9i1k6EpwPI6BZ SRg/fCUpbN/M0ves8sbPoqC5cguB/yrlSpK+U5bM+DzPNesBDvX/0NCtj+YWNddgHEjD bvQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=zsr0zJss76jKia1cvuV3LBXuFsGHY7LZmxXVF8UwBkM=; fh=al8TO5kxNSCLdK6Wct4/S1Ky9QCKGaknFfrx/Rr/20U=; b=y6uuOPhk8dtCr65cGbw2Dm/1vbilcV+1mK19+7tHkr3FM1zMs60AT81WutnZ21CM/4 PAcSiXRiqYfswbcBzLS2n3kRhQ5Gi1KIRdyyHfpDmU7PiiJHI+HcLgzKFBmcLD5Py2lP r7zNRX32QgfIfKZrf8FYFsV35UoTuTW4+GdTIAm/dtiiB0up4qADkx8OOmYAXmb4glf9 A92gQje8eLAW/4GzKLI5VcXcMsYlhd1GAct9o+37B5QJU0l4DpN8xx/3jZkirpquRj/p 2TeiSPAG/RljA6+vZn7wQVzZRvLsfWGAvXCwfHgA4y8WvC2OpGTXZb7e5d/DlaR5ZA7h 4Fgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=N64ZV7oB; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id t11-20020a7bc3cb000000b0040d2924e7a4si7104740wmj.149.2023.12.25.07.42.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Dec 2023 07:42:09 -0800 (PST) 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=N64ZV7oB; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3793F87646; Mon, 25 Dec 2023 16:41:53 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="N64ZV7oB"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 736CA87561; Mon, 25 Dec 2023 16:41:52 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) (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 7A79C87721 for ; Mon, 25 Dec 2023 16:41:50 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-3333b46f26aso3754467f8f.1 for ; Mon, 25 Dec 2023 07:41:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703518909; x=1704123709; 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=zsr0zJss76jKia1cvuV3LBXuFsGHY7LZmxXVF8UwBkM=; b=N64ZV7oBxqV1DxRAuO1gtDYURgYGWB7Bc3mHQSUmLeKih5sC+hVW/LzgnLHZbjuN5q as0sSEzbw0hX/OOnyACExCuKppCqQvtbXjXs2pqqHUjNkCdAaLAiTF7iFFW2zKJwsAD9 jRbZzwpdIe4D+ND40b4aA2R+toZnjVkGfeiO7/MJMgjrWRbhK0zEp+/YkQcQG5MSjg5O g6jh9T1/PTnMAhXkC/S97arcIPIOR8hvQBVjAUj1CL/t9nPUHEd+dnyoHsAW2bIvxHCA +XGGYyEPNsTaoWELjCyLv66CwkAlMwuhaEqXZvMyzKl5NNqp6WbKn5A/i8sDFznjvjcc k6Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703518909; x=1704123709; 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=zsr0zJss76jKia1cvuV3LBXuFsGHY7LZmxXVF8UwBkM=; b=wuRvQsK0hXG4P/kbYvNT6lQorzMzMe579GhOkLqraKRUDaaniohdpK4gF55TILzQ1z 5Yc7XNJOWdw5hz9iU0i+M3IACyeFMr/02JQka675SL83ynkanhJwggVnDE7LVP/mufpi sHNnPPGHdSBMjFJqAhUtT3zAZYx0/llus0NzNjdMuZ55oqSpNL8O9CV0C6+vuOl2S8ol 3tQoCfk4DpDHDj+5M5ABiTr2qHUG/fAWITEUDXNIuYL+SkNMTGSLdE5YKq4XBwrwkq5y bdpl9WYsE5DjMZ2ZKT+V/219GJNb7MvveqfkSFWddfK8EIFGt6C6q34Aipu71lEeVZB3 aazA== X-Gm-Message-State: AOJu0YxFL3tTI2X3xn12bnAyKBF5ZKGDK97Ml6BSygGFzE0dpm8dB941 NeLePwFPI3hZp5+JLRCs5u6AmN2ASQJE+q3Xy9YaIcc2efw= X-Received: by 2002:adf:e881:0:b0:336:737d:4b93 with SMTP id d1-20020adfe881000000b00336737d4b93mr3233669wrm.46.1703518909253; Mon, 25 Dec 2023 07:41:49 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id a17-20020a2ebe91000000b002cca6eafc44sm1425644ljr.113.2023.12.25.07.41.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Dec 2023 07:41:48 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: simon.k.r.goldschmidt@gmail.com, tien.fong.chee@intel.com, sjg@chromium.org, joe.hershberger@ni.com, rfried.dev@gmail.com, bharat.gooty@broadcom.com, rayagonda.kokatanur@broadcom.com, trini@konsulko.com, Maxim Uvarov Subject: [PATHv2 2/9] net: sandbox: fix NULL pointer derefences Date: Mon, 25 Dec 2023 21:39:22 +0600 Message-Id: <20231225153929.8284-3-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231225153929.8284-1-maxim.uvarov@linaro.org> References: <20231225153929.8284-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Add additional checks for NULL pointers. Signed-off-by: Maxim Uvarov --- drivers/net/sandbox.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/sandbox.c b/drivers/net/sandbox.c index 13022addb6..d91935e032 100644 --- a/drivers/net/sandbox.c +++ b/drivers/net/sandbox.c @@ -65,6 +65,9 @@ int sandbox_eth_arp_req_to_reply(struct udevice *dev, void *packet, struct ethernet_hdr *eth_recv; struct arp_hdr *arp_recv; + if (!priv) + return -EAGAIN; + if (ntohs(eth->et_protlen) != PROT_ARP) return -EAGAIN; From patchwork Mon Dec 25 15:39:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 758221 Delivered-To: patch@linaro.org Received: by 2002:a5d:67c6:0:b0:336:6142:bf13 with SMTP id n6csp2709922wrw; Mon, 25 Dec 2023 07:42:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IGIQlfnp+HTgGD3lTsvSsYeFbOklfItbvdkHSvdChnBodyYQ0TXWsvsQ1wu3QPwt3r9liUe X-Received: by 2002:a05:600c:4e8a:b0:40d:48e1:a634 with SMTP id f10-20020a05600c4e8a00b0040d48e1a634mr3003653wmq.38.1703518939071; Mon, 25 Dec 2023 07:42:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703518939; cv=none; d=google.com; s=arc-20160816; b=cKho0crhzIdwuulQ85TOhiQpzbsBIwZ2sIsqHbSJyqEsXSYp45bW+DJQiFziBMDkn+ JtbF4RN7+I3Pl5Ye7cHQjqRMWLg7kuOvQaPgdDAkmtItke9E22N1H+CoEtfeE+Cw6d/I Un5/j6rfXUjRoOuSAJcvgHorYSeolEp+YAA7E9hKfRhltjM8vI2aL3/6Q4TtS9mefGJm iJ1RzKaOjr5o7tga0zCPh1W1aw+ba7qt64Fe9mBTZeqsbO56N1p9XleR/9vVrAnD3Djn GCU3T4YQlIpVKq4+OKXAoOdSS+S8YkrdUXy1WEyMIY+z3L8R63WcC804hccnctQcZ40t vNeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=4RT7RsSzsdLSxuFFY+pzbV0GIbjwfPtWfJC6y2Apj2w=; fh=al8TO5kxNSCLdK6Wct4/S1Ky9QCKGaknFfrx/Rr/20U=; b=XXT4dyNj8KHvaioq9c7AlyGKPKLrpotTqY9lkpGnGFOENc6xJ1LOECGGS3DnXSK6Bf gsDihOpzm+QK7I+EcEJbwbRcRixrJzC0NVf3Jq5NQv6VrAIW2MZLZ0bxKx4r2G5crBv5 Mwf8F+oxRI4PTj6rLglQBhYYFhE1Ybr3LS59oP5yJIuNPVNXb1yvQr5mYcIdcAhod0gr J5KNC6x9lyn6FjUL8ymNZ16px2u1W3uTheomXzE1xJdL0qTTNOy7nCwUwRH6eP9Tybr0 j0PJ3rDZ0LqpWqwpp2Sx+f4HxHsObFmi5eO36MC/WS6kceFJnC28+bS5X72uZcCIXAAc ofCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=soqaoj3s; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id v18-20020a05600c4d9200b0040b37eb5974si7242768wmp.117.2023.12.25.07.42.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Dec 2023 07:42:19 -0800 (PST) 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=soqaoj3s; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B2DC3877CD; Mon, 25 Dec 2023 16:41:57 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="soqaoj3s"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C180A877D3; Mon, 25 Dec 2023 16:41:56 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C600787767 for ; Mon, 25 Dec 2023 16:41:54 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-3368b1e056eso3461103f8f.3 for ; Mon, 25 Dec 2023 07:41:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703518913; x=1704123713; 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=4RT7RsSzsdLSxuFFY+pzbV0GIbjwfPtWfJC6y2Apj2w=; b=soqaoj3sJN/jw9wPQVETqwkSAa7pehL9JwLHPvTg87fspRJy26QDFyuQEZz9B2LH8v fVHRmAUqUgj8cdSHidYCqR52J1OmSgEVA1Nu3pxcsxrUj/GKcLbXFtRoEQQRUKtVOjsh ApKJx+XjWInrwHgTF5fQPvMJntqrpgRKFLYIWH9hm+Fu2D6tk87+/9Vj9Q2Bk3zvq8fE BVcjcX7VhfZPVFgLbJOZ27ijYtJPVea+xS2EoDHXbcsMsgVTNX2bjBJbZVBUO0PeXJW6 HlYO3QkdEvtyMva9x3FB2M+fpwjkGFKFnPdaMnfHGQ0DfZjOWLvJGwgudqrzLnZe+RWD K4tA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703518913; x=1704123713; 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=4RT7RsSzsdLSxuFFY+pzbV0GIbjwfPtWfJC6y2Apj2w=; b=vnk6eu1nyLG4q1XOi/MkcmOIvOUY7bjCLnuh+NoI9V6aKN03BCrF6e43nVXBWGhDSC +TUvebKCQ6YJtH7AmB6P7t6fKW5rccClofL/FTJpgQn7x8tXFUdVTon6VK7P/x9kVk4C l/uM8qOl1jzICQ6eRY+ZQ0B9osLKfa6mkHZI7H4BptMjoi1e3+6UCvf/EfbSo93wa9uR 4LKDf2xCBDYJCmTk2Bdq9W01Wu6nnvcN1Ps5hMAuZ/HUMOcTaVeiUjuL0RWLvfTgpmLt 2OrV8HEpHwxzNvIpjHIPNrzV7ym5ou+XiGPLMtbsNaeYTfXTHPb/vR5IxcaSZX0fQCZ0 6C/w== X-Gm-Message-State: AOJu0Yw1OaHgjYE+G4TStQt1bkty/kx26/Tui1XAMIYQEDBzC83u0w/J g/gKc7ysZqyQoshy1/PLyDKJjAjmFxgkbQAYaXWEyyud1NU= X-Received: by 2002:a05:6000:1369:b0:336:74e1:455f with SMTP id q9-20020a056000136900b0033674e1455fmr2754270wrz.38.1703518913519; Mon, 25 Dec 2023 07:41:53 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id a17-20020a2ebe91000000b002cca6eafc44sm1425644ljr.113.2023.12.25.07.41.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Dec 2023 07:41:53 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: simon.k.r.goldschmidt@gmail.com, tien.fong.chee@intel.com, sjg@chromium.org, joe.hershberger@ni.com, rfried.dev@gmail.com, bharat.gooty@broadcom.com, rayagonda.kokatanur@broadcom.com, trini@konsulko.com, Maxim Uvarov Subject: [PATHv2 3/9] net/smc911x: fix return from smc911x_send Date: Mon, 25 Dec 2023 21:39:23 +0600 Message-Id: <20231225153929.8284-4-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231225153929.8284-1-maxim.uvarov@linaro.org> References: <20231225153929.8284-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean return value of smc911x_send is ignored, but on sucesseful send we need return 0 and or error -ETIMEOUT, not opposite. Signed-off-by: Maxim Uvarov Reviewed-by: Tom Rini Reviewed-by: Simon Glass --- drivers/net/smc911x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/smc911x.c b/drivers/net/smc911x.c index 5c5ad8b84a..616b7ce174 100644 --- a/drivers/net/smc911x.c +++ b/drivers/net/smc911x.c @@ -403,7 +403,7 @@ static int smc911x_send(struct udevice *dev, void *packet, int length) ret = smc911x_send_common(priv, packet, length); - return ret ? 0 : -ETIMEDOUT; + return ret ? -ETIMEDOUT : 0; } static int smc911x_recv(struct udevice *dev, int flags, uchar **packetp) From patchwork Mon Dec 25 15:39:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 758222 Delivered-To: patch@linaro.org Received: by 2002:a5d:67c6:0:b0:336:6142:bf13 with SMTP id n6csp2709985wrw; Mon, 25 Dec 2023 07:42:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IGtwEbBSjEfcsZMOXtDg8oCBs6XTv3oJ8QWFniXHiAdrzVXBCAUJfkk0G3z4UxHChe4sr+W X-Received: by 2002:a5d:5341:0:b0:336:8485:d870 with SMTP id t1-20020a5d5341000000b003368485d870mr3284467wrv.65.1703518949051; Mon, 25 Dec 2023 07:42:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703518949; cv=none; d=google.com; s=arc-20160816; b=aMTQg1X4Z+Bd6MNVfYE0lapnYAe93ayRfFZZLqw2fH8bn+OeldKkh0ypZH0js+xjaT tY35g8zFZLxZ3QRLHwMEsQALyMzKQ+8+Srq5/jKIxTbl6uVKxrc4Zuk+ummIUBaGy/Ve lilJwNHZOJYPFebbwef7JkiQjK+03bFpVf4Gf6gpwsxgeW9IFTVCdYTmD8nNanVgpjWf MOiVW22NrGeLw/h2azSGw7/es0NN0GjRDG+GAmDRzmuyxyjYHdS75Hj1SYPBlGXm+nVx h1F6fRq/neaRQpQh6NIRTyIyo2VDwgOS0dx+QihpzSCJxdO6ZODEB5c4LvzrRsUO0dIM z2Rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=gahorcfoNv+yyzQwl9V0XMJNPRbMhyFuJjPHNmT7iCA=; fh=al8TO5kxNSCLdK6Wct4/S1Ky9QCKGaknFfrx/Rr/20U=; b=yMV5pDvnWXrcF8c2/DQd0wiiLimz84d5OK8/p9nZRQJG3BpxDL+bA8RNxEHXsCf/3C GD7uyFC0pTwmOM6PeUlUVwSKngZUCwch4wACIsrWkuiL5yBeGiNaZLlIHUgj010XU7vT E10iK0YCpuXeeGul2jjM56TAaStwuq/XONB+mo00c0bQZI9VcB9b7958yDQYMp82aYkj cQ85CEq47ZA3kiumRAeN0rb1YG2+9Cn3bQr3BrMFyR2wWtQiqcSoEZWo6xx8f0grGBiM KkllD1A/NAmgtkLIEH0xZ356WHFtZDfiG+5rIgYpPQbZgqj4QE3KH6OMoIU0vcnJS8Qq pXpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G4L136ZR; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id g17-20020a5d46d1000000b00333312046e6si4905677wrs.836.2023.12.25.07.42.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Dec 2023 07:42:29 -0800 (PST) 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=G4L136ZR; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 401D287767; Mon, 25 Dec 2023 16:42:01 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="G4L136ZR"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C829787767; Mon, 25 Dec 2023 16:42:00 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) (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 D16EB8773D for ; Mon, 25 Dec 2023 16:41:58 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-336c9acec03so405956f8f.2 for ; Mon, 25 Dec 2023 07:41:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703518918; x=1704123718; 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=gahorcfoNv+yyzQwl9V0XMJNPRbMhyFuJjPHNmT7iCA=; b=G4L136ZRAo2zFjcftZq7mnVY0CMWH5P3XbctSMLw8IxmR1pZ8a20/cgEkmMXXiBJun 3DZZuX8PwnD+9Ny5VUeUDPRuoaVEB06ueHi+2iqcS1eM8OtbO14QizbEu1bxJmZSx43e mCZGcGYYiGOsoUDRGdR7km/Fx5GUOi2LxvRKQ7pGOt/mxWwtz1Kn3ejy+D6gXEQrbH42 fcIxUwbq0DqbM/SJ3oxV8ET0kK9UFPc0PHz65Y3cg/yAG40A5HU3uqBTJQe15JEM12sW RcEzVHY+L6/XAq+YQCNAlcXFQybrQD6Y4jJV9X4KjdXDITeQUn1C086t7vO1IoYfh1Z6 t6uA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703518918; x=1704123718; 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=gahorcfoNv+yyzQwl9V0XMJNPRbMhyFuJjPHNmT7iCA=; b=tPy7dWajFSOGPsym4UnVEb5Qify3gfY4BUqeg0WCqt/CGS93p4pKH0LSXAo2OBnkNn CUb2wHKwRIf0sJvNG9xKOE3Hvyg0kOrN4OVNhz57P6tbS+trEfeQPwMJSy70AzkL1W2e AfZpcFOTiLiU/fLzrf2ExLff4YA8x/KBceAaMXWm6OpGA2XI7bOKwZc+a3phbJtUNqi2 UUnVE0c5oG3MKisC6tc7aNo3njTM/dnpfO6QBGP9e+yzxJye7ca5stSylCV6VQmI+OmN kGyksRujnwfkLPyEZIVDrWwBIYKIZtDtQ7vK+wKJpCE/pOeJM1lYQVJWK+k0KIQCZM0V FBAw== X-Gm-Message-State: AOJu0Ywb0nx4612qtxlqHzltUyWngEoJc4QrNauHxoEHFIfT/gbwjj5c XBa47696dy1sHSk/AYXHB0ywq/+KgCn0Q+Uaq9kP55y98tw= X-Received: by 2002:a05:6000:1081:b0:336:607f:5c9d with SMTP id y1-20020a056000108100b00336607f5c9dmr2940270wrw.16.1703518918210; Mon, 25 Dec 2023 07:41:58 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id a17-20020a2ebe91000000b002cca6eafc44sm1425644ljr.113.2023.12.25.07.41.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Dec 2023 07:41:57 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: simon.k.r.goldschmidt@gmail.com, tien.fong.chee@intel.com, sjg@chromium.org, joe.hershberger@ni.com, rfried.dev@gmail.com, bharat.gooty@broadcom.com, rayagonda.kokatanur@broadcom.com, trini@konsulko.com, Maxim Uvarov Subject: [PATHv2 4/9] sandbox: eth-raw-os: successful return code is 0 Date: Mon, 25 Dec 2023 21:39:24 +0600 Message-Id: <20231225153929.8284-5-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231225153929.8284-1-maxim.uvarov@linaro.org> References: <20231225153929.8284-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean all network drivers return 0 on the successful transmission. Signed-off-by: Maxim Uvarov Reviewed-by: Simon Glass --- arch/sandbox/cpu/eth-raw-os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sandbox/cpu/eth-raw-os.c b/arch/sandbox/cpu/eth-raw-os.c index e59b96be5f..92c35aed95 100644 --- a/arch/sandbox/cpu/eth-raw-os.c +++ b/arch/sandbox/cpu/eth-raw-os.c @@ -256,7 +256,7 @@ int sandbox_eth_raw_os_send(void *packet, int length, strerror(errno)); return -errno; } - return retval; + return 0; } int sandbox_eth_raw_os_recv(void *packet, int *length, From patchwork Mon Dec 25 15:39:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 758223 Delivered-To: patch@linaro.org Received: by 2002:a5d:67c6:0:b0:336:6142:bf13 with SMTP id n6csp2710040wrw; Mon, 25 Dec 2023 07:42:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IHrUsur7ziB9CUMLSSdTu6P62u0hAA4/hUQZ5YyZ55p1Alx7CBBHP75EMoIFjCfndE9jSEV X-Received: by 2002:a5d:5f4d:0:b0:336:c9a7:2e97 with SMTP id cm13-20020a5d5f4d000000b00336c9a72e97mr623082wrb.91.1703518958774; Mon, 25 Dec 2023 07:42:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703518958; cv=none; d=google.com; s=arc-20160816; b=C1jVl2m6FGw/Oo+RQ4aOSEHCtK+/huHIBWJ0xHV9icxdPlJ8hZy+UurCktE8l6kJfZ EpqfsBxWT5QJGiIvCmLOia6NlJG+09BNepvuPqZ8MkLxQxTS3N68k+OKCa3zVkdcqqWI 94g5qPHaIDHJXPLtyl/DhzsqLcHVTQYIps7pD0QXIIu+FR3mGAfHCkjd39WnADENdZmr 81kJ4Qzxe5Y9lJr1dO/lTk4XtBEfCUfvfpIvElEI7blmf1Lgvesclkn08EiHNxTsX9Zk pSfgyNBNn65HQKqih+LkKXjLlv9TN5dyrqyYaeF5APCESpizh4+wIgjMnCCMZ/FqPDJJ AwVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=LnYpx4HXF0svwPxtFe6zqQqGLbu3MtOtMdMlY/7OJ0c=; fh=al8TO5kxNSCLdK6Wct4/S1Ky9QCKGaknFfrx/Rr/20U=; b=R+J9bA/YKP5R1iDdXdL74E7H7hVxmjnNEiaBWm6chttCfL6oW4K138ltuy4V6H7Trf spGSD+Vcg0556jJU6HctlHEQbTXGMVJ6qBgSIjayXeNpS0DGu0Lyznq6zm0jrDygmw7h Zgkq8gckjIKo02+P4PpUddcaqT4anT0pAh7Rw9+3OenIkEuvtRTyFVXAwW2fe+Awed5T BNsuEiGCiHkB52j6TYJx5R5thI6wqTz3j2LE2SOg1biz12V0TL537uwY6MXvn1fVDrlW 7J2srUBA0FXLoiRhwPYMVoAMKjdZ5I4/OO5th5J3M2oSyyUGf/KhZH+HdUQQywuq66QZ Casw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MkeUzDsd; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id e6-20020a056000120600b0033675614efasi4871131wrx.834.2023.12.25.07.42.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Dec 2023 07:42:38 -0800 (PST) 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=MkeUzDsd; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0374587805; Mon, 25 Dec 2023 16:42:08 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="MkeUzDsd"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E556587805; Mon, 25 Dec 2023 16:42:05 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) (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 D31288744F for ; Mon, 25 Dec 2023 16:42:03 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-50e49a0b5caso4171368e87.0 for ; Mon, 25 Dec 2023 07:42:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703518922; x=1704123722; 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=LnYpx4HXF0svwPxtFe6zqQqGLbu3MtOtMdMlY/7OJ0c=; b=MkeUzDsdOezZbPjP1Ofn/4+ZyQea9tlCpBmMSXToGh9ddE0PFtyB/NQUuViteEqO8D jbHlPFhQz3g3cmGs1Wl1II9lhXRhpze7vyAKFERHnzG+WeRKHeKHuEfnyLzHLbhftkcH Jap34OWDmmd5NvLjw2ZB6j8i/a+/dW/H17KtsaqMGrkwhnVVrat08pmP5nXAeclNhDAu VxLmEuqj0Ta5VW3frEgs3ymon+F08JfPAAYByYFzVoCwFl/wVswDGhebU3KyGgbf8X+S EoyDJGI1UTZlex069K7Fg5LjrowRWtgHbnnDd96Q8BMVgYciURk4uAgKgBkNDjB+07I/ IyAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703518922; x=1704123722; 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=LnYpx4HXF0svwPxtFe6zqQqGLbu3MtOtMdMlY/7OJ0c=; b=VkCDm3N4HPngc5VLc98kvnuYxcdwGKJv+Qi9jwL50UrTJKzAONPj2ZcJ5opmj0fH+7 TKI/GG+h9VYzzwNNICnwdvPJQB/K4bgECHQzPSTj1ypVlRJ65FAvO0WwvoJBBYf/AxnC 7zQhKGVTU77SbQxG1MnRhdPKv4wEFS9/b+LdbACcpp9cpg1MB5n5ZPTl3/W2yAQ3usN5 utN7ToPKfTXvIbbolmxTD6Am1QaYC3wINdEhQmH6La9AQGNIzgDZZ2C7QfVlVulSkHOg e8bAlA6dceYSGQ0+oG2ICW5Xlkj6yU7oJs5PwcUKpQNP8Ei8EK1jbmyoY+e/ML2fO7jC YA2Q== X-Gm-Message-State: AOJu0YxM6IrudCB4mLF+nIk74HatlGwA2cR/qaNnlnULmwdo5tDaodoD DbANdW12XDPcg6q1U8FrEzwGgsl/eIQbUzZPIT+FeGIYEAw= X-Received: by 2002:a05:651c:2059:b0:2cc:80ec:5dc5 with SMTP id t25-20020a05651c205900b002cc80ec5dc5mr2008424ljo.31.1703518922555; Mon, 25 Dec 2023 07:42:02 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id a17-20020a2ebe91000000b002cca6eafc44sm1425644ljr.113.2023.12.25.07.41.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Dec 2023 07:42:02 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: simon.k.r.goldschmidt@gmail.com, tien.fong.chee@intel.com, sjg@chromium.org, joe.hershberger@ni.com, rfried.dev@gmail.com, bharat.gooty@broadcom.com, rayagonda.kokatanur@broadcom.com, trini@konsulko.com, Maxim Uvarov Subject: [PATHv2 5/9] driver/net/rtl8139: remove debug print Date: Mon, 25 Dec 2023 21:39:25 +0600 Message-Id: <20231225153929.8284-6-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231225153929.8284-1-maxim.uvarov@linaro.org> References: <20231225153929.8284-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean debug print delays reset of the driver. Finally I see bunch of "rx error FFFF" errors in the screen. CI can not handle many prints. While network works fine there Reproduced with: make CROSS_COMPILE=sh2-linux- r2dplus_defconfig all qemu-system-sh4 -M r2d -nographic -serial null \ -serial mon:stdio -net user,tftp=`pwd` \ -net nic,model=rtl8139 -kernel ./u-boot.bin Signed-off-by: Maxim Uvarov Reviewed-by: Simon Glass --- drivers/net/rtl8139.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/rtl8139.c b/drivers/net/rtl8139.c index 106bc1c7ae..d8f24ec81a 100644 --- a/drivers/net/rtl8139.c +++ b/drivers/net/rtl8139.c @@ -453,7 +453,7 @@ static int rtl8139_recv_common(struct rtl8139_priv *priv, unsigned char *rxdata, RTL_STS_RXBADALIGN)) || (rx_size < ETH_ZLEN) || (rx_size > ETH_FRAME_LEN + 4)) { - printf("rx error %hX\n", rx_status); + debug("rx error %hX\n", rx_status); /* this clears all interrupts still pending */ rtl8139_reset(priv); return 0; From patchwork Mon Dec 25 15:39:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 758224 Delivered-To: patch@linaro.org Received: by 2002:a5d:67c6:0:b0:336:6142:bf13 with SMTP id n6csp2710102wrw; Mon, 25 Dec 2023 07:42:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IFlhcJWqqJDp957JfjW+T/2SxPijYYnZ+Zl/TQUDSr61c8zBcI3M7oO2RfxSk1oIZhgdBb3 X-Received: by 2002:a05:600c:4593:b0:40c:2734:13cd with SMTP id r19-20020a05600c459300b0040c273413cdmr2281607wmo.43.1703518968931; Mon, 25 Dec 2023 07:42:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703518968; cv=none; d=google.com; s=arc-20160816; b=Qu5TmLfjPF6wVRQYGurdhBiqBKkdCL9K34zbO8qktxoxI+rj5mTJu3UgbdjfffDn/H trtDzmY7I+ZUpZibac0n1TnzeOUF2egFAo+0xhN2Vwix0cRqTFL7422Wc7eq2egDMtlh 5MEpnRQPjfFYnIoQiF9eaKheqYJjbXmcMmDy1dki17R3+qtpqqiXPTDTj4Jlxnjx5qrH KEHUldsj3n7sYTqAirjeFH5ZVzhH8agtAGl5NQvI2j4Ylrx+QTxIQmzdR0volJ9v9wS5 +rkW6DKdsH4eJ26ITeTSC3RhzuG8pcMPoX89PI7Svd7rG8Tz0FuBFX3VAQTbVJOx/yqh 8+jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=MxFJwKL5zDs8b5aiVb6q3SDjOsJLBc/cfLiOxsIC9AE=; fh=al8TO5kxNSCLdK6Wct4/S1Ky9QCKGaknFfrx/Rr/20U=; b=jd/IjW4emvfJMdffIZB3MZqmhQDD5pRp9eRrR200Ti+6HJ+FYj1/hvS2urg33bW61f 9kgE+JhKNxwgC8edB3mDPVALemoIiaFOGKnSYmGB2DBL1xkrhKv1gf9rd+OnuxeERRrf f2ft7IAOlIpyu+ycVhgd2mvek8qKbfgcjDa5EA+8j3Q2S9/ZuWW9H7D/yl0uiha7Hr0b /dfWBQ040JSgeUgqD9pgbvikZre8TpLXBfC6nTQJDPoj75SpaHli7FP9JSMAfK33mCic X0PD/epHPt92XouizAfWGcyxTaCsMXvnPw7kLf4KYN6WYDs1+97j9ZTBZIkXOzMpAr3l +KLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="fTWi75a/"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id e40-20020a05600c4ba800b0040d2da55815si6843080wmp.26.2023.12.25.07.42.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Dec 2023 07:42:48 -0800 (PST) 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="fTWi75a/"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7C37987808; Mon, 25 Dec 2023 16:42:11 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="fTWi75a/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 021678780F; Mon, 25 Dec 2023 16:42:10 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) (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 F004D8744F for ; Mon, 25 Dec 2023 16:42:07 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2ccb923c4d2so11322711fa.1 for ; Mon, 25 Dec 2023 07:42:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703518926; x=1704123726; 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=MxFJwKL5zDs8b5aiVb6q3SDjOsJLBc/cfLiOxsIC9AE=; b=fTWi75a/dZ5pOlid97zusdR7OQemOXJvph9PjjcbNFAAfgZ2OnPunWnw7WFf1/sihd nTomjFcIcLfR2okjrsox1Foyky9+dXZ3CvtbjvnBcn643xQOuFMeXGccbv4c5po5n4vC l3SiXR/gvLLVR/NF9nCCBGhpK3/yQcDOPwhKYWpupbQzW0pDSbGRAKbV31/PyNcCZoSA HIbHA7UPGl7/wdq8a1meUVTeBrC/iEO5Wsymo1ZSQCeXAM9HVlj09+IP9oXu0AhpzXWM uTZBDTIAlKMe1wQca1t7DxW2secM2hrkuxsd6qBEgt4rZRd4OUJmRxbT+8+tdHqkVRDM E1DA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703518926; x=1704123726; 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=MxFJwKL5zDs8b5aiVb6q3SDjOsJLBc/cfLiOxsIC9AE=; b=cuzJZGAQS8dcbW/UbSTUzNri+hFWNEwqrLZhJXnwedSr6wflZTVl+j26tZY8ADbyjD ZppRgA1HQJOMUp1zdFSX8TqUJ6SRBDyCWbXSt9GXS9x6gp9mb5If6Fg+UwQAdANFRAgG 6xw1KOor1r/Ci8DOaHsrQvQChrFBBBDGB22Co2fp0/fRg+U9doCrugERpU33WwbVT4rE jZkgEgvg1XsFemaOv0JeWyeaIOvlKMUL4hUdYVJDIjqUsU5pUTDUZKmW5P83xyJEsAhi m9gVk27HpPkQg4L6M6S9lqH/j68yGDRkzR1gRMvUVxaWl2Z64On3PXMvi4KZPSnzITCo xp4A== X-Gm-Message-State: AOJu0YyZhEPXpgGM/V+Bg5QsYNmzdl5EJeQavBSWdjnGlQNELFu3Yypl LTM2++Cm4Zq/HRIplDnI+y/I6NOrqg/g5KA8DCbe7PBYkVM= X-Received: by 2002:a05:651c:227:b0:2cc:8b49:6dbb with SMTP id z7-20020a05651c022700b002cc8b496dbbmr1439501ljn.62.1703518926692; Mon, 25 Dec 2023 07:42:06 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id a17-20020a2ebe91000000b002cca6eafc44sm1425644ljr.113.2023.12.25.07.42.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Dec 2023 07:42:06 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: simon.k.r.goldschmidt@gmail.com, tien.fong.chee@intel.com, sjg@chromium.org, joe.hershberger@ni.com, rfried.dev@gmail.com, bharat.gooty@broadcom.com, rayagonda.kokatanur@broadcom.com, trini@konsulko.com, Maxim Uvarov Subject: [PATHv2 6/9] mach-socfpga: do not overlap defines with lwip Date: Mon, 25 Dec 2023 21:39:26 +0600 Message-Id: <20231225153929.8284-7-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231225153929.8284-1-maxim.uvarov@linaro.org> References: <20231225153929.8284-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Fix compilation issue with overlapping lwip and march defines. Signed-off-by: Maxim Uvarov Reviewed-by: Simon Glass --- arch/arm/mach-socfpga/include/mach/handoff_soc64.h | 6 ------ arch/arm/mach-socfpga/wrap_handoff_soc64.c | 9 +++++++++ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-socfpga/include/mach/handoff_soc64.h b/arch/arm/mach-socfpga/include/mach/handoff_soc64.h index 902fc6bfb5..9b85e5865b 100644 --- a/arch/arm/mach-socfpga/include/mach/handoff_soc64.h +++ b/arch/arm/mach-socfpga/include/mach/handoff_soc64.h @@ -78,12 +78,6 @@ #ifndef __ASSEMBLY__ #include -enum endianness { - LITTLE_ENDIAN = 0, - BIG_ENDIAN, - UNKNOWN_ENDIANNESS -}; - int socfpga_get_handoff_size(void *handoff_address); int socfpga_handoff_read(void *handoff_address, void *table, u32 table_len); #endif diff --git a/arch/arm/mach-socfpga/wrap_handoff_soc64.c b/arch/arm/mach-socfpga/wrap_handoff_soc64.c index e7cb5ea89c..df0701ec85 100644 --- a/arch/arm/mach-socfpga/wrap_handoff_soc64.c +++ b/arch/arm/mach-socfpga/wrap_handoff_soc64.c @@ -10,6 +10,15 @@ #include #include "log.h" +#ifndef __ASSEMBLY__ +#include +enum endianness { + LITTLE_ENDIAN = 0, + BIG_ENDIAN, + UNKNOWN_ENDIANNESS +}; +#endif + static enum endianness check_endianness(u32 handoff) { switch (handoff) { From patchwork Mon Dec 25 15:39:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 758225 Delivered-To: patch@linaro.org Received: by 2002:a5d:67c6:0:b0:336:6142:bf13 with SMTP id n6csp2710154wrw; Mon, 25 Dec 2023 07:42:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IFTRa1dRFOsh3Di1HRaZ8SJ/7bBeZQs40k7OM/BGH32LLAUQBCPJakXOzQb+dyizdJACTKc X-Received: by 2002:a05:600c:3ba7:b0:40c:909:fdb4 with SMTP id n39-20020a05600c3ba700b0040c0909fdb4mr4284282wms.90.1703518979626; Mon, 25 Dec 2023 07:42:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703518979; cv=none; d=google.com; s=arc-20160816; b=i/b8E6kVSMq23Xp1QTxjd7BoCPTObAPt+Hr7Z5utyYwdOGEFWUIiR/lS8CoNAkpx+J 2rmwvPKzlkd/PbCa9u/BYCES6l4QrZY/0vGJl/Sv39VyRD12haDzNdT2o8mB2pWFkKJD ONGle1K1JksrMbGdPksuZxArxSUo62LAPFR5k8FYaRfiP3xPzGL59Rw8iULUI/teXXFc OS/49iIZS8Nn7gdCZ8ufJTekibnQ4STzVTUvYz3WvQ1BHyz+pC5Qy4muu7NW3GTOUBn/ aSc9eals2X8+UwEtqDoQJmwms/HAE9FEfbuiQ7q4SRZZHUksbrl73n0ZJerqxsxTqFe3 ak9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=CvQDLylMZZyItYAARaG/slPihLAB8fb3RjCohXg8958=; fh=du56ke/iOw6lsNCEmJDrBFX+K8LhVFYcHyq+zob6aA0=; b=UXIakipVd2ACVgRlDy28B7BIi0eu3OIZ3fRX7DbwvOxck/I52OtHWIFZeBk5na4rbm 2D1T0G5/JThMAjojAfb/aD+IW1RreteEyhqKWYiYknR48EfqYfzGOxZQfhF0zKgwUor0 yIPBZdmfNlok6hCnETHY2qcu8usStDO4BW/iwkpJcy9zSdFVo7b2nUS8omq7qQIqrFKS qb12hfCaU+l/QZ1+hemfOM3hsS8LzqPUmAblhff7vEyJqSpPITZseqOFucA+a+0oPQVh VlJovwHI1kM24NI/E/XDdOs9oYvxQjldPaJsukalijZtVVz8i93GN1IKRVD1NvVBuxw0 ictA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ff38fPYe; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id fk14-20020a05600c0cce00b0040c3300b745si5363437wmb.162.2023.12.25.07.42.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Dec 2023 07:42:59 -0800 (PST) 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=ff38fPYe; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 15B6E8781D; Mon, 25 Dec 2023 16:42:16 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="ff38fPYe"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E95088773D; Mon, 25 Dec 2023 16:42:14 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) (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 E858987831 for ; Mon, 25 Dec 2023 16:42:12 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2ccbaea0a6cso11969041fa.2 for ; Mon, 25 Dec 2023 07:42:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703518931; x=1704123731; 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=CvQDLylMZZyItYAARaG/slPihLAB8fb3RjCohXg8958=; b=ff38fPYeqzsV/pzlyxOiaMDB/OJZVAawJHfnmWKPcLjh3jQsUDr1gwx68F0mH5epae k0pdMa0BnmPfheRR1wBQctUdUVFL9L2pk/7+jShQRP0SOO94yB4YdsrfP+e726i2tbkv Ap+32nNlDDNslFnztz5TKEh2tHdkqMzn8T14DmwWOo2eNjiMkU0Qz3krMwEFIH6RiDOw /pBkmO0dQEw4zH5T0vQqnl+RWXmA+R178QgtjAwBX/mcT4TI2mPDFfHGYjcE9v9TV3jb 1cKXaMWkWG2HbXKDjeW1RrBIIeT6kDpbRuIqspI2VLqoZkTV6tgAINV6Z2qcZbfc75UN 3XcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703518931; x=1704123731; 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=CvQDLylMZZyItYAARaG/slPihLAB8fb3RjCohXg8958=; b=qBbEInq8BcMrWY5mDOVcMAPDYBaZROfUeWLNDF9f/+hdvoGD9BWo6UIeW2J1VMIJyp FqSeaFXh1EzpD06YKMDtIi+Hv2CyTlhla7Kz4espb1u3NEE7/Jn5FstWX6I0RL+92lTc fln4QdpRiWWcDhoH14KOrsjJgldzQwLRApZtx+H5L37FRB/rKSMggIzpr3Lp0dPCozbZ 76ZS8AqfTY0uwWRC0Yay4qaMoa0Fs5Gfd0M3n2pSwOKPCPAxEDVP58T6m6Rm+a3Drbqy UWvrstgaVqpX3+hTVBt8rtPRVn4oBDAcnsix0NzgaTQQ/GkOc406WXGOyNKGz+nQ/Lex qNog== X-Gm-Message-State: AOJu0YxrUJlHDDv0uptnZJiZz02b4So/aZgxUItaaT92pzxa1EW57yxH YhmTl4fDLGVP7PoIdj57PnsDremiG429s/RLVWEJhKjgoCI= X-Received: by 2002:a05:651c:2044:b0:2cc:9ec8:fc60 with SMTP id t4-20020a05651c204400b002cc9ec8fc60mr2030658ljo.9.1703518931649; Mon, 25 Dec 2023 07:42:11 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id a17-20020a2ebe91000000b002cca6eafc44sm1425644ljr.113.2023.12.25.07.42.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Dec 2023 07:42:11 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: simon.k.r.goldschmidt@gmail.com, tien.fong.chee@intel.com, sjg@chromium.org, joe.hershberger@ni.com, rfried.dev@gmail.com, bharat.gooty@broadcom.com, rayagonda.kokatanur@broadcom.com, trini@konsulko.com, Maxim Uvarov , Peter Robinson Subject: [PATHv2 7/9] bcm_ns3: use device specific naming for variables Date: Mon, 25 Dec 2023 21:39:27 +0600 Message-Id: <20231225153929.8284-8-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231225153929.8284-1-maxim.uvarov@linaro.org> References: <20231225153929.8284-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Use device specific naming for variables so as to not overlap with common function names. Signed-off-by: Maxim Uvarov Reviewed-by: Tom Rini Reviewed-by: Peter Robinson --- include/configs/bcm_ns3.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/configs/bcm_ns3.h b/include/configs/bcm_ns3.h index 47de4bc201..7c6e0725a6 100644 --- a/include/configs/bcm_ns3.h +++ b/include/configs/bcm_ns3.h @@ -45,11 +45,11 @@ #define PCIE_ARGS "pcie_args=pci=pcie_bus_safe pcie_ports=native vfio_pci.disable_idle_d3=1\0" #ifdef CONFIG_BCM_SF2_ETH -#define ETH_ADDR "ethaddr=00:0A:F7:95:65:A4\0" +#define BCM_ETH_ADDR "ethaddr=00:0A:F7:95:65:A4\0" #define NET_ARGS "bgmac_platform.ethaddr=${ethaddr} " \ "ip=${ipaddr}::${gatewayip}:${netmask}::${ethif}:off" #else -#define ETH_ADDR +#define BMC_ETH_ADDR #define NET_ARGS #endif @@ -749,7 +749,7 @@ OS_LOG_LEVEL \ EXTRA_ARGS \ PCIE_ARGS \ - ETH_ADDR \ + BMC_ETH_ADDR \ RESERVED_MEM \ SETBOOTARGS \ UPDATEME_FLASH_PARAMS \ From patchwork Mon Dec 25 15:39:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 758226 Delivered-To: patch@linaro.org Received: by 2002:a5d:67c6:0:b0:336:6142:bf13 with SMTP id n6csp2710208wrw; Mon, 25 Dec 2023 07:43:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IG9Tf5ZGYsPi004aNCqbgVzeUJLViLxqkdy95dvX0hESKCQM4Yp8xk3h7IrLakqYSGN0fMq X-Received: by 2002:a05:600c:a45:b0:40d:37d0:e66 with SMTP id c5-20020a05600c0a4500b0040d37d00e66mr2396376wmq.258.1703518990079; Mon, 25 Dec 2023 07:43:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703518990; cv=none; d=google.com; s=arc-20160816; b=HTGk08Tm39TVBSJMafjxBSW5lJCaKW8sZWZpNoIA7HPqSiB9ZH8MUcV2CAEjvmxSyU QXOpTOKxOMuujc+TnI1sQBRs6tqDGCGelFVbLXuUYRCwV8nc9fv3BYDbdZgDkjSOi+6U fIsMl1LrHE9R6g70sU1HgHD/xLAYIjOjoILokm55AN4pvKHm5ehauPZIOne3YVucUbdS CD3Y47lSRAHh/UsyZWGcr1xtqGB0VGI4hX8+GDipuiW7mMIvNvldVN1pISB4eMyjSOY/ +02Wx5Lg7fgsXdYW7zT9iZqY3gGk92DcHIn9nfpHYr1qt67WfDIXJi0Tdo3eOpOXgQjv MAZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=/SLgFjrfnKhrRx66uwyN72RTeQ06CKv9CxJBWJ/pjGY=; fh=al8TO5kxNSCLdK6Wct4/S1Ky9QCKGaknFfrx/Rr/20U=; b=x9+K8hEmj3+QDUT6jDV4CRqqwx9WVYGKVPjFdDQCfQgKgsMpsw7pmtHhMsP+wm/7JL 1nWih6fDhAuHLv3/ttbVQ5Fn0s9P//5F+ln89TCY5DBvmC9AdrKFcEEVufS6FOV60Ygl NKu8vQDaHBKh3pTJP0n5ZdDpjgh/O1xN6LeHK0DxV4C2y68Q7yZYi4N65JrKxRmJ5p2O QieLRQTHdzzuoBXw1ij01pQrfM7ln5JyjmYbijnN1IaJOh2OPja5E4e2eSnjJQnEyGjz KiifikkbynadjsLvjbDeHozc1fTkGP0Wj7opryC4HdT4Z3zr6N2Nn1ZuGAfmKJZqDNAI 5Zbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HUV0narC; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id j12-20020a5d448c000000b003365b0cc3f4si4876602wrq.15.2023.12.25.07.43.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Dec 2023 07:43:10 -0800 (PST) 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=HUV0narC; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 849B18784B; Mon, 25 Dec 2023 16:42:21 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="HUV0narC"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2603D8744F; Mon, 25 Dec 2023 16:42:20 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) (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 B654087846 for ; Mon, 25 Dec 2023 16:42:17 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2ccb923c4d2so11323231fa.1 for ; Mon, 25 Dec 2023 07:42:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703518936; x=1704123736; 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=/SLgFjrfnKhrRx66uwyN72RTeQ06CKv9CxJBWJ/pjGY=; b=HUV0narCP2SOpLHf0xSpSgfyuSZDtXUjCD+Qr2zMo928tm/4PJ67mB75LaziNlCOs2 98Y3UXDyOSajG3xM9DZkda/5F1psnbKSAxf7iT0th89fD34rN+Yg9mg4ueZTmA03vMkV X6m5Ev1EABOvXKhnTbMny6t/3McuF0MqPITzRHAku9LbLuLIKD6uRhMncTyq8/b53Tsr UQKaIjI1qat5n6X0H8v+TCb0RANDuFDddTnEGpO7EqxVxfK1648n40q4UjqMpq3poTuA 46SoKE+UF6xwRagghiD9mY9lq7GVUSdjtHxh7jm72dzPoD4PXmM7BI5oWLm2ElSpwxHG 53mA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703518936; x=1704123736; 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=/SLgFjrfnKhrRx66uwyN72RTeQ06CKv9CxJBWJ/pjGY=; b=qzf0AXA1afMzWbRV3WfcOSlPouovPsgk4eHdLWQT14fsFdAvwpqEIK024tM9SKPcQr T6hfK6J/TDmmZRKcpf9hFxis4VlP2DwCV2BsTS/uRN4knLulCJmRbBJpw+N1mNVGsXnI Q8r2NejW0z3+nw1wjTu26VQDdrkWgC1fq3JF/T/zodrDCIPN/NJb0D5nIsuNIzsbBz1N ocfEYfl8DHffYJ2kOMJ6pZDD3L0Ivt7Wv+xlcQjQoS5l+hGaVeJMxVyDxjX2eOsvUd6X xw29I77GfNp4MUMpGDw5RHuSQwG2HskIbmXW3cAg7lcQ2chq8EkDZJoxyPk7xxHpfam2 XxKg== X-Gm-Message-State: AOJu0YwoT67OaaBxzEe5CPDVsCTb06WaoeWNXEnFZRLs9NVt6fysD+zy WWcx3pOvrfN5ZH99w3zf6eLlZrJSN9mH/5O4tdGHr+lP4f0= X-Received: by 2002:a05:651c:2044:b0:2cc:7868:c200 with SMTP id t4-20020a05651c204400b002cc7868c200mr1197822ljo.90.1703518936432; Mon, 25 Dec 2023 07:42:16 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id a17-20020a2ebe91000000b002cca6eafc44sm1425644ljr.113.2023.12.25.07.42.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Dec 2023 07:42:16 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: simon.k.r.goldschmidt@gmail.com, tien.fong.chee@intel.com, sjg@chromium.org, joe.hershberger@ni.com, rfried.dev@gmail.com, bharat.gooty@broadcom.com, rayagonda.kokatanur@broadcom.com, trini@konsulko.com, Maxim Uvarov Subject: [PATHv2 8/9] omap3: use device specific naming for mem_init Date: Mon, 25 Dec 2023 21:39:28 +0600 Message-Id: <20231225153929.8284-9-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231225153929.8284-1-maxim.uvarov@linaro.org> References: <20231225153929.8284-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Use device specific naming for functions so as to not overlap with common function names. Signed-off-by: Maxim Uvarov Reviewed-by: Tom Rini --- arch/arm/include/asm/arch-omap3/mem.h | 2 +- arch/arm/mach-omap2/omap3/board.c | 2 +- arch/arm/mach-omap2/omap3/emif4.c | 4 ++-- arch/arm/mach-omap2/omap3/sdrc.c | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/arm/include/asm/arch-omap3/mem.h b/arch/arm/include/asm/arch-omap3/mem.h index 569779c55e..fce3568eca 100644 --- a/arch/arm/include/asm/arch-omap3/mem.h +++ b/arch/arm/include/asm/arch-omap3/mem.h @@ -475,7 +475,7 @@ enum { #ifndef __ASSEMBLY__ /* Function prototypes */ -void mem_init(void); +void omap3_mem_init(void); u32 is_mem_sdr(void); u32 mem_ok(u32 cs); diff --git a/arch/arm/mach-omap2/omap3/board.c b/arch/arm/mach-omap2/omap3/board.c index 8b70251457..c76a95dd5d 100644 --- a/arch/arm/mach-omap2/omap3/board.c +++ b/arch/arm/mach-omap2/omap3/board.c @@ -216,7 +216,7 @@ void s_init(void) void board_init_f(ulong dummy) { early_system_init(); - mem_init(); + omap3_mem_init(); /* * Save the boot parameters passed from romcode. * We cannot delay the saving further than this, diff --git a/arch/arm/mach-omap2/omap3/emif4.c b/arch/arm/mach-omap2/omap3/emif4.c index 7e5a281922..4fbfb387ab 100644 --- a/arch/arm/mach-omap2/omap3/emif4.c +++ b/arch/arm/mach-omap2/omap3/emif4.c @@ -159,10 +159,10 @@ int dram_init_banksize(void) } /* - * mem_init() - + * omap3_mem_init() - * - Initialize memory subsystem */ -void mem_init(void) +void omap3_mem_init(void) { do_emif4_init(); } diff --git a/arch/arm/mach-omap2/omap3/sdrc.c b/arch/arm/mach-omap2/omap3/sdrc.c index 5d43e7c9cf..f2a0769b9d 100644 --- a/arch/arm/mach-omap2/omap3/sdrc.c +++ b/arch/arm/mach-omap2/omap3/sdrc.c @@ -4,7 +4,7 @@ * * This file has been created after exctracting and consolidating * the SDRC related content from mem.c and board.c, also created - * generic init function (mem_init). + * generic init function (omap3_mem_init). * * Copyright (C) 2004-2010 * Texas Instruments Incorporated - https://www.ti.com/ @@ -232,11 +232,11 @@ int dram_init_banksize(void) } /* - * mem_init - + * map3_mem_init - * - Init the sdrc chip, * - Selects CS0 and CS1, */ -void mem_init(void) +void omap3_mem_init(void) { /* only init up first bank here */ do_sdrc_init(CS0, EARLY_INIT); From patchwork Mon Dec 25 15:39:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 758227 Delivered-To: patch@linaro.org Received: by 2002:a5d:67c6:0:b0:336:6142:bf13 with SMTP id n6csp2710243wrw; Mon, 25 Dec 2023 07:43:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IGREJ8z2BxDE/lOWstDEBvLSdE7RxbFMMkiaZeSnwus9fc4+Lq/K1Fwh+oO0K9qcsdoPrs4 X-Received: by 2002:adf:d1e6:0:b0:336:cab9:686f with SMTP id g6-20020adfd1e6000000b00336cab9686fmr580037wrd.51.1703519000191; Mon, 25 Dec 2023 07:43:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703519000; cv=none; d=google.com; s=arc-20160816; b=aqse8HwUwPHjIX2WgcZHnKBvP+BElG17sz3plLy9m/k5ESJX67gBNTP1f+LoSSeyFF LAQZk0Gupz+a5wG/byqWQlihaK+Ue5S1LaP+RYOKNI3k2EmSvfbphg736uWZNfD8Lzak r5BoU46O5bJI7qbLR6/8qbPVrdYmsnZgr15fahFBRigfIElvT0NRvfzeg/8xF3jTQhfP W7igz7X0zTpcKL4fQXRJO20u3Mec9MEfyD21DQMgRrJrSXRidOLPC1hKsP70w9/B/1AG uqxGrq5f5mLDkotyNSnoT4L9jLus2mvuyZk4iybHfa9+UTwt2YVDJiSF/5Y8sZDtlcos rPeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=St6T7N12zAnPhC+iJ9D85GlFLIcEFMxDRD31qwUyTgQ=; fh=al8TO5kxNSCLdK6Wct4/S1Ky9QCKGaknFfrx/Rr/20U=; b=ja6d2/c7d71bVPc0wN/18HYRnr4mo0Kj7k0/r+VMaWf8SrMHkdWvkthF0/QZDAy2g8 SnOwekDfuz2gFKuRNum/LWjE1S1Wi/6FUZy7DPQNR5ZV7YLJhPjZ0SwObpsj77NhgZLa 9935G8tkO5g0nHM1fbHeIZj4XiOBroXQpE5oVx4MHO9PGdwcE8SCZ9wpzbyp63BLugh1 i/FKJz5ZqholNsEdBEwVX+MU6v8TAQAveNBfUSs8t/kfOAAYClwtMO7ftRRr79To8qjM /0/pBW3SVVW++qY/PA5emb4DiPdCrk+amoywvc6NTghPBfXaHrGDkd9UKpE3cGEsWRUg YwVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=u1rvfe+T; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id t17-20020a5d49d1000000b003365d2aa06esi4832953wrs.174.2023.12.25.07.43.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Dec 2023 07:43:20 -0800 (PST) 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=u1rvfe+T; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0796B87846; Mon, 25 Dec 2023 16:42:26 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="u1rvfe+T"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1309E87846; Mon, 25 Dec 2023 16:42:24 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) (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 08A668784F for ; Mon, 25 Dec 2023 16:42:22 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.uvarov@linaro.org Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-50e78f1f41fso702264e87.2 for ; Mon, 25 Dec 2023 07:42:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703518940; x=1704123740; 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=St6T7N12zAnPhC+iJ9D85GlFLIcEFMxDRD31qwUyTgQ=; b=u1rvfe+T7HTkgSpdg2LI4t0VYutlnj82qECUXyEWG0fVaWb+dq6/oyYTeLcHGveQa/ I0yWWP2h52xHJJcKyJSldCU+cEM9W9cnLSsNHnbXNnYEr42Vi/PmNQhekohMCBjh0T8C F8M9knZRFLYIdQ02OWv2CMCjdpURW4opANr3cc9sQBo3RaFgfsuo9jnhxNGFABDu3tNZ hGtnoMw1lNP2jURMOQI+wuv6zU1AkCJIUqpCIip0dqrcF7dAb8EN1ZbejHCkBUW6UOKt G3jjyyWQPhHby2GT+qTTXnO/5AdEPMu+qaeiB6SwReCeoZUSZKVW0GxH1txtaaFgsjuL wu7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703518940; x=1704123740; 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=St6T7N12zAnPhC+iJ9D85GlFLIcEFMxDRD31qwUyTgQ=; b=Jmx5Bo3amPP7At3sDPBHy0OiiI3rfxz/QLqyc2DT1Le9I9kOZx1HzGs9QfhPyiL9KT WKJLrxAiK5R8ZT/MQFhp+0lqt8+4aNduBqRvMMJPsrbCeORPW4G8BFcDdjpcdKXGswAf 34c7ZGl81Aw2J2nH0zNlQkodcIZ/UVwpWUutcDHjEV24OlL3PhjiK6Ru+MU5CzvimGZc KUwB04c4Vd8ysXCC47DeCzeIO/XkV/OHCscH6qVVjydNk4GxdE94vIU+4MbDkEGsjOTH EBqUGBs7goHyZrl6c9zWWVV42JVIIxOKcrDleAvvWvfQizD7Pn1IDf/oi7SWIgycTg9G KZ3w== X-Gm-Message-State: AOJu0Yw7afM/oTOmhc58X/oirVae/HcjbKztyNXrs3rnLhUos4DLoa09 2F0xH7ZmK2ZfYdCjr56jojjm931pUQl5Q4BPmXCrHvLELoI= X-Received: by 2002:a05:651c:b12:b0:2cc:c723:9a12 with SMTP id b18-20020a05651c0b1200b002ccc7239a12mr532153ljr.68.1703518940704; Mon, 25 Dec 2023 07:42:20 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id a17-20020a2ebe91000000b002cca6eafc44sm1425644ljr.113.2023.12.25.07.42.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Dec 2023 07:42:20 -0800 (PST) From: Maxim Uvarov To: u-boot@lists.denx.de Cc: simon.k.r.goldschmidt@gmail.com, tien.fong.chee@intel.com, sjg@chromium.org, joe.hershberger@ni.com, rfried.dev@gmail.com, bharat.gooty@broadcom.com, rayagonda.kokatanur@broadcom.com, trini@konsulko.com, Maxim Uvarov Subject: [PATHv2 9/9] Makefile: add dtbs to clean Date: Mon, 25 Dec 2023 21:39:29 +0600 Message-Id: <20231225153929.8284-10-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231225153929.8284-1-maxim.uvarov@linaro.org> References: <20231225153929.8284-1-maxim.uvarov@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean CI test checks that generated dtb has to be cleaned up. Signed-off-by: Maxim Uvarov --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 220411a293..ab603191ad 100644 --- a/Makefile +++ b/Makefile @@ -2165,7 +2165,8 @@ CLEAN_FILES += include/autoconf.mk* include/bmp_logo.h include/bmp_logo_data.h \ mkimage-out.spl.mkimage mkimage.spl.mkimage imx-boot.map \ itb.fit.fit itb.fit.itb itb.map spl.map mkimage-out.rom.mkimage \ mkimage.rom.mkimage mkimage-in-simple-bin* rom.map simple-bin* \ - idbloader-spi.img lib/efi_loader/helloworld_efi.S *.itb + idbloader-spi.img lib/efi_loader/helloworld_efi.S *.itb \ + ./*/*.dtb *.dtb # Directories & files removed with 'make mrproper' MRPROPER_DIRS += include/config include/generated spl tpl vpl \