Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5865229ioo; Wed, 1 Jun 2022 14:26:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5YotuESdE4WAKAExT6DNNOWUkrUeeLoYE/f3YxgbIvxNf2mQ1Wi9vaUnYXyGCyvN2gnrC X-Received: by 2002:a17:902:f7cf:b0:165:13ac:cac8 with SMTP id h15-20020a170902f7cf00b0016513accac8mr1502940plw.20.1654118761046; Wed, 01 Jun 2022 14:26:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654118761; cv=none; d=google.com; s=arc-20160816; b=fuFbv9faVmKCV+ZXGlBC1CT86S5iLuVk4b6ePOmyr9sqSJzfmuN77THBRzqB/rZHwj 4FeB3U+Kvj6NBnfclGTMfrDZKSPydHMHfVgWIPpjObwWpvFuyivHTkM1WDIe/+3kcmXK ijnsLxLy9zv1dqiVxJYMxmcvlt5DZwUmAaj5ppkA46aX2uqkxUttbPY9UndgUwriJPbV 100QHweT93Iixxp/zS2KlbPRmoHMqamZOTp2bJINEVyzh/FFQWl/nNWtCKPkpvLsLp2B e5dYMLIHzsMtWyyEAw2nHoQa2KRXYfBF7vKx3pvVMINuimGO8W0b2dCgyOnm6RXH/JPd 2ijA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=eZrqEogM3AC65qLUBGgKYLN1COH7t9H43DIeDqTbWeM=; b=oWneu/I/vK4JzzuHeCGc+7r1U0SijXD+ASE3Ps4E278m+nfz6EaQA1/qWlh09pOpca spkCxGFxE4kTqyESBOH+tCdJ8/G3TRiHzcWEzVBHDwb2Zh8hLu4Au+rXGxoA8HLbZ5pm uObMIFlWt2RQ/py0+rcKhAB8T81nDxPhbLcEACgt0xgzrAm6fS/lO8S99rT3ifUhMZXC IoRCPX51dl9lkk6ifpCbZmWE3n5tSxC/KcA4vc8ftRRoUvddg7+BsqWuXY5NzeJbNmhs 2CTvlXbotuIHkHiTAvk93FUhkCr0p5uH3UgCuYmEwJPjoca/avWHUTNmP0pUVnR9NoVf OmtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ahmNmpmx; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id 67-20020a630746000000b003fa7bac8299si1980036pgh.126.2022.06.01.14.26.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 14:26:01 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ahmNmpmx; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C0113307AA9; Wed, 1 Jun 2022 13:16:16 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347671AbiEaUJO (ORCPT + 99 others); Tue, 31 May 2022 16:09:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347669AbiEaUJM (ORCPT ); Tue, 31 May 2022 16:09:12 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CBAB9AE62 for ; Tue, 31 May 2022 13:09:10 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id rq11so28814496ejc.4 for ; Tue, 31 May 2022 13:09:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=eZrqEogM3AC65qLUBGgKYLN1COH7t9H43DIeDqTbWeM=; b=ahmNmpmxpbeXN3p+oLN0WAuNIkQGXYspiWXJJPLOPVNg85kI1Vmj1V81j1iUz3xIQB gE3rc7bnXNlGkdc+jJn2EQVoJt+7yls4GtxiAFe78mWY0qg3syrPp4F401WDR333Jj/D 2/Oug3DdDAaUyW/oBPbcIBPD/Ty4FC27EpZvWr/06vvUt0Os4ZIukzgRIWn4BIiK4+NN 3LyMvsvzlGdODTPEKImiegzlvNrg2pYwNJDDyxsuydzKHWS64OGwcpnYrcaqPi0liZbl YvO/GpogfF3ynfDtz9U0ISqk0juCHzlLioMXStcfrv175qr/5MgGHp+1oCSfUK6rGr6D PtHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=eZrqEogM3AC65qLUBGgKYLN1COH7t9H43DIeDqTbWeM=; b=ovNUCbqLn769FEhIsLxYUWa17LjLQH3Qt6K0137O8pyTOy0AIYWN0Za0ID4iI3S/qd m8vkcgI0EHQGu8uBAWnCUTvdyF5gnKIFg/C5PlJfzafBJFDDKaiWJucGHRrqlwByld0m BBM8ogDVyTVa/AUdGtBadtaRLWmolU8MdV6pQlFQ71DAQwSxbGvXppVb+qRZRz7uGxL/ iPb3dtZMVKs7OTb7h8uZj3Lw7GlpXLolYZdJdiVlMQcA7uYg5LWNK2QNnKjDL6sW58vY iQYHaqLCxn3Z+SP9dH/XhD4K63lFcm6b6fbO0NOcSjKo0tZHPCugG0p389VkD5y2Htl8 Mkbw== X-Gm-Message-State: AOAM530nH+LlMhvRoj2wucK5XpNlQpyFBvT6xQzqfPide4AuSxQCzixs GbqfnwAGL8FKe+SVATZNDS/kkA== X-Received: by 2002:a17:906:a10e:b0:6f3:e70b:b572 with SMTP id t14-20020a170906a10e00b006f3e70bb572mr53306748ejy.546.1654027748808; Tue, 31 May 2022 13:09:08 -0700 (PDT) Received: from [192.168.0.179] (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id d21-20020a170906641500b006febce7081esm5374701ejm.177.2022.05.31.13.09.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 31 May 2022 13:09:08 -0700 (PDT) Message-ID: <3ffc8e2e-4161-c61a-abda-9a7ca000e7aa@linaro.org> Date: Tue, 31 May 2022 22:09:07 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH net-next] dt-bindings: net: xilinx: document xilinx emaclite driver binding Content-Language: en-US To: Radhey Shyam Pandey , Radhey Shyam Pandey , "davem@davemloft.net" , "edumazet@google.com" , "kuba@kernel.org" , "pabeni@redhat.com" , "robh+dt@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" , "harini.katakam@amd.com" , "michal.simek@amd.com" Cc: "netdev@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "git@amd.com" References: <1653031473-21032-1-git-send-email-radhey.shyam.pandey@amd.com> <5c426fdc-6250-60fe-6c10-109a0ceb3e0c@linaro.org> <6f3d43ca-c980-851d-e7b2-869371a1f4ec@linaro.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 31/05/2022 20:19, Radhey Shyam Pandey wrote: >> -----Original Message----- >> From: Krzysztof Kozlowski >> Sent: Tuesday, May 31, 2022 12:40 AM >> To: Radhey Shyam Pandey ; Radhey Shyam Pandey >> ; davem@davemloft.net; >> edumazet@google.com; kuba@kernel.org; pabeni@redhat.com; >> robh+dt@kernel.org; krzysztof.kozlowski+dt@linaro.org; >> harini.katakam@amd.com; michal.simek@amd.com >> Cc: netdev@vger.kernel.org; devicetree@vger.kernel.org; linux- >> kernel@vger.kernel.org; git@amd.com >> Subject: Re: [PATCH net-next] dt-bindings: net: xilinx: document xilinx emaclite >> driver binding >> >> On 30/05/2022 15:21, Radhey Shyam Pandey wrote: >>>> >>>>> + local-mac-address = [00 0a 35 00 00 00]; >>>> >>>> Each device should get it's own MAC address, right? I understand you >>>> leave it for bootloader, then just fill it with 0. >>> >>> The emaclite driver uses of_get_ethdev_address() to get mac from DT. >>> i.e 'local-mac-address' if present in DT it will be read and this MAC >>> address is programmed in the MAC core. So I think it's ok to have a >>> user defined mac-address (instead of 0s) here in DT example? >> >> And you want to program the same MAC address in every device in the world? >> How would that work? > > I agree, for most of practical usecases mac address will be set by bootloader[1]. > But just thinking for usecases where uboot can't read from non-volatile memory > user are still provided with option to set local-mac-address in DT and let linux > also configures it? Also see this in couple of other networking driver examples. Which is not necessarily correct approach > > cdns,macb.yaml: local-mac-address: true > cdns,macb.yaml: local-mac-address = [3a 0e 03 04 05 06]; > brcm,systemport.yaml: local-mac-address = [ 00 11 22 33 44 55 ]; This brcm looks like an invalid MAC, so could be just placeholder. > > In emaclite yaml - as it an example I will set it mac-address to 0 to align > with common usecase. local-mac-address = [00 00 00 00 00 00] > Thanks. Best regards, Krzysztof