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 1DC30C433F5 for ; Mon, 15 Nov 2021 15:20:31 +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 96BC961AA5 for ; Mon, 15 Nov 2021 15:20:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 96BC961AA5 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de 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 3BF7783782; Mon, 15 Nov 2021 16:20:25 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1636989625; bh=WmWQLrBm5lGwmhHPBPjjV+Cik3Q1uB4A9APBYyN5/zk=; h=To:cc:From:Subject:In-reply-to:References:Date:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=jcN5ebCOR/ygyG2uDhByYXxKoE3ELo3HR9AfC2PQOmhQkflP4SfgzSxj3gZ159oN+ W5s5Z0Afg6R33j7JHJytQXWSfyoJ0SAJ4iF5AxXhCWB9kiLllcCBHzJFuD9IVPpG1s 1Q6r/Zc5yJ+WBB8TFt5mKL4lKMOGPnWRadM6BZQjNEHJ+4L0qA2y/DcV+OeTdfLr7i 2I2/CBH/KWf9/bUL3wtHHnMCOCsmQHYkDBRuSmxKVWY6TbntDuehBhwUtD+RnOgm0i xO4/EUVGvW6VoZ3gu5pYugNXZdcvH3OCUnZZb4+J3RfduCK8Llm39b2xLDe0AwMB+b GOIQ3vuAPIS1A== Received: from janitor.denx.de (unknown [62.91.23.180]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: noc@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 291E98377B for ; Mon, 15 Nov 2021 16:20:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1636989619; bh=WmWQLrBm5lGwmhHPBPjjV+Cik3Q1uB4A9APBYyN5/zk=; h=To:cc:From:Subject:In-reply-to:References:Date:From; b=0GdNux2WjI7jvUdmyQGyeaVVZ6+NpkNc1bz9/RAHFSjD8Ldq89zRP+6Dh1v8F8XGm tr7GTj11iTDX0T4jNHXLocwn9hzHRvJmBTeLiNWHfdzch0GYi/azf0ptHF0kPdxxEH AVk94mKYf6xiMj7uJYEwP0r2CC/Vvd5akxpeGMQrxXMGNAYotrlhXcfF0vP9PqEq/D 8I8f9h7gsNQmvYnoDUPG2Rbo8tq2lHVH9i76J9pUBQQGbLwozsB7Wk0O42GSMtVqcC 22vnfrCpjqJ6iN+kNbA33VAU4ze1Hvr3P7QmbLCSYd9hydhlgj6DN6O81kiBMvy4px GAszor50Ls0ag== Received: by janitor.denx.de (Postfix, from userid 108) id D3211A0156; Mon, 15 Nov 2021 16:20:18 +0100 (CET) Received: from gemini.denx.de (gemini.denx.de [10.4.0.2]) by janitor.denx.de (Postfix) with ESMTPS id 683E4A0050; Mon, 15 Nov 2021 16:20:09 +0100 (CET) Received: from gemini.denx.de (localhost [IPv6:::1]) by gemini.denx.de (Postfix) with ESMTP id 130091E0CB7; Mon, 15 Nov 2021 16:20:09 +0100 (CET) To: Michal Simek cc: Michael Walle , Marek Vasut , u-boot@lists.denx.de, Grygorii Strashko , fried.dev@gmail.com, joe.hershberger@ni.com, sjg@chromium.org, Tom Rini From: Wolfgang Denk Subject: Re: [PATCH RFC] cmd: fix net list command MIME-Version: 1.0 Content-type: text/plain; charset=UTF-8 Content-transfer-encoding: 8bit In-reply-to: <2a51974b-41cf-56e4-c9c9-e6b699f27f5c@xilinx.com> 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> Comments: In-reply-to Michal Simek message dated "Mon, 15 Nov 2021 15:57:51 +0100." Date: Mon, 15 Nov 2021 16:20:09 +0100 Message-ID: <1649664.1636989609@gemini.denx.de> 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 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). > And it is up to board designer to decide when it is the right time. I > can imagine that it can be the part of kernel driver or can be purely > done in user space. Again, no. It must not be done automatically in the kernel driver, as this would restrict the user's capabilities to decide what happens. If the user want's to change the address in Linux, he can do this in user space - but again, it is then a (hopufully concious) decision of the user, and not some automagic code in a driver which ruins all my attempts to use the address I want to have used. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de Perfection is reached, not when there is no longer anything to add, but when there is no longer anything to take away. - Antoine de Saint-Exupery