Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1528762rwl; Wed, 12 Apr 2023 14:32:42 -0700 (PDT) X-Google-Smtp-Source: AKy350aKBvonkgvEUyqFuGFyk+ftB3m8wJ7O6wSluNSVtKs0BeYNL6SF7UtTiJ7BlpgM9CjMhr9+ X-Received: by 2002:a05:6402:88e:b0:504:8bff:8285 with SMTP id e14-20020a056402088e00b005048bff8285mr113608edy.14.1681335161921; Wed, 12 Apr 2023 14:32:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681335161; cv=none; d=google.com; s=arc-20160816; b=d3ROukB6QsYJAoVtLxm7za0BUU/yUzGQbsTL10FRb+tgOO3viNJbVr2syCraRPgkLb oIjma39gCQ6hY/ukU9AEc4CNUNLcxaG7nTJ2P04JQLPE4ROgFDinX3q7vXuUy5N7v4og WTKSh3NLMElsiRs4WZaH9NB7AE3pQgvA8mn/jh5B3s739GruxM1vuMS0NfnsNeqgzAx6 RfLyled+Wf2q0OhrePg4vQqr1hgESdpNBlyufUWdyPpVYigmLTqhi7lky34HSW5RZu1o EJaHezcpyq5nDlWAfU3rBxwLdpRI3RoilcB/kRi1l9qnK12GSSwHEAlkCR12GhpVXf1S iMTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=456QAvvtFsJz9MlnBR4BMWWfSHxyYmN8x4WUjQvR230=; b=eC7Tz9hQAyfRk7cYUVNfnXilhvuh0LIV4QRbXCWi5M/Lxsopv3I7DNWYVx/vs9xp87 qu/VTMWk5GCSlKRCD2V9FDxGwa78HtNIN3ExHfFiK9wED6b8U2t6gggesUvNpAxcEHhH geAEdZvdwdBwjgDafb97LK7qYU1zOF9X1EiIK2p/L4xn3oohnjUS67hgRfkqTJ5JS/Zy 9OgiIFl3Cg4ZDUKn24s0ZEBLrrP827k29T0TRNFGXXkFH6Nrh1GgspSKDDSH0vTdYFHZ BUU9kMrAZ9XPllKihzwSfnKOf6wDf8wM56GhMWi77NxfvHFcMPT3QFvNAYDz/yighATm FuhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=ZEfLFAke; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c8-20020a056402120800b00504e176b684si1974060edw.447.2023.04.12.14.32.17; Wed, 12 Apr 2023 14:32:41 -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=@gmail.com header.s=20221208 header.b=ZEfLFAke; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229982AbjDLV31 (ORCPT + 99 others); Wed, 12 Apr 2023 17:29:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229736AbjDLV3X (ORCPT ); Wed, 12 Apr 2023 17:29:23 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33DFA7D9E; Wed, 12 Apr 2023 14:29:18 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id z26so12892087ljq.3; Wed, 12 Apr 2023 14:29:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681334957; 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=456QAvvtFsJz9MlnBR4BMWWfSHxyYmN8x4WUjQvR230=; b=ZEfLFAkeRU2gIWo8oNm4F2yRm3hBbNC/T914gFb4O09VoZ8GEaSwZ3KHPdWKgRGxfS 6Xo2BbxEmF7YME+NVOP8MLjOvJK1uc+sRg5jlrZqvpA5TEqEy016BBKD1WgB4R4odsso TTY6mP7+SuTuNvxww/CMw47g1cfpEsaFZC/xYJGD/Pks1bCVDx4BmT1I/cspN7YxA3xl WqEj22ugjF5jCq6fKepkWWyvKpDtVwdvLhbBLsC23lUQNQQrb2Csj3GmmKr1ZVlS3u+Z 7oAgi3fTGcVvQ97cYaivN3KXgKgc1+3Rd2DzCPUQhYKGtbJPlFU+mz0GgzSgfzgHFM/Q bqVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681334957; 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=456QAvvtFsJz9MlnBR4BMWWfSHxyYmN8x4WUjQvR230=; b=EtFkwL7gApJXoRJ6ZHfGp6mxTSS8SpzHPXc+0tu5N+6Vgx49W9v8AyuJTLVksLJ4IG N32jx7lvQEHPKZ087a54DoZ4Lgb6cDv+vucIB6y/OOtbFn+BOigkN06bUKNTVWZXag4P DdabHap6GXQp+EdR913XZ/PdlgQRqwOzKH9bXECb8DPcmVHuBLvhJSmJaD95HNl6fS2n YSzuNqSaNDUD8GYSOwYLnWCgQzOu4VBr4+hE+sj9U+bel82kw6WNM/Z6GqRxFjCIdXfS UFYgavMFz7XXftzVjjtuDZ0sv3Pko2lyue+Ew838PHVY8w0ogdN53gEtteq5imWoQmtf QSHw== X-Gm-Message-State: AAQBX9cYS7IKlJxTopdW+1yG4NHkPG06LIHWcp20x6nSbueXSLsnAsub Q8ngGJ/N66VKGWI6JLHllLM= X-Received: by 2002:a2e:9a83:0:b0:2a7:84b5:f360 with SMTP id p3-20020a2e9a83000000b002a784b5f360mr23112lji.39.1681334957269; Wed, 12 Apr 2023 14:29:17 -0700 (PDT) Received: from localhost.localdomain (93-80-67-75.broadband.corbina.ru. [93.80.67.75]) by smtp.googlemail.com with ESMTPSA id p14-20020a2e804e000000b002a7758b13c9sm1882481ljg.52.2023.04.12.14.29.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Apr 2023 14:29:16 -0700 (PDT) From: Ivan Mikhaylov To: 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, Ivan Mikhaylov , Paul Fertser Subject: [PATCH 3/4] net/ftgmac100: add mac-address-increment option for GMA command from NC-SI Date: Thu, 13 Apr 2023 00:29:04 +0000 Message-Id: <20230413002905.5513-4-fr0st61te@gmail.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230413002905.5513-1-fr0st61te@gmail.com> References: <20230413002905.5513-1-fr0st61te@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Add s32 mac-address-increment option for Get MAC Address command from NC-SI. Signed-off-by: Paul Fertser Signed-off-by: Ivan Mikhaylov --- Documentation/devicetree/bindings/net/ftgmac100.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/net/ftgmac100.txt b/Documentation/devicetree/bindings/net/ftgmac100.txt index 29234021f601..7ef5329d888d 100644 --- a/Documentation/devicetree/bindings/net/ftgmac100.txt +++ b/Documentation/devicetree/bindings/net/ftgmac100.txt @@ -22,6 +22,10 @@ Optional properties: - use-ncsi: Use the NC-SI stack instead of an MDIO PHY. Currently assumes rmii (100bT) but kept as a separate property in case NC-SI grows support for a gigabit link. +- mac-address-increment: Increment the MAC address taken by GMA command via + NC-SI. Specifies a signed number to be added to the host MAC address as + obtained by the OEM GMA command. If not specified, 1 is used by default + for Broadcom and Intel network cards, 0 otherwise. - no-hw-checksum: Used to disable HW checksum support. Here for backward compatibility as the driver now should have correct defaults based on the SoC. -- 2.40.0