Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5665314rwr; Tue, 9 May 2023 04:57:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5uhhfKLqQy0Jr/C1PIJvmaapplaVdJNuqgaioZO+O3O5Yuw/2eStNTaZ841AqHyDdzdcbY X-Received: by 2002:a17:903:11c3:b0:1ab:160c:526d with SMTP id q3-20020a17090311c300b001ab160c526dmr14813575plh.22.1683633423286; Tue, 09 May 2023 04:57:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683633423; cv=none; d=google.com; s=arc-20160816; b=GIsLcWGpiRPfD3vFxYh53lIrOFDlw0FyFLJ5nuBdyd8wvrTiEId4IN4sI6aRIqaAa5 tYlpgiJYFVfMvGb6FU4kFZ+/EcLxkxtEHKCDiBP0LrDk4I2fS4laD17K/pc/IrJW/B4N pp+KCIbaGrlBJIOXFaQYbNbxBgc4VZ3Sm3j8zmcp6iB6gufBXGp0taSO8fljOXdhfEGW 3MFHR7yL9g6cmZU+26rVamXmj4YaQ4DYLLBQs6Osu3KtvludS2hkUZ1rWjXFy+DbnYtG CC071BKPmWC5hEd8nRazwrMBMyNikGyuPthw4q9Rf/rf1MXKyTLCZoYfMzEMn/p3yPjf ZOyw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=OAjLxf81Fsfze5ee8+9aMhvLTmCgUl34iyRmfeaLkcc=; b=OyEjVK11QgZ52RXH/muRdbrfe+1vt6mVIjVF2pstxYN8vAvacrIr5quAGgy9C7au7R e02s+P173Jp41lC2qt2Y6Jn2BTFLmMezFKuujrVR49wLw9CIfsUlC5nDOksod3S90E0c tFOmjVU86AwABfGPuKLzM8bpKxRatvm8K8tV+xMIMRBh+h/Rlsc2n0aiZK4EVqJZyQU1 AfAxde3Zp2XhJKETskNsz9+YkDh/USlyNT/AJ8a9OAz2xDtgHLSXPtxULM6m13rPJZtG Tv6mR5TX2EAsHnGj0RVaF9gzJxrV+bzJc2MOttNs/tbMwTc0R1HM4IhNGhMniCoiIQHL pC+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=oWDWvpWm; 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 oo2-20020a17090b1c8200b0024b27e48a27si16617533pjb.74.2023.05.09.04.56.51; Tue, 09 May 2023 04:57:03 -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=oWDWvpWm; 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 S234853AbjEILfW (ORCPT + 99 others); Tue, 9 May 2023 07:35:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234299AbjEILfV (ORCPT ); Tue, 9 May 2023 07:35:21 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55A522D58; Tue, 9 May 2023 04:35:19 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-4f139de8cefso33274447e87.0; Tue, 09 May 2023 04:35:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683632117; x=1686224117; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=OAjLxf81Fsfze5ee8+9aMhvLTmCgUl34iyRmfeaLkcc=; b=oWDWvpWmPXiPMas0xDaR8hzPYdvhnLLKn1woROGdVxLcwxuV9BcqttRtRA0cmWtbyy ihsbuGrOx4GHyPrvBWZTT6q3///KIUz9ZNxQUneDXwkujFsvFQOWfNS/by5X4siTE+kv IaTQucgPcC32EY0xooNvWyawTnY8/PTYTsAWrgm1ejhYWIIVYvzjErykVFlVAELzqy5E 2VUEVjJU/IIUdAI8eGJZdHJEvGu6wnchJ6pcKxf08zwWf2VuPTauDkaq9LK9ykyaBlza Sav70WM+Odx6vFLCib0EmAhvuMzmdsSCcL4mK9z9gClTt7bENcNxhacBkFc9ioVHXSpA 0hWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683632117; x=1686224117; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=OAjLxf81Fsfze5ee8+9aMhvLTmCgUl34iyRmfeaLkcc=; b=RbbNq2h+o9GJx0CFJ4TT8PFSnWtj0uLSHr15kySGtzyQU2+rA1czj/uHy0XuwkqwzT B/j6LpqUSosSsNpdC2son9bJMT07PLvyUA71XQzkWDH7JSoJWpHKONkHfZ6I1lgJ7+ZI 3r8hQ+llO8J3gDbwdAYMsxbxF8AS1gZwPBUvnGr0OTm+W4ML7l9jQuKfqWLtWAYQ7p/X OMxGrb15Qe51zNB9dF4FjKz3muZdoXMyzloPPUx/m9LouOJ+6xbdtuXg1+MpW7sspXyZ o25icPoq5vQPfTAxWGGD8RmS2LTm0V91Ks7/rW9bO35AXyIDc1Ts4Vya4CqUim9RB22U 62bg== X-Gm-Message-State: AC+VfDz9d4DLEGshjv4ho2Wk4Zz0udfs/5oGKszhQJeSTAhwj87qE3tL pQu5Vc+jSix1em6GAxMXt5g= X-Received: by 2002:ac2:4311:0:b0:4ac:b7bf:697a with SMTP id l17-20020ac24311000000b004acb7bf697amr690386lfh.4.1683632117428; Tue, 09 May 2023 04:35:17 -0700 (PDT) Received: from localhost.localdomain (93-80-66-133.broadband.corbina.ru. [93.80.66.133]) by smtp.googlemail.com with ESMTPSA id k16-20020ac24570000000b004f25ccac240sm108940lfm.74.2023.05.09.04.35.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 May 2023 04:35: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, openbmc@lists.ozlabs.org, Ivan Mikhaylov Subject: [PATCH v2 0/5] Refactoring for GMA command Date: Tue, 9 May 2023 14:34:59 +0000 Message-Id: <20230509143504.30382-1-fr0st61te@gmail.com> X-Mailer: git-send-email 2.40.1 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,T_SCC_BODY_TEXT_LINE 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 Make one GMA function for all manufacturers, change ndo_set_mac_address to dev_set_mac_address for notifiying net layer about MAC change which ndo_set_mac_address doesn't do. Add mac-address-increment option for possibility to control MAC address assignment on BMC via GMA command. Changes from v1: 1. delete ftgmac100.txt changes about mac-address-increment 2. add convert to yaml from ftgmac100.txt 3. add mac-address-increment option for ethernet-controller.yaml Ivan Mikhaylov (5): net/ncsi: make one oem_gma function for all mfr id net/ncsi: change from ndo_set_mac_address to dev_set_mac_address dt-bindings: net: add mac-address-increment option net/ncsi: add shift MAC address property dt-bindings: net: ftgmac100: convert to yaml version from txt .../bindings/net/ethernet-controller.yaml | 8 ++ .../bindings/net/faraday,ftgmac100.yaml | 110 ++++++++++++++++++ net/ncsi/ncsi-rsp.c | 108 ++++++----------- 3 files changed, 155 insertions(+), 71 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/faraday,ftgmac100.yaml -- 2.40.1