From patchwork Mon Dec 4 12:04:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 750016 Delivered-To: patch@linaro.org Received: by 2002:adf:9b9d:0:b0:333:3a04:f257 with SMTP id d29csp1087020wrc; Mon, 4 Dec 2023 04:07:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IFajaCH/PgQ6GX5wZSLE9LTpbDx1sWiO9QVLdkDzMHG6vHaXRmlqiK6A3rzlIJsfy1znVR3 X-Received: by 2002:a17:902:9a96:b0:1cf:b4ca:4e79 with SMTP id w22-20020a1709029a9600b001cfb4ca4e79mr1119012plp.17.1701691641089; Mon, 04 Dec 2023 04:07:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701691641; cv=none; d=google.com; s=arc-20160816; b=Q3NORkphX6YG84BRMqlafAQ7Qt+AJrhDDe8ra4eP9U4k+cRjwuWSTbS9FC9zTovONO Pjq0N07XLgMvANsoUHTnjZxD3uWd9/DaUL4ZA3Oh1b1RhFxzkmp2QyTXp1tLD0+u01Mc OSySmlUB9HvN4RhHcDJxnmhs2YQ5EYRfcLgl+qrstFoo/HTgoPc4OtZ+gv8lO3QQuZha mtzhj2B5OlJfnD+MFyeL5BOk9ppSPIVzwd0tDXevhHhbddVfS4elRKrUyB2rU7p5WPXB i7c1RIHErgk3HRJcu+1FvV34x78FyY1G7d/raLtXrFBlr+Zk8hU6JDipZun4hL7ppOX3 s/Hw== 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=pSKhMLASwiZ0R/IY7H3Py59Xhs0BqScwiaoCH7GgjjRotGlm9df4umSGmCIEmPg3aN xNqCWVffOcpYmWuosR6A+b5o6Um94DF9OrXgzdheADTqzF2dBQM4CObMjOqabkQBs1Aa uYrYvMEwHhFoiHlQ13EdM15S8p81zvZkgKoDvdjopvCnTiJ28OPeh+iG36HZTtJqKKgp B6SuSROk+b+CoZCXahFLYLMSXlNi2wqCPc+BxmmQOv8pZRILpVtCffpl/+D+dGm8GbDa X+aJKCtdqqWE2M+n+aqydw3j5i4Z0css5OPfS0KbhVT9PAcCJqq1ZHW2Nj3RTRhDUz3V z05g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uvM2hW6t; 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 bf9-20020a170902b90900b001cc221d40e1si7377402plb.635.2023.12.04.04.07.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 04:07:21 -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=uvM2hW6t; 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 B97AD874D0; Mon, 4 Dec 2023 13:07: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=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="uvM2hW6t"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DC26886501; Mon, 4 Dec 2023 13:07:06 +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-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) (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 D1F18874F2 for ; Mon, 4 Dec 2023 13:07: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-x12e.google.com with SMTP id 2adb3069b0e04-50bf8843a6fso707600e87.0 for ; Mon, 04 Dec 2023 04:07:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701691622; x=1702296422; 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=uvM2hW6ts0vLgGqXsLOtbeJpLodhuKGX8Nm8d73CcCOLrHn9DZP2mHxsnjBuSGkyM7 PZMkFFhIMup5P3z23qltmsoPMN0Ykouk5dEeNmNsuIFQBQ3Xn7aqK2suoqCoLU7OF/yx ETUduSkA9nL0P3pwubzbRI0UAzC2blDEVmcAd5FcHNEFS9FH+xGbPdqslWj233/I1xEw Is7uR6EqtNKeLDm6KhRdDGfrpIIVmUSTME6vO03tNnWFLwrVMLhhpeT02bznhpNbNlR3 V42CqUcxyji4lnKkD/hkqaE47Rk86Cffn0KJ80RxrP4uc+H88CnXBynORf18YukqZHGF f/ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701691622; x=1702296422; 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=oFKNvTRWNO+pT1SjUn84gaZK0fkAbZSRtlrGQeYWRGx+ivQ9ZIusGMQtEP7VSXXZTo cUlEN8vZdpr8CnMQmkOWWi0cRXW1z1cq7UVXn3c9DizKLlTiWuLIP49iMM+uugUvf/Hp Ysf0aKS4/H/TfUL3LX2MyUaToP3vPobLHKNJ4Ie+FHl+pybI1whiVidkSTLF+/E/0cDf HclF666r2jPHH0nKAMx/mwFdhWGWY/+L6gY/6kV408D7z/x9U56/a367Ya3D78YCNPgY Z0Y0fS+c/SsegMZL5eSOMcY3vqqIgouIbCXwwModCnIgobtWxB94OxOs4qETTb9q0NDC lqxA== X-Gm-Message-State: AOJu0YwJsl8LlNV4d/tMf0k+WeH18/9zgJgVkgmpte/qrkf/fWM/br3j MC+f812k49U3diPnAqBqZj22A2HIVRcigysf4pS47g== X-Received: by 2002:ac2:4c07:0:b0:50b:c227:57e5 with SMTP id t7-20020ac24c07000000b0050bc22757e5mr2757155lfq.21.1701691622529; Mon, 04 Dec 2023 04:07:02 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id g33-20020a0565123ba100b0050befebf0ccsm541675lfv.292.2023.12.04.04.06.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 04:07: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: [PATHv1 1/9] test_net: print out net list Date: Mon, 4 Dec 2023 18:04:38 +0600 Message-Id: <20231204120446.3277-2-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231204120446.3277-1-maxim.uvarov@linaro.org> References: <20231204120446.3277-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 --- 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 4 12:04:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 750017 Delivered-To: patch@linaro.org Received: by 2002:adf:9b9d:0:b0:333:3a04:f257 with SMTP id d29csp1087143wrc; Mon, 4 Dec 2023 04:07:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IHKPE7ISO9whMw7tKSSRr4lWZTEhA5R4EFgD1KUS6pTnomIjGLpd5VgzIu17urS6iduvtdk X-Received: by 2002:a05:6a00:150b:b0:6ce:477b:5c06 with SMTP id q11-20020a056a00150b00b006ce477b5c06mr1080012pfu.58.1701691655283; Mon, 04 Dec 2023 04:07:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701691655; cv=none; d=google.com; s=arc-20160816; b=oQO7t03lk/18YrrWY0k5T3Mg36GWy27rpRYZ68BTOVZxr9PePxVmmRqhpdZijejxLj 8UWRApGXOjbhaijjVoGLc761+o3JsDcH1M3DaN8V1qt/ejBSE0CfIbfeUVKUSnPh85vK 1BFeauAco/tld05OpUL+DULQsEaHY0/ifs4hecXlBk9wJrl6wDvnjQJFxA6BGh8n6jS+ Zl7x6MS62n6mXPn2GYQTQMVtaj42p7fhgvJEx4JVf/w9bPu51QxO5h+PQs0+MrgIKlEE ZV2uad6KW7ii3+FQ3NoU+ivrWTCAZdAovHN97/PTz0f+gaUo657Vv4eysRwxnRwe+iP2 up4Q== 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=POWEJ0QM0e9nVx3axW0C4w/7WsP3R73NmTGDFjqVChfLjKhD/stRui0NxdQ9vsokRl WZ040XKr1yXHNoF6ZUFAXtK/JlSO9HWIA0T10H813Q91p/jre00gLGqOeNINGN7fIIvk DpMsmaLXQvswkNY7CpI18G+LIhC9FwXu1O1cm7Nk2i5+LWmxOFCWYlJqN0QpwY8NKWdO BPjU6HeotNI3IApZKAH749hfBoeIN4stYnaNlaRRIaPoqCbZFYnDHWMHzl2CU28TCgen 6+W53vEHNU4NMiw5TIzJtoPUqnV8ZSNXMmZJzkFmYpXRDYjKNS5+yo7Md2UYqNgnfSZJ toPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IfelHAyb; 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 t20-20020a62d154000000b006cbd40b46basi3413531pfl.133.2023.12.04.04.07.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 04:07:35 -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=IfelHAyb; 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 335978759E; Mon, 4 Dec 2023 13:07: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=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="IfelHAyb"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 849BE875B6; Mon, 4 Dec 2023 13:07: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-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) (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 8E4CE8753C for ; Mon, 4 Dec 2023 13:07: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=maxim.uvarov@linaro.org Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-50bfa5a6cffso811121e87.0 for ; Mon, 04 Dec 2023 04:07:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701691627; x=1702296427; 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=IfelHAybv+WIeFbSL3ZkzgOnkrkx/+lVdudaU+YKELDeaiCReV6utpnyv/SPm/+i2A 7fps4U+1TqJmuUvr/lHIR10llzzYmcIMRFTl+eMHvtyGLw2PX+rawhxM7bwreZe4o6Uf mV4s6Z7VQF71AQEUBW/cqaW6fZ46nd8SaLh/6514TgHsQ/LElAksewMG0nNkU5uX1Eyj zY04me3pEkMC74Ub/141i2XN++8D3BxNIVlOFKJHh42PRDeMU1YBtiGG7y/CwITx/L/l /6UlA+UdOQEZAP3MxkkqSItrdNnVP/5z3ZjtbawqW1S93vQakzLjCai9ncpKcoQ85Rkd ZwJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701691627; x=1702296427; 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=bI7JiWCebuDwelx+kiLK6mxlVAT+HklMrm4BBB71Iy7VmVA1a1FLSlSG+CEUmQjNoU oauOF3MhTVyKTriGBpJTfnBkB2v9uNylKhR4KqYTLhg3T6I0bM0BsAIgp2cuH5pV6H5H E0s+5Fvawd2BdkNl4RH5h3p/pMb4xrePvIOupbBiOf1XZR+CVuDxuW0gcJdbQ5oD2J2T yDaSw9DOlo2H3WCak9nn5hriwgAx7V+qHlrPJ6mUvZFQdZIaReMZADyg6j28MnUx+VRo EbbAtmupcIUeaJGsmKMYzsdZB7xximdvqU7vJgyMeZwaFLXklM3TxKvDAgYekKLJ51Py Z3Sw== X-Gm-Message-State: AOJu0Yy76Z7bu8rUgPraXEiPGjSOcHgkO1XsmcjaIYiAuNcC84cc1Ngt qOfG0k0/+ZgiDafcH7li7A56HpJ9PqWZ8XlXtVq/5g== X-Received: by 2002:ac2:4650:0:b0:50b:f084:7c8f with SMTP id s16-20020ac24650000000b0050bf0847c8fmr1049458lfo.111.1701691627314; Mon, 04 Dec 2023 04:07:07 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id g33-20020a0565123ba100b0050befebf0ccsm541675lfv.292.2023.12.04.04.07.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 04:07: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: [PATHv1 2/9] net: sandbox: fix NULL pointer derefences Date: Mon, 4 Dec 2023 18:04:39 +0600 Message-Id: <20231204120446.3277-3-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231204120446.3277-1-maxim.uvarov@linaro.org> References: <20231204120446.3277-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 4 12:04:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 750018 Delivered-To: patch@linaro.org Received: by 2002:adf:9b9d:0:b0:333:3a04:f257 with SMTP id d29csp1087247wrc; Mon, 4 Dec 2023 04:07:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IG80BRR1aUcdfHRiMuqvx04f3hz3YDPlmz98r46CizZIHC0//QQIyBWkYAeuiKSPimaBGVG X-Received: by 2002:a17:902:d2cf:b0:1cf:dce0:4d98 with SMTP id n15-20020a170902d2cf00b001cfdce04d98mr1993641plc.27.1701691670472; Mon, 04 Dec 2023 04:07:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701691670; cv=none; d=google.com; s=arc-20160816; b=EeJw0sonqLqVQFr1xyKezCs7PhYL3HF5oItOHBaB8zVQjFtbx5ZjjQ5k7uBx+GVvXc P7N2QxOM/G0XTQ0ZHfdXot8n97S1kqaE4/yMi/oAS2kSdOiPn/5DMbPV6g3q94AatYQQ okTzLhGjWCw/NC0G+ywQOs5i6lMZnQ/Rz9WcJIVMEccDXLDbgkScsc7sjxUwXbi6DoXw pqeaLNT8dvIehmx6+qbVpUSIr2q8IktcEarUD/WN5Kw9o5E6ZfgPRO53ZRqKQxLHd1jr JgIKdoYRtCsStNx+WMm4tcRDzWXhbdrew93Lobvc1tTE/2TttAG+D6J16O7araO69Njz QJWw== 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=N5E5tYeX8mK3hb0SUQsqHS1omi0kpKHZRwsmTpPA4urdVw1rWSkPCg0ccIG2bInOam jfhW6o23zs2+uRUWKtDEEHmZrOipWytNY8O/71L49prKLLrNfMHy9Ixawi2UD+nml+wR ABgmScTtgO79sQ5CmjfzC17qQ1jJnu1Ce26VKbk8x+6iM55j6OEvh5gR+DHDi5uMHc1M CADNisfLU0EPF0lyol5MdB5jGYOTe3u5kt2vfbhB6MxFtGHoFTBXvL7POJAJ3nzKzRrM g2NVZoKiK6FKulPy4Ml2Kyux05Y8IKM/UdlMLLHy6/EcBNNCiB2ltp4nf38IeO+KUyq4 3BpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=m8j2r7U7; 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 k5-20020a170902c40500b001d082f4bd7esi2918448plk.250.2023.12.04.04.07.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 04:07:50 -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=m8j2r7U7; 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 93FAB8754A; Mon, 4 Dec 2023 13:07:14 +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="m8j2r7U7"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F417387626; Mon, 4 Dec 2023 13:07:13 +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-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) (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 E8B95875B6 for ; Mon, 4 Dec 2023 13:07: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=maxim.uvarov@linaro.org Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-50bfd7be487so452377e87.0 for ; Mon, 04 Dec 2023 04:07:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701691631; x=1702296431; 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=m8j2r7U7Tlu78+KcI5M5vECTV3ttOHGJc+aNKKm4PfmMldtgQCQzhOSnt17TyeiOz+ JWc9GJXcMZTu5aCumEXcmajpHhUNGTI8A3Q6Oww/xUwCMaNUfPSVKuEJI/JX5nEHoF20 jnrJKCH/TJ5JCE1gK/PH21rqPAuRRpWzxbXFoBvO/bsLAkV/Qqgz3kGlIxOngN5R5e/A acGLeYctznlQCCbrUuJNo7yjHETpCFSWEBR6Sd54rkdLKtQ0A55qmcdLSpMMdXtbiG5n ccH04cVNhF46b7yrg/Gz/WCttFrVQvNE4sY//5UAMEeGvoOETP2QivJGkQE7s4ufK+Kn ph9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701691631; x=1702296431; 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=wGlK9wzmwsyRU5jgB5reRDw3EvCnHBtBHoUVC6jr/NBrSPnZxLhkjEmeEx4ZBi9+JK x8MsIduLklYpRVFYg3ga3SCihpi3db1mwgc+IJQzXXnCeJH5J2gte3mxSM96qNbJO2Nd ZuSJ9p28781NrxSil5s57DHkYDTTYSWahPtEVTvzQyujKN52TD9FSJeS2BV18+nmfXIk 1U+ZJYvQ5H3tT2eKfTz060skR4CLmWxksH1t7i+8L1ALFcEpJtV2rwyocs19NHXK020x dOwlyUUGBVwVRL/oKtl7idJxZPotKABY77t+1ujCgQrzYi/5S7tw69+fGlopmChrq6ko b5uQ== X-Gm-Message-State: AOJu0YyBn0U9Uvs+nB/mVZuMwfkCE8AYjql80Kr99K26yzbhOscyOUDY 9Wlap8Kk9Smy+w6AxSX+GxqT93ZgL1lWsHxWP7xntw== X-Received: by 2002:ac2:5185:0:b0:50b:fb28:4530 with SMTP id u5-20020ac25185000000b0050bfb284530mr461861lfi.119.1701691631158; Mon, 04 Dec 2023 04:07:11 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id g33-20020a0565123ba100b0050befebf0ccsm541675lfv.292.2023.12.04.04.07.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 04:07:10 -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: [PATHv1 3/9] net/smc911x: fix return from smc911x_send Date: Mon, 4 Dec 2023 18:04:40 +0600 Message-Id: <20231204120446.3277-4-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231204120446.3277-1-maxim.uvarov@linaro.org> References: <20231204120446.3277-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 --- 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 4 12:04:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 750019 Delivered-To: patch@linaro.org Received: by 2002:adf:9b9d:0:b0:333:3a04:f257 with SMTP id d29csp1087397wrc; Mon, 4 Dec 2023 04:08:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IGMbgHUzOCBn0ma9XY16p8bAbzCIqu/0u9Xzzpc3j1vryJgmBOj1ZIm1m/QGyFsqwDxquEp X-Received: by 2002:a05:6358:7201:b0:16e:33e:3a9c with SMTP id h1-20020a056358720100b0016e033e3a9cmr1969095rwa.6.1701691685045; Mon, 04 Dec 2023 04:08:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701691685; cv=none; d=google.com; s=arc-20160816; b=ua5Luw0Zw6WDouvLYe+1THSRAJk0/bhmqLfTWul5yistIE4fow5CkEcp/KPMnqkyPj /RrlcRq+huov0L+NoVtiGi6RkNfdqsCMJnF9Lbod43ADhlt08Mcs7m8GFL5XECljD3tg fyfN/k9EdQ69EFPtsSZKe3GnXSREXHe0pMJ0vxD4QTAxs1vgrrjh+/vVL+sUHVNuOZLw /HvArbS5pSrZbttpJlpPa8Vb9/Y+44Bs+/fWueg9kLvOJREFeSD47ZfL3cXQ+FWF9PcC BTk0t5dDGq3YiLHtNgkLhuL1c1NVfM9w9BoERP2OoXCS55UsG71t1sFKS8++MlLUABr8 1Uaw== 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=y+mAIaeb8r4X5Vm+ptU09oyJ0eAQljlhAnvXqbPOIbL7j2qyPbty/vk1NUExxEHIdj XIkXm3ehad07suQ/yl/QCi41TXmgAB6IM0BohrYtY2RxFE78GYCvBoLka/46/sccr1s3 Xh82inLEm/2cjj0VUwRdPzMiDQ0djYP6KRi1AHsTn/Gf1fYipU+VcvJy95JjIbqEEIDu PtzzMbBzLNc2jY9SrSq/bvOShwxUq1yLLlypZkh5BVbQsArRBk7yhy0PrUCET1xjXfTY flzBwkFRjHC21WERSD4U2L+QWQe4jJBDlwV8bbZTusJeQ1O38oB/xOalaIsOVc2lzMZ8 kI0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Na5UOZc5; 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 d22-20020a056a00199600b006be55174f3fsi7844963pfl.28.2023.12.04.04.08.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 04:08:05 -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=Na5UOZc5; 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 061818758F; Mon, 4 Dec 2023 13:07:19 +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="Na5UOZc5"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3EB8C8754D; Mon, 4 Dec 2023 13:07:18 +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-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) (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 590A68758F for ; Mon, 4 Dec 2023 13:07: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=maxim.uvarov@linaro.org Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-50bf7bc38c0so952204e87.2 for ; Mon, 04 Dec 2023 04:07:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701691635; x=1702296435; 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=Na5UOZc5Q4ap2gwQrocmhAKB4jcFdBR/SzAEtsTav3+p4QIY8Y5sK0KA3drz4rKBBK 11WHjxsa4XCCunHj9b/1ay0c6faHmYGMaKXIeMgqH8upqwjnP5b8PZzdDMDE3Nh4myyp W3QzEE8bPJ+Io5lPhGGuy1L2eqxa9Tci9b91zuOLxiahrqQmwZHUhzz7RbA7u0URUkHU /7iLdCWhLxBV32BPPmGJl/8XqZiGfcbV0lpEB3PkNHEYo3zbpnaSmL0HXJ6+4c0UaKyr 108lOdlEr03StZ183cikwea0vNAbpqjsr5T1vzhJtZmAJwq2HRH7hgiovL1OZByhF9Qf RE9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701691635; x=1702296435; 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=J8oRn5ZhO7COVeU2ZVT8nduKwrcx7YOn2uy1JJic37cSEvd0vr36DN1j73C9OSx/sF IZNCG1Q/if0Fxp0Gxq54uQk3QSpFLMglcjM/misR0e9YbG9vnT12//98m+0St3L1AcQl VBMIeMTBxbAyMWMemcZQj5/stP+D8Sgx9xgsUeJziNx6KYZg3heIgSP5T7e/vd7drrKT AftSyx/6jcBXBhjwAKx95pWYHO22aX8PxP1KnbpjZvT0EWFqSXPSthCziw5EU6dLxAF9 Zcht0AkBWPTXgnRYZIsh+qEPw1WsnNjeK7QJWBRDUnTSllbXhKu+nYJZZfCq0eOH62Il J25w== X-Gm-Message-State: AOJu0Yx1Mzi5w+pzwoWUcSigDAae+M1HMu5CT5Tob3xu8YinZxO63k+W WC6JKUf0PRZQ0iZ6vRkpyGg+35CI4uDHbDY1ZLc7iA== X-Received: by 2002:a05:6512:131d:b0:50b:f92c:37fb with SMTP id x29-20020a056512131d00b0050bf92c37fbmr552684lfu.43.1701691635134; Mon, 04 Dec 2023 04:07:15 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id g33-20020a0565123ba100b0050befebf0ccsm541675lfv.292.2023.12.04.04.07.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 04:07:14 -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: [PATHv1 4/9] sandbox: eth-raw-os: successful return code is 0 Date: Mon, 4 Dec 2023 18:04:41 +0600 Message-Id: <20231204120446.3277-5-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231204120446.3277-1-maxim.uvarov@linaro.org> References: <20231204120446.3277-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 4 12:04:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 750020 Delivered-To: patch@linaro.org Received: by 2002:adf:9b9d:0:b0:333:3a04:f257 with SMTP id d29csp1087517wrc; Mon, 4 Dec 2023 04:08:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IGAJZuinzJRAxqN1xZJTnaQITH5ZQyWDwNteY92ZnMdNNJJmnL16gBwnTtRSNrfAfD+XL/f X-Received: by 2002:a05:6a20:3d13:b0:18c:177d:2122 with SMTP id y19-20020a056a203d1300b0018c177d2122mr1664372pzi.2.1701691700315; Mon, 04 Dec 2023 04:08:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701691700; cv=none; d=google.com; s=arc-20160816; b=RsAhIEm71sK7M+AVbK9yZsvZ4oUfmPweXeOf9zRhXELIRNY5hbGbzcrvVQybtBW/of UuCYYYKKYmSJMZIG/jgjYh2MdtoQbg3Sn586yuQ+SraJd5kMaqd0/hbktHX2txF1mNWj ObNY3ff7zgYgrZzwGYINbTvuTRYgXtvibRo4V7M3euK4sCf/ZJRqS/QF6niS/fGLVi0l PqTT4azr2g9CVMxixyPqUmbAO4RuH0drO0hk3kYxpVHVSvDa0bpcv8c/OKO7hcXzWesu 5+t46AG09pBfMlIJdnvXs5Yb6BKoVlhr7yxwS3t2DXAFHvCHN7mITkOpI/p4wqdUG7B9 vkOg== 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=aCTSvlXu0XKO5cBwOLnBTsgpCy1xhhzIo/BdsXFncS8KWqRhrX1mw2mEEE0+DOZC1U zYmNywX9Ye6LQ8dX57TqIsajJQeV663mQaGPrAjpLwd/zxtn9S3nk/4kwzfOpshbqSjp /N6EnW7+0lc47eCnRL5xBgQTx5bwsog1kM+sbaCwRVw/NVPAqaJkbn12seYZZbS0hjiF /PmQ4yTEae5tYorkee3IRe9l4f8H3tiRfPq4H2WQYnlBSwxfq+4b5Dmg1ppKpIEVnSPD EL489Mun09bRJgpAP9aa75y2/2ReqnV75AVr+O9AeXU9khqNRGbJ8IM1vOd8b/cDGfNd pe3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=S2Cru77R; 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 z9-20020aa78889000000b006ce61efad02si226883pfe.346.2023.12.04.04.08.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 04:08: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=S2Cru77R; 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 A761D87623; Mon, 4 Dec 2023 13:07:23 +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="S2Cru77R"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1B98E87630; Mon, 4 Dec 2023 13:07:23 +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 341BE87622 for ; Mon, 4 Dec 2023 13:07: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=maxim.uvarov@linaro.org Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-50bf7bc38c0so952340e87.2 for ; Mon, 04 Dec 2023 04:07:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701691640; x=1702296440; 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=S2Cru77ReItMiGUnRhwW74ltvK45tGIw8vSzpUCpap38FkJEKPBQfyz3ZTW2mWXVNb rJJfWqGBNFUlc6E1LHZMjo4dPAcFYVrxZi/2c8GO+AUuXOPCJt7kiu12yNYveG7To/vd sJ7RGoCaa+G1vMyuzgMxgI+W6vU8LrScs61PJbbexpxtONFvw0Zn8KFngUHs7UoowpK6 rIqYNsi24dZdDR1Vp+UEFSy5XC/94g5+OZmDgjPMnvHDiqcWp4kKlqn5qtHdBcPeHSM9 q7IySkErAh4p/1mWaXI42x7rxMXRsopb2PJR/95vRNAC8am9UlU/CeAXNTwwaV9lwj7O P8+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701691640; x=1702296440; 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=sVTGe1lEYw71N6dR9cf4yhY9hKniqoZoSrX5I+I7M4wy9CIGFAGJf7bva2IyVKGi9Z s9B7WsfxsZLy83SxQYja5wVgvEFyGaZ225iG0W1ukCusMA6e6JLjhhEqHHbravPwHDYj H8x8H2ONdNfro3l5UNWP162nOEhZQNk1wRao5OW9NuirDIjmcPpqTfGaT9XafI5Dt4Pe PnRzI8bpNM6YrTFfGJrP/BAhHVlv8PrAy74DVFdpnVMN2k39xqYqQmGs//kvONEMDZ9+ aS/0UhjAXsNhT2g1iQwb/FmCCdftCaIbl7x0dhZzgBJq7YxgzNYkMUEcBWyzQKrWRPr1 voWQ== X-Gm-Message-State: AOJu0Yzj6b73c9iXrW0wnswz55KhOmG4V3Vgb7h6Y/nDecHXITRnIrXr bV8hUIAg0Lfm8PrDBoG82IViC+Zg/HRBS18FllR9MQ== X-Received: by 2002:ac2:5b5a:0:b0:50b:e5bf:cd08 with SMTP id i26-20020ac25b5a000000b0050be5bfcd08mr1499143lfp.0.1701691639850; Mon, 04 Dec 2023 04:07:19 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id g33-20020a0565123ba100b0050befebf0ccsm541675lfv.292.2023.12.04.04.07.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 04:07:19 -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: [PATHv1 5/9] driver/net/rtl8139: remove debug print Date: Mon, 4 Dec 2023 18:04:42 +0600 Message-Id: <20231204120446.3277-6-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231204120446.3277-1-maxim.uvarov@linaro.org> References: <20231204120446.3277-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 --- 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 4 12:04:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 750021 Delivered-To: patch@linaro.org Received: by 2002:adf:9b9d:0:b0:333:3a04:f257 with SMTP id d29csp1087628wrc; Mon, 4 Dec 2023 04:08:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IGbtI0IYFkWW9Alq8AqQR5SZINslfjc9Hnb58u0y/9EfS8sV3KlSQtcIfQnDZnema+JgpW2 X-Received: by 2002:a17:902:f689:b0:1d0:a7b7:74c2 with SMTP id l9-20020a170902f68900b001d0a7b774c2mr933929plg.43.1701691714351; Mon, 04 Dec 2023 04:08:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701691714; cv=none; d=google.com; s=arc-20160816; b=Yh8H6bribYEjbmCLk2KqR83Ri/7DRS7/hzTIugsowXkfLyqEpLLW/pOeZ1FW6Sn0j8 ffOaIl3AXGoBqUCZX+kX2KeYb3xwqOlWwPR6hAcBpq2TYe1Ejj+xs7sqPwMwlXiGLgdJ /QmvHCMJoRoAGxGxPMDmixkKM3ugEe+h2d6oqXO+E6yoYvmcFiFgsWY6PX4LC+x8VTbw +1lNdMV4Uaj+FYAdJ1QkX8lpLi4i5BjONT8CFwQjAjWKKLmAc15fCbAMMsH9WCjpzdjs G9bdwyG+hu9TTYNNOYkdRK5DVZOOeJYrCtpR8ebgTT68wJp8OcUETbGrF/JhcwGsCvDO yXcg== 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=agQ3mOYwpQtSsnOo64guZTnmMB5U1zcCk84FUNCuQY5u5Ll5Yl6CSxbD42ueeT2Qax aqO+a4iPDTcnJgSA68zq4OTwqe7av/I6jMlG+5nVSVt1rSDUSmim51qpK00HDSsgX5P9 rFHZWQ4SMJGHh0i5W9wV7DS9F8Mhn9KBOHE4GSS5mYcKBV33tHlkk0rf4rrfX4IT241u +Nxq89yHA8k9+ctkPf3rFKxrlrkeDjfYI0mextj/ac5l7aYvW3QgdQZvuTto4JlfJu1n GTUeHQlSbh8l9lw5LCFX6FH3Cm0tbxwUKDbjwOe+PTQtTLNyXaaAh3HdxR2IrvB18S7i GQSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="z3yNfq/D"; 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 a2-20020a170902ecc200b001cfee4c128asi7991346plh.356.2023.12.04.04.08.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 04:08:34 -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="z3yNfq/D"; 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 16B0E876AE; Mon, 4 Dec 2023 13:07:28 +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="z3yNfq/D"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 234DB8754D; Mon, 4 Dec 2023 13:07:27 +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-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) (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 3EFAA876AE for ; Mon, 4 Dec 2023 13:07:25 +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-x12d.google.com with SMTP id 2adb3069b0e04-50be58a751cso2277490e87.2 for ; Mon, 04 Dec 2023 04:07:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701691644; x=1702296444; 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=z3yNfq/DY3HjuMbj9NqOhs1DwyV0sf1OVJLSfqj3RVAa/bvL4nmG9b1gGFm+Sk4V6o /pdXXGNfTh2NGypQVXhuK2jCGVSxQQyrLW/3PlDf/i68FpDSLsNb2UU+v/cvBJ5T1VEB 39gbJK+n5whB0uwUcM+5tEqxc5Oef5Vl1tt0dahiHtKM+LhhGFE58XsCKABilyWvCnXn syp6jdeXLK1JBB//UKyNYSyMa9J/nzP1zf5VadQZTWLYxQq6tgjuDR5qF4t043O9TJnP kZtDtt0vaXBplpfG4OickF3bJJ81RPwkEQddE3+hodZUXwF8Rkf+VLdqN2Wtfcegak97 adHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701691644; x=1702296444; 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=tXPJGolJ9fpc3mvTKnP2Gi88L8NcL0wIQ2QDA97MlsbiJyfayPVWq5NI8W2A/3dyC/ +MUpkxwfIrA0W+tX9/5rPGnjQSl8B06e8HalkxzrjayQJw3oKzVeZw+KeKhuHukYlZU0 bF6sAn++sJw6AxpO2zfgJJaYKZKIvfNOuRY+WtTj3DGUqHIAEHAM39p8df2TAXvVbPpB ol8VrAjnmK6n6bPdEePLmAPIsw0Thj2KBz4Zt9xuYVP/poRnrEtlkIYOZqnJL+uL4xjU qfAyQWaLqo6LPjSAI+Vtk4mDeQWjoL8RxoGb8CRlsmcdz2JCh2ayllCZ7IRSRlcwdk1i NXKg== X-Gm-Message-State: AOJu0YzXghseMYg9z9CTWAjD/z/8t3cmsC/3TB0MWdW1CPFBJu6g+FkF cxa/Mfmq0BfwW4z0xcsMi2dbK1xKoduh1i938Qv/YQ== X-Received: by 2002:ac2:57c1:0:b0:50b:fd6f:1e2b with SMTP id k1-20020ac257c1000000b0050bfd6f1e2bmr286236lfo.3.1701691644065; Mon, 04 Dec 2023 04:07:24 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id g33-20020a0565123ba100b0050befebf0ccsm541675lfv.292.2023.12.04.04.07.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 04:07:23 -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: [PATHv1 6/9] mach-socfpga: do not overlap defines with lwip Date: Mon, 4 Dec 2023 18:04:43 +0600 Message-Id: <20231204120446.3277-7-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231204120446.3277-1-maxim.uvarov@linaro.org> References: <20231204120446.3277-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 --- 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 4 12:04:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 750022 Delivered-To: patch@linaro.org Received: by 2002:adf:9b9d:0:b0:333:3a04:f257 with SMTP id d29csp1087765wrc; Mon, 4 Dec 2023 04:08:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IEPPnMRrFm/qoVL1tXYR+CqCJD3XNeXcRLxjjxWeVOXTlWHo63On7E6XRnkc0afaTWU42Sa X-Received: by 2002:a17:90a:bc08:b0:286:6cc1:7816 with SMTP id w8-20020a17090abc0800b002866cc17816mr2641655pjr.89.1701691727811; Mon, 04 Dec 2023 04:08:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701691727; cv=none; d=google.com; s=arc-20160816; b=i4FviQkBx8x1IFdm43nAGUIZc2l5HTZBzQ0mFOFUhHi9I7xTVAoBEg00XWTPuSJzsG 47yu4Vi4yVJVpDNbE4+VspYsQ6ngfn78BiLMsmn5wcVsUjRY7z2S39WVEUUKCtnVVWLR Qb20EiDTMVE2Z7S1uT0ZtedfYj7CVxh3wLpUUil56gB2VfnZhfwa1A6+XSvw7Bxij2YX ZTcv+vd5jvA8HZy6J45d2WLt1X5WKeeKo+2CnvInyEnG1mcTJvEc8PtwCqbiLlNvOp9r afIddJ/X1WyBcuM0H5fUu1rlsH1LEAt2UlNGaPNh4HYroiU1iylww7nWrHo/0a0W1bDZ gj8A== 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=vD97G0JJPrjstx9DxxLj3RhYbyE5f2FSKSx/K3ncJMM=; fh=al8TO5kxNSCLdK6Wct4/S1Ky9QCKGaknFfrx/Rr/20U=; b=LvOWynmdUqO/EW2Uq+0/Wvyys5rj9vmYW0ITP+3sJFoSG/ARLHVqeOA5jgiBn52YzW luZh8Au12c5vlt9D2iFAv7cQkb4jTPGLFnQETrVMn5/DYwqie8vdYi6b0VjoFE3UnmYU c1XiC/ReO/21Oq5O2OFqRb71ai+eTQhoQZKqQPl9kUym/RBD2BlP4URNvtwSjpYlF1px xMVeq0ezvKjdlFAvnYYjm7O8AdjV2aCUrc6fcwfzMGGPH77rt9oTAyotzO1tO9/ujhTh OWQ0lilRGf1poPWgYdGCBTts71nOjg2gXDU6H84oQJi9kM2AKrJqelkxqpXH8kpHk0eO HWvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QclteVqN; 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 pw9-20020a17090b278900b00286ab91a312si1735487pjb.79.2023.12.04.04.08.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 04:08:47 -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=QclteVqN; 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 739BE876D7; Mon, 4 Dec 2023 13:07:33 +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="QclteVqN"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8F771876FB; Mon, 4 Dec 2023 13:07:31 +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 A0848876D7 for ; Mon, 4 Dec 2023 13:07:29 +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-50be24167efso2497344e87.3 for ; Mon, 04 Dec 2023 04:07:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701691649; x=1702296449; 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=vD97G0JJPrjstx9DxxLj3RhYbyE5f2FSKSx/K3ncJMM=; b=QclteVqNaDvZAnTvnEUw9mzHMcaLT99lR1P566li1NL7PCIcFGus+8MdL8hPsqS288 t2q5fVGyC1iHZ5+gnQ3VmDk72psHIQD4u+Pfo5MQrZj1yMwBqLXzBaC6+K2w2v1yO3ss p3uoYtWtnxuZduSAqxsdafzGzFL8bEoz9SAx9bRChp/L/RZxvVw+LIOD4yUYtVeesH2n /J0nTFESLUnIqwfscxrzrGT3gaesOj9IFRIw1bwarHZxj4b0J+tcTe4h0oJfANdn7VXB P8afC0AMOuwaJIbmbea9UasIk383DuDumD/IoXjYxb9sFS7P7AZzXhuL3mA4RgbPKYjC BzXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701691649; x=1702296449; 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=vD97G0JJPrjstx9DxxLj3RhYbyE5f2FSKSx/K3ncJMM=; b=vJzHcuNnIv6FxXk6KBIqIpWX1DJIzzzECGInPo6Lit64jNazwW+65hQsYuJxcH0xYl A0Xdvz4gTdCYWIp0dRuURn3gaKwNBj2S1F9Y/3m5JqI45FGfzV9pcxIcwKmuJVT+GP8A zRVUJq+pPz4fvi3t1gvkM/5iFe96vV4uobjVYGWrhwrDjI2F92JEEGKMztXczobNVXrc 0tMTLE1qsizCgtkCt0BQEjeCGjp6PeGUPmKiTDFcnm89pCqLLgVjVQpdIfhVwpZ0Lose Z2IiKDGKbj7oyWlYeSE/oB1w2KxEh4E0q+5yR4YPc2quEzcuCESp6PomKQbXeHdiJ+nk LJVg== X-Gm-Message-State: AOJu0YzSlkgVAgmSMT+GbR3YJOowjwMjkZ9QySKJXBQ6q57CgYKY1l/J KBHbhY5ReFvP0fKtfKU+6VDR1uw1E8VIrytEagTcdA== X-Received: by 2002:a05:6512:1388:b0:50b:f304:3bed with SMTP id fc8-20020a056512138800b0050bf3043bedmr518647lfb.49.1701691648830; Mon, 04 Dec 2023 04:07:28 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id g33-20020a0565123ba100b0050befebf0ccsm541675lfv.292.2023.12.04.04.07.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 04:07:28 -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: [PATHv1 7/9] bcm_ns3: fix overlap define with lwip Date: Mon, 4 Dec 2023 18:04:44 +0600 Message-Id: <20231204120446.3277-8-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231204120446.3277-1-maxim.uvarov@linaro.org> References: <20231204120446.3277-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 Rename declaration to not overlap with lwip. aarch64: + bcm_ns3 +In file included from net/lwip/lwip-external/src/include/lwip/etharp.h:53, + from net/lwip/lwip-external/src/core/init.c:55: +net/lwip/lwip-external/src/include/lwip/prot/ethernet.h:69: error: "ETH_ADDR" redefined [-Werror] + 69 | #define ETH_ADDR(b0, b1, b2, b3, b4, b5) {{b0, b1, b2, b3, b4, b5}} + | +In file included from include/config.h:3, + from arch/arm/include/asm/string.h:4, + from include/linux/string.h:21, + from include/malloc.h:369, + from include/stdlib.h:9, + from net/lwip/lwip-external/src/include/lwip/arch.h:83, + from net/lwip/lwip-external/src/include/lwip/debug.h:40, + from net/lwip/lwipopts.h:93, + from net/lwip/lwip-external/src/include/lwip/opt.h:51, + from net/lwip/lwip-external/src/core/init.c:38: +include/configs/bcm_ns3.h:52: note: this is the location of the previous definition + 52 | #define ETH_ADDR 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 4 12:04:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 750023 Delivered-To: patch@linaro.org Received: by 2002:adf:9b9d:0:b0:333:3a04:f257 with SMTP id d29csp1087870wrc; Mon, 4 Dec 2023 04:09:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IFcntL2HN7eGRbOPlndgjJquEqyxsQFhDws6/ipsheU03AeAKj0A7r/3BVtjTnp6kstGuEN X-Received: by 2002:a05:6a00:1ca6:b0:6cd:fd5c:3c01 with SMTP id y38-20020a056a001ca600b006cdfd5c3c01mr1522330pfw.15.1701691742111; Mon, 04 Dec 2023 04:09:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701691742; cv=none; d=google.com; s=arc-20160816; b=I+jyD+I/WSYQ5CKIGneBugbiFwJRPMpHNGvMdCg4cdkeXPMO9v1yh22+49hPEAEwg8 PqUWBZBLj/HUhQ9zGtdFDgpEQbjMegzRsgPFmNr0nA2gc9rxQnDug7n5sOjb8JyBiJ7W Yy4H+D4m5YO4QKS7xnEZbw1n2JJoThTFmlLso1hJVLqDu5sepmp9BYq8bs9RkGlDZRZb Nbugp6W15kb5PxBW3EChi3f5v58ZAN5yn5rCpfFciWqUACb8qHTcEsq5JVsP3Ta6BGFq /lCmU/SNJ+8/VU8rU/FlEhziNOidP8VQd/gwS8ATIax/G4aHAJZCLg9I+7zMAfOejDfA iG+A== 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=oENsUKBTA2cWXv9ImzF/gS8Oz06lReZEVUapldDZpOg=; fh=al8TO5kxNSCLdK6Wct4/S1Ky9QCKGaknFfrx/Rr/20U=; b=clGy8M59tSQgA74i2VfU6AwtjdJf/WTqyEggOlx5Cc6KQEJaQwEJkCqbtoj2Mqwe11 Z1rwemHVF9GhsP+/F4y9rTLrAf+e4Rt5NiwdOi8L+Lya+7bnklh31GeMP6EavcOlwfrT iWA+LcakEUysVzMqTwCa3vDZTtIAaWJH408JNepugDgqR8SNviB+voVffKKQEhLw8Oo0 s89/UzgNFddf5lXCDZf8n6kNQQdZxQOtW4HE/0dgCC4yEzt1Y16slYrhbwSmWO9Ivec2 vNwzlI+lMqkzUJ1stebbgO8UPS8giM0u8lIM+DClgvIh1Zl/g9Hty1shEMhWe6QZZt9l nxrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kc3eT2OW; 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 j7-20020a056a00130700b006ce112788a2si4306926pfu.23.2023.12.04.04.09.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 04:09:02 -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=kc3eT2OW; 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 D20E087714; Mon, 4 Dec 2023 13:07:36 +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="kc3eT2OW"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5C23987716; Mon, 4 Dec 2023 13:07:36 +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-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) (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 0D01486D37 for ; Mon, 4 Dec 2023 13:07:34 +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-x12c.google.com with SMTP id 2adb3069b0e04-50be58a751cso2277688e87.2 for ; Mon, 04 Dec 2023 04:07:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701691653; x=1702296453; 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=oENsUKBTA2cWXv9ImzF/gS8Oz06lReZEVUapldDZpOg=; b=kc3eT2OWbZ7H0Xop8/B1AH+PB5lGek+C920ZK/Frv6i44efuRosuqT+UckrHemUaFk YcvqDzkgwHfEmZqtwdQEissIyJB8ftpuVqY0zGPnEeaA/PvM3c1SeJ0SVIr/Bw3QzmvQ +AtQJylAlYYPrP9LFfmQKfBIM9+SBDwzSKJAf/xM2sXWhaKdnLw2S7IT6NBxsqru9ZD1 Nvf7uaKCykxbm+5NZZNaaHZlcjwnle3cB/U8oX4AbnZg9AaM/eSGFGCV7J9pkuXfeavz 0BrA0hWMlTHZQe0MewRk8shcdg2U1P651AnhMYIUgN+TwInZ53Ppb58QVIsrFUCgIYZL icdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701691653; x=1702296453; 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=oENsUKBTA2cWXv9ImzF/gS8Oz06lReZEVUapldDZpOg=; b=tdKWoKJIVofhXKMQJlo2jRTy8ebuz5CCq6roukmEydTepm44m8pNUjp107wGkwRB9S i47E/jRuyRjS66aR3wc9G1949EBsHLnlJlX6TIxxPGbtHHvVqcq/loZsmFl/ctDyvxK3 4VBn36h7aVqWXtBw0CaD17PLmL5GRkDC5hSfotBB5keVVlmKL4SBqpxh+8ZqSmziohJK f/xc7xeCYbjhqDvT4LThZ/xl5alUbPSO6nBnInMSpVNWeoFoOusE2pMvOdqLuuybOUoL zn7aV97yOixv3vSKwMgtLtUuJ0uFfB4mlu2KmYnBeEBakLxO1IzWTDwAv0pk8xPER5c0 5cbA== X-Gm-Message-State: AOJu0Yy3l5Y3dr6O1JzRbJClifiBoXqPkraSg1aEz13lVLSn5iLucXIF FiZ1QdVXIXDza+FPEZDdpijCMQWROr2hkeWPKh2vNQ== X-Received: by 2002:a19:7015:0:b0:50b:e750:dd94 with SMTP id h21-20020a197015000000b0050be750dd94mr1297050lfc.1.1701691652814; Mon, 04 Dec 2023 04:07:32 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id g33-20020a0565123ba100b0050befebf0ccsm541675lfv.292.2023.12.04.04.07.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 04:07:32 -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: [PATHv1 8/9] omap3: rename mem_init Date: Mon, 4 Dec 2023 18:04:45 +0600 Message-Id: <20231204120446.3277-9-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231204120446.3277-1-maxim.uvarov@linaro.org> References: <20231204120446.3277-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 Rename mem_init to solve following compilation error with lwip integrated code: +arm-linux-gnueabi-ld.bfd: net/lwip/lwip-external/src/core/mem.o: in function `mem_init': +net/lwip/lwip-external/src/core/mem.c:162: multiple definition of `mem_init'; arch/arm/mach-omap2/omap3/sdrc.o:arch/arm/mach-omap2/omap3/ sdrc.c:240: first defined here +make[1]: *** [Makefile:1764: u-boot] Error 1 +/opt/gcc-13.1.0-nolibc/arm-linux-gnueabi/bin/../lib/gcc/arm-linux- gnueabi/13.1.0/../../ ../../arm-linux-gnueabi/bin/ld: net/lwip/lwip-external/src/core/ mem.o (symbol from plugin): in function `mem_init': +(.text+0x0): multiple definition of `mem_init'; arch/arm/mach-omap2/ omap3/emif4.o (symbol from plugin):(.text+0x0): first defined here +collect2: error: ld returned 1 exit status +(.text+0x0): multiple definition of `mem_init'; arch/arm/mach-omap2/ omap3/sdrc.o (symbol from plugin):(.text+0x0): first defined here +Image 'simple-bin' is missing external blobs and is non-functional: tee-os +/binman/simple-bin/fit/images/op-tee/tee-os (tee-os): 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 4 12:04:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 750024 Delivered-To: patch@linaro.org Received: by 2002:adf:9b9d:0:b0:333:3a04:f257 with SMTP id d29csp1087993wrc; Mon, 4 Dec 2023 04:09:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IHn34/S7fXXLNq/NH2Lod94KSJDXHupY9deln7qtKnc+3AX4gH8AwhNEtEv6gnswe0sDGPS X-Received: by 2002:a05:6a20:9e49:b0:189:2e8f:d378 with SMTP id mt9-20020a056a209e4900b001892e8fd378mr1743444pzb.61.1701691758855; Mon, 04 Dec 2023 04:09:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701691758; cv=none; d=google.com; s=arc-20160816; b=srIrKLRRdjKL3lipmorIXl6E5LYWlesmeyTQgqZ20ZkmsQzX6GY1s56f1YRgYut6jh WrcqWMo2xzS8/x7mZBNkzVsUxMoxNfGc7VIUdKIEQ/8fQei+eD3LNcR1jMPJY4uLa81+ YofKtcNR092Mca73Lw447YPNWaJZ98NlnRLZzUW5MSovzDLNJiVBqPnWDLtkB1eKncC6 JBusIDUpEDC0tEYOuxV1h5JN+woLtyiPbhLm5tpa/+1QYGskAl13j3Ow25MCSZAdV9WZ m4SOIFmpJTLOFZPuD/s6IynfARH6ORVVsQbFgrKvy/fEVIwyBILdL9ozAoLFNnx2zzJ7 HsLQ== 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=Wl54lXvvhuShnvPBbELeAGBAaSi8G1U8M+ylMkoezCQ=; fh=al8TO5kxNSCLdK6Wct4/S1Ky9QCKGaknFfrx/Rr/20U=; b=gedMjUyzWG45lXD3FwkE+vzAzNOC2AyReFGDjREFkqWgT2nypeGpqDpD3d9OlEwmEk iNUJeqWujV14P9pNkSrgDzfk7VoUH2DRxGqkmQ2d00A3yAcVBoCfE2vRTB7muymds2U/ u5Z91OTFtMeib3yBuEm1y6GoxRFUEEamzghrw3wre+rjoPskWC0bByHaA3FqfkMJ/AGB Djc3IBDSKhWO9F9snEat/5wOth9Axr7XSzCjgkZZUCk3mU3ZmDy1ZuhyfkdDCwAxiPes GffxfKYOVgzM0esqus/O5TUSf6mztHGyW1M0WUClrXK8EmpvOOYph88tsKDk/4qiHeBT 4SDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cbytsYcN; 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 q17-20020a632a11000000b005c62aaed5acsi7436520pgq.889.2023.12.04.04.09.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 04:09:18 -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=cbytsYcN; 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 3CAE887741; Mon, 4 Dec 2023 13:07:41 +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="cbytsYcN"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F214787547; Mon, 4 Dec 2023 13:07:39 +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-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) (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 8BBB38773B for ; Mon, 4 Dec 2023 13:07:37 +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-x12d.google.com with SMTP id 2adb3069b0e04-50bef9b7a67so1691745e87.1 for ; Mon, 04 Dec 2023 04:07:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701691656; x=1702296456; 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=Wl54lXvvhuShnvPBbELeAGBAaSi8G1U8M+ylMkoezCQ=; b=cbytsYcN75VwuMQJOV1KNLJ5/Guxl5AbfIjDRyXpc6+qwOh4Q1P+pf3Rq4YyekoeMN 4U4iOZEbo/4HRrWdPgXrXxv3vA4ptrQTGcVqpxapblojygWw9tCe5D+iv7Pn4kyUvf4K Snyl5EsKBOGyn7Uk9F00kDDmKx7HYT/eLCTAZ1h4M0cv33ODWR+EBpAsKBidE8CuU5Jx /ldlixgELGODOfijZgP52/+GPVI1tDQ/u3Krri83H+zwmZr0hH0oLRSulJFqnpYw1Sbv gyQAuQbSdLl8qeyfxi2kun9uPmC+B6BMM0wPrc+b005hsysLndih5IwMCjIVvrTcwBja 30iA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701691656; x=1702296456; 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=Wl54lXvvhuShnvPBbELeAGBAaSi8G1U8M+ylMkoezCQ=; b=WRVTYQOuG8jlXbMi+5A4EigA3MbmZpfEXWX6pgsONgMfw8ivvFkmYqdd3ADtakD/Uc 9V0dS9bSUoZ35bSJaAWx9uUvSXeqJncExnGs9A6B5Zd6+VDKem09tiuAy5PkVeTZ+67O a3OYhaNsRJ0h8RPO6qDxXUMjSzPb2noMZ40CQ2tOfdwbJWoT/HrJksnRgQcn/1tzT1ge oe4+qd0+XggJ5JbPRL8yBM1gx7gtgimp8QQaSUV15M44ixXc1+C3oy4w3bj4Iry/eRek 00ef+7PBkArBzDRA05rKT7vW03z+RogNKKZhInxrdor+K+IJkhBkJmBC2JT2G4017He3 FYfw== X-Gm-Message-State: AOJu0YzzAiJF/aVo9zX6y0y/myeBmk97N5qtqztIBKDCdwhvZQ25cafR Ld2YjGHoaldBRF1BQunOmkVCbX4e5pOdkccJ0ZPQbw== X-Received: by 2002:a05:6512:3b91:b0:50b:d763:fe4c with SMTP id g17-20020a0565123b9100b0050bd763fe4cmr3421955lfv.103.1701691656757; Mon, 04 Dec 2023 04:07:36 -0800 (PST) Received: from localhost.localdomain ([45.82.14.220]) by smtp.gmail.com with ESMTPSA id g33-20020a0565123ba100b0050befebf0ccsm541675lfv.292.2023.12.04.04.07.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 04:07:36 -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: [PATHv1 9/9] Makefile: add dtbs to clean Date: Mon, 4 Dec 2023 18:04:46 +0600 Message-Id: <20231204120446.3277-10-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231204120446.3277-1-maxim.uvarov@linaro.org> References: <20231204120446.3277-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 08604ed3c7..8dd6990584 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 \