Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp7452865rwr; Wed, 10 May 2023 08:23:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ66clSZ8IOpDeNgH14m5aEFr+8/5h+rG6Cw/ZNi1xrQG5cQEpZS55rD36TijMwm9valo1W5 X-Received: by 2002:a05:6a00:2189:b0:644:ad0e:ec3e with SMTP id h9-20020a056a00218900b00644ad0eec3emr16963520pfi.33.1683732236209; Wed, 10 May 2023 08:23:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683732236; cv=none; d=google.com; s=arc-20160816; b=PmUCK71VwSZbe5I3bbP1Ha7aYbwmavUnrB+onUJAohXVVasNYjFWNb+M3AxThpZ1e5 QhjGbXzCT6Fz9ncKh3QeXyJYE0z8s4o6Yxi2V1Rha8F8j8QHA6P3icP8grL7ryW3k3Ue dKd/nKON6/y0bHASTdcG9rQBOhSL1iLD7ahZjZIViJRYYjeERPlghl+bzAnUQNbmrssU qCwWN9Cb99Mmu2JnidPWeiNHzbZEWRerdjE2o8HwRV5+qGvQoFs1WFU7P4E2bNmB8SNg btZ3THdYtELXYPCsXeuKK0/w2mk6XIHb+QLgEGhTWVmCOcqbfPOvRjsssJsv0Vcehjar gj6A== 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=f6J1at/UfOBYlhKmXRcHodshRJDkjuRkHYlvCekUlaQ=; b=ldiBhZdjnnK4BhQPEh4G5AsI8HhI2cr3zaKDf+jfc0JbkvSESZWxYwudPABwtUEgIz ZmCIjHM9SxJDABEkawKSgtXJIGrGBG3LBrh/g4b+GyBVdOfzEAcznNK9oR2hyJ/0qkWD KACBw0SyahxG42kw2ectDZqwBzsOJA0iRyrZYWtR9YjnOfUrfvulItWtX3FVj7JXe77s N7JfM2TE9Ya2JNj0/YWwZyIbDl90Jdn26/Sc3BQ9FICGCr8KXwHoA+9Wl/cnXIFigbVD AvMeovzIKwoGczzAWNYMswMiLMom4V4NIa3RBMq/T9hDbBZiAxG9vgn+da7AzZPUARAG j66Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iNDBMZ3Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m185-20020a6258c2000000b006473516d9bcsi3907037pfb.69.2023.05.10.08.23.43; Wed, 10 May 2023 08:23:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iNDBMZ3Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237609AbjEJOsa (ORCPT + 99 others); Wed, 10 May 2023 10:48:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237469AbjEJOsY (ORCPT ); Wed, 10 May 2023 10:48:24 -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 ACED8A25D for ; Wed, 10 May 2023 07:48:15 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-953343581a4so1137008866b.3 for ; Wed, 10 May 2023 07:48:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683730094; x=1686322094; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=f6J1at/UfOBYlhKmXRcHodshRJDkjuRkHYlvCekUlaQ=; b=iNDBMZ3Qo/Ta40vyO3EF+rrpA6RSS0EQpoiRnrl+XngL9Vmh01gFgTLSCxICapeEsh daMH8kT6BzRJ7tOiLg9BOIyFxoYPKy1UTtBs+KRujHFwX6/TpTkx5ATMWgamCvbFYylZ aeKI2KTncm+HdQIKHtE4wZylBYjc0wfZ8+rZiWy5W5HFuiwZg+SjV0/mWe76xGCfpDX7 LneNP04ablGNXFUmnjKXKFWdF5NJ3h57KcmCvVto2kKeI4ELTHFaKoXNu3/oeJZR+8tb Rtb0J4RTHI4GRLVs7ApJvwEjff15qO/3eFmjvYFxR3bdpKaQMpB3bfWDkk0KQJGVmntA VaFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683730094; x=1686322094; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=f6J1at/UfOBYlhKmXRcHodshRJDkjuRkHYlvCekUlaQ=; b=WMc/htvhjk8GPCaQhheZutCIX8MoKsB06VCRuf8c9ofZ8FLQZvSlQNZ1HZoEy8m1V7 VnGX96fE1PfCgKZZi+hKaesE8bc492hFBp43WykA8OTd3L6hJBdXJcv0Fmmuu/j9ZRQC U8ZFHcSeDSFB5haD+zIF0tKAYfuB70aZduOKO1oVPTCPcpmzTleBS/7cSUD3T9ValDvs +gGhuIztGaWnQ3UGpBLi9la4EMplpG9wgRbhtfycWbM0wTE86oAv06PTsKtam8dEMsFv YYWjXNYvnhBd1tHyqPcPJ47WMoJHPHVHhcVbRsp9CDdHKpyYFfDlx/H+k6t+R+8Dcusz MM5g== X-Gm-Message-State: AC+VfDxsb8AvwbRVHtmTuDEPH3nVcSz9CcgR0glLSIlQO2Fp6ZYQwWWo 5ufYaixORu+qZeOMwwrWxYM5iQ== X-Received: by 2002:a17:907:8a02:b0:967:d161:61c6 with SMTP id sc2-20020a1709078a0200b00967d16161c6mr9898351ejc.3.1683730094012; Wed, 10 May 2023 07:48:14 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:c175:a0f9:6928:8c9d? ([2a02:810d:15c0:828:c175:a0f9:6928:8c9d]) by smtp.gmail.com with ESMTPSA id va8-20020a17090711c800b0094f282fc29asm2693778ejb.207.2023.05.10.07.48.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 10 May 2023 07:48:13 -0700 (PDT) Message-ID: <6b5be71e-141e-c02a-8cba-a528264b26c2@linaro.org> Date: Wed, 10 May 2023 16:48:12 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v2 3/5] dt-bindings: net: add mac-address-increment option Content-Language: en-US To: Ivan Mikhaylov , Samuel Mendoza-Jonas , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, Paul Fertser References: <20230509143504.30382-1-fr0st61te@gmail.com> <20230509143504.30382-4-fr0st61te@gmail.com> From: Krzysztof Kozlowski In-Reply-To: <20230509143504.30382-4-fr0st61te@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 09/05/2023 16:35, Ivan Mikhaylov wrote: > Add the mac-address-increment option for specify MAC address taken by > any other sources. > > Signed-off-by: Paul Fertser > Signed-off-by: Ivan Mikhaylov > --- > .../devicetree/bindings/net/ethernet-controller.yaml | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/Documentation/devicetree/bindings/net/ethernet-controller.yaml b/Documentation/devicetree/bindings/net/ethernet-controller.yaml > index 00be387984ac..6900098c5105 100644 > --- a/Documentation/devicetree/bindings/net/ethernet-controller.yaml > +++ b/Documentation/devicetree/bindings/net/ethernet-controller.yaml > @@ -34,6 +34,14 @@ properties: > minItems: 6 > maxItems: 6 > > + mac-address-increment: > + $ref: /schemas/types.yaml#/definitions/int32 > + description: > + Specifies the MAC address increment to be added to the MAC address. > + Should be used in cases when there is a need to use MAC address > + different from one obtained by any other level, like u-boot or the > + NC-SI stack. We don't store MAC addresses in DT, but provide simple placeholder for firmware or bootloader. Why shall we store static "increment" part of MAC address? Can't the firmware give you proper MAC address? Best regards, Krzysztof