From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A392EC433F5 for ; Mon, 15 Nov 2021 16:15:27 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C1B6560F26 for ; Mon, 15 Nov 2021 16:15:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org C1B6560F26 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AE1498378D; Mon, 15 Nov 2021 17:15:24 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=xilinx.onmicrosoft.com header.i=@xilinx.onmicrosoft.com header.b="pSATQYdf"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E706E837A8; Mon, 15 Nov 2021 17:15:21 +0100 (CET) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on20601.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e89::601]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 89D848378D for ; Mon, 15 Nov 2021 17:15:18 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=michals@xilinx.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HXuDf75GNMTun4y96b6AYxo8D2rCAs93m+WMML/DdGrMN4HoDVG5+3KvE9G5gZIPd0QFL5og5Jrq0xxwoKTPcW1ToxcZ3UnRN/2Li+kUTSnB7U0WnozsjQy59qrC9Fh5TheH69iGWr5CzcjKWT9cvgNtTkB7RDgdOFXAejpPhPhLcXluqVVz5hD2AhiUd/0TP8BcU181DygrVKY0QTasCysRAo16hJavtAcvbtAFpjo3mhiL7j0jkacQsaykPfCdi2kOsULiNWnacj7Ex5N6e8QA1XHmbA27sjgdtIYg7IZ4dVUinBjGXNjAm28sGSn4ZSmi6wtfKAyKepT1WvsTFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=FTqrCQRSU3oOY7h/tKhi28ieDXH+G1l1LxCGImeqHcg=; b=ltUtYLtNgCQHkrkMbK081+pFJNIWJQVuge8A7JPBeeWxHfLUKjbwY1HyBqP3WQLNpzwfKlXPWPfm26KK/E/zCADOFrO4h3KdfdWIkH06XJ/l/vO6pP7uHFYrxMtvErr3W1ippn0ge+a6dzV9GSe4Q7roQL3O070NbZPnsIdgRW3SatbAJ+PXdqJEdH4L9Asg5fFM7OBJjk/GmRISBDd6+5duDWPLpRVfVKlMq6cOGVkmiT3EnllImgv8kOJC0NsBI090IArkGbg5lFuWqpyKdaC6vCcg6gvjHkkIhODfTHIRwUzVOWnjtlmTgjObEU+iz5MzKkO7FbVw+J/Q1un03A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=denx.de smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FTqrCQRSU3oOY7h/tKhi28ieDXH+G1l1LxCGImeqHcg=; b=pSATQYdfMUibi93htGXKMWWl/L9oYVlSUAH4pihLTouSRGNjwHJzQqqbiLEO6PEd/lJQBxOJavuhL7FIieBxI1j//U2c0XAT/xWQVwLhKEuhx+kjXZZsKWHyIPapwavs8KW4kVlkZk/5PQ9lcvc/RpzBgdasBLEctV3JiMCsAcY= Received: from DS7PR03CA0179.namprd03.prod.outlook.com (2603:10b6:5:3b2::34) by MW4PR02MB7361.namprd02.prod.outlook.com (2603:10b6:303:7f::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.16; Mon, 15 Nov 2021 16:15:15 +0000 Received: from DM3NAM02FT017.eop-nam02.prod.protection.outlook.com (2603:10b6:5:3b2:cafe::e1) by DS7PR03CA0179.outlook.office365.com (2603:10b6:5:3b2::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.15 via Frontend Transport; Mon, 15 Nov 2021 16:15:15 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch02.xlnx.xilinx.com; Received: from xsj-pvapexch02.xlnx.xilinx.com (149.199.62.198) by DM3NAM02FT017.mail.protection.outlook.com (10.13.5.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4690.15 via Frontend Transport; Mon, 15 Nov 2021 16:15:15 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Mon, 15 Nov 2021 08:15:14 -0800 Received: from smtp.xilinx.com (172.19.127.96) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Mon, 15 Nov 2021 08:15:14 -0800 Envelope-to: wd@denx.de, michael@walle.cc, marex@denx.de, u-boot@lists.denx.de, grygorii.strashko@ti.com, fried.dev@gmail.com, joe.hershberger@ni.com, sjg@chromium.org, trini@konsulko.com Received: from [10.254.241.49] (port=36644) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1mmeaT-0001XQ-9b; Mon, 15 Nov 2021 08:12:05 -0800 Message-ID: Date: Mon, 15 Nov 2021 17:12:02 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Subject: Re: [PATCH RFC] cmd: fix net list command Content-Language: en-US To: Wolfgang Denk , Michal Simek CC: Michael Walle , Marek Vasut , , Grygorii Strashko , , , , Tom Rini References: <20211115121152.3470910-1-michael@walle.cc> <32aff992-c84b-7b71-b412-7594c2a7d20e@denx.de> <257391f0-9d69-62cc-2353-8f4fc0751d7d@denx.de> <1646331.1636986670@gemini.denx.de> <2a51974b-41cf-56e4-c9c9-e6b699f27f5c@xilinx.com> <1649664.1636989609@gemini.denx.de> From: Michal Simek In-Reply-To: <1649664.1636989609@gemini.denx.de> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7fe9f8cf-eabe-4ffc-dd92-08d9a8531bd0 X-MS-TrafficTypeDiagnostic: MW4PR02MB7361: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: C6UwsDAAR9mllLJXTCS8Z66p6XfQ2OWW+R9G3d1g6QoEsqFnjJdLPrXaCkYonDpPKaMBBJdLtAPsQDK7T3JkpdNmATzDICOOBTVvp58vkTvUepLY6jKmyMWDm0V//+PR0jjYMz7+9RBp6crZ71QBW7vMjRIDd0ZH5EeRKQbayz3RkPN7OridJi9SgriBz1MaKJfm9Q/aBvDOXbSr0poS2PYWMdqxsiB6gvlcSgCtLDLrJ2HdK4hA1u4wrYXcg0MaO/6Jx5v3FSViKPWGZa9YNhT7L/4Fe6q4iCfIwNtWSXDRRfj2IXSrB9Mv8nuUwKaliShzskQpaL5aXmgoo064F2xLFWDcWFS5RoOCAjZ6PQMgjAlAJ61Q3aAKnukxRVGh+N2Ynt87CYuW40m86xBNeqKNWH+earupeLQDC3vp5HSQvWEIH04Q5VCopzkyrPULJ8qHBqYRXNcH08Dk0DewlJGGEnhdjAWQQYVuaa4T3mBIA34jhCe+1afeyWmgmvV4foghGfGDoGtU54MdJ9eyhzKRpg6/6EaYWLuFjCXuTH/y/yL/qgLAvDX/SIPAj7ym+tbeoYjU2ybKEusAxfSwq4P11rvPWhyfu7gYfF4ENh0Sz2ESy6Kn8SEgScO67/5uO80BuvYhua2V1fqshOtKBy4q3Z7RTRD8cuBokFWD2obyr2hu/DmK++wnRjAdfT+rV+GQxRhWG3u+viL17DBzE21lvylZqM65dGgKivtWnVhePd2i1zMkNZGTf5qTsVgE6F1zRr0WOQkuPvkz/kAYmg== X-Forefront-Antispam-Report: CIP:149.199.62.198; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapexch02.xlnx.xilinx.com; PTR:unknown-62-198.xilinx.com; CAT:NONE; SFS:(46966006)(36840700001)(186003)(6666004)(110136005)(31686004)(36860700001)(36906005)(316002)(82310400003)(83380400001)(508600001)(44832011)(8936002)(7636003)(2906002)(31696002)(53546011)(54906003)(36756003)(356005)(9786002)(336012)(4326008)(8676002)(5660300002)(2616005)(47076005)(70586007)(426003)(70206006)(26005)(50156003)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Nov 2021 16:15:15.1141 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7fe9f8cf-eabe-4ffc-dd92-08d9a8531bd0 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.62.198]; Helo=[xsj-pvapexch02.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: DM3NAM02FT017.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR02MB7361 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.35 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean On 11/15/21 16:20, Wolfgang Denk wrote: > Dear Michal, > > In message <2a51974b-41cf-56e4-c9c9-e6b699f27f5c@xilinx.com> you wrote: >> >> As we discussed in previous thread. I think there shouldn't be a problem >> when u-boot passes random mac address (in whatever way) but if Linux >> driver know how to get correct one it should be tried first. > > No, I strongly disagree here. If I set a MAC address in U-Boot and > pass it to the kernel, I want that the kernel uses this address. > there may be very good reasons to chose some other address - even if > the "correct" one is known in U-Boot (say, by accident there are > several boards using the same MAC address). MAC addresses can be provided in OTP location of qspi. Or on eeprom which is accessible only when PL is loaded. Also information on 1wire, or PL gpio pins, etc. It means mac address is on the board but at u-boot stage doesn't need to be accessible (or it is not useful to waste time/money on writing driver for it). In perfect world u-boot will just get it and use. And if manufacturer doesn't do it properly but want to enable ethernet in u-boot random address could be a solution for them. And then in Linux where drivers are available you will use the right one. But back to this patch. I think it is good that net list will show all mac addresses even they are not saved in environment. And I will let you guys to discuss if makes sense to share random address up which is what the whole discussion is about. And I have created a patch which is exactly aligned what it is described above. If u-boot starts to use random mac I want to see it in Linux too. Thanks, Michal