Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2668315rwb; Thu, 17 Nov 2022 14:19:14 -0800 (PST) X-Google-Smtp-Source: AA0mqf79CrstnOgrwoHEBiFPc60pRQXjKIPoxfoq+PkZAaSH+ImFGMSyWt6cLDENA+9Di3nPnR65 X-Received: by 2002:a05:6402:4a:b0:461:aa10:cb0c with SMTP id f10-20020a056402004a00b00461aa10cb0cmr3910174edu.383.1668723554057; Thu, 17 Nov 2022 14:19:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668723554; cv=none; d=google.com; s=arc-20160816; b=DshCF84XKqOJoZmwqk0dahJnbzH8dSXjBTvF6tkR2791H+5FuuOzykHX3Jnj/Zbc8y 0sQcvz3oUzGJ+W105/DAV8fb+1yc0LU7NSPLVVrGNVp3dLGsp1kpFWSoFB/va8r8ZJPZ Sj9Jlc6RM4YT829w+rCWQC1k1UcrtKN8B39DyEPONsxfEdvyctJlpOHvJUbidfe7Kgv5 yDFcta87yjQqPQS7ZFMUknp7xoEt0JvNfxO2KgIeFMPZcKxy92RWdggsDgrf2npBHZki kK/zf9Di2ozxxUeA3tc4T/j1xvT7Pzk8UIR/1y6HqNqPfdBXHZLWT6NHVj3+NWbIBZYg UdqQ== 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=zNmqXmrBbcTNgLtoIA7DR43d6CFoTKHtYTDfSnIwJT8=; b=X9T4Y7fXY3R34vfiRNORNKBFMOyAM0igJ/Umk1jDMJVo3Z1oNpiMvV2V8mrmBrOV8Z 6Brj88ZLAW9l7fINU1fkAXKFmkHwg2EvvK6nCpf4GXwvPI+CxiGYbPyrNFWL45RVvAU/ +o25CDg+D1QRFBGhL4tFnAwVynwihqNcGc7BxJ32grygxICwKOuJjLf1NrmULjZtOURB 8lXpUFV4FCYZf0uh+PcTwX5HyRd15r+V3666+5xv/qag3WfM2FT+bVgffeiSnnm64xA5 YFWeUgs376O7N6GAEIvFxzFUQLzPT/9Ks0/ARz5Ym3/SWNyJo/gb5lStdKjyQw5LUnct JkSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=jeh5ac9I; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xe8-20020a170907318800b0078d484e0e7esi1592513ejb.488.2022.11.17.14.18.51; Thu, 17 Nov 2022 14:19:14 -0800 (PST) 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=@bootlin.com header.s=gm1 header.b=jeh5ac9I; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240996AbiKQV4S (ORCPT + 93 others); Thu, 17 Nov 2022 16:56:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240921AbiKQV4H (ORCPT ); Thu, 17 Nov 2022 16:56:07 -0500 Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 462036D48A; Thu, 17 Nov 2022 13:56:01 -0800 (PST) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 8AB501C0003; Thu, 17 Nov 2022 21:55:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1668722160; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zNmqXmrBbcTNgLtoIA7DR43d6CFoTKHtYTDfSnIwJT8=; b=jeh5ac9IpZEJRqXqOYME4oV0/qD8l8wriBZxtyHww+YKrtKe0qzYEhEb4FLSoI39XQYEX5 vNXKgA9jxTahGm3HhAj3tI8sJ35FM6IaLSazwxmfY34JWFc99ukRL+5Oou+XTOmsEdXAyT YGyXeuyfdhMbI/Zy4dFJrg4Z9hbjIeyTOHgNB/G+PQvUmPRu8gS/TlWHBf3Yz29ZAc6pfD MZRkXtL3u286attLAiQ+c4sVBqg3qpNXkGAZz9xMV5LAXz2RDfMF10JQv/wMR5Cs2LueKB AmVHP7Z8v60YeDhtUNax8qgd71rDtDopkS1JpnHVbAACWNe0vvs0ky+txCdF2A== From: Miquel Raynal To: Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, "David S. Miller" , Jakub Kicinski , Paolo Abeni , Eric Dumazet , netdev@vger.kernel.org Cc: Marcin Wojtas , Russell King , Taras Chornyi , , Robert Marko , Luka Perkov , Thomas Petazzoni , Michael Walle , Miquel Raynal Subject: [PATCH 0/6] Marvell nvmem mac addresses support Date: Thu, 17 Nov 2022 22:55:51 +0100 Message-Id: <20221117215557.1277033-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 Hello, Now that we are aligned on how to make information available from static storage media to drivers like Ethernet controller drivers or switch drivers by using nvmem cells and going through the whole nvmem infrastructure, here are two driver updates to reflect these changes. Prior to the driver updates, I propose: * Reverting binding changes which should have never been accepted like that. * A conversion of the (old) Prestera and DFX server bindings (optional, can be dropped if not considered necessary). * A better description of the more recent Prestera PCI switch. Please mind that this series cannot break anything since retrieving the MAC address Prestera driver has never worked upstream, because the (ONIE tlv) driver supposed to export the MAC address has not been accepted in its original form and has been updated to the nvmem-layout infrastructure (bindings have been merged, the code remains to be applied). Thanks, Miquèl Miquel Raynal (6): Revert "dt-bindings: marvell,prestera: Add description for device-tree bindings" dt-bindings: net: marvell,dfx-server: Convert to yaml dt-bindings: net: marvell,prestera: Convert to yaml dt-bindings: net: marvell,prestera: Describe PCI devices of the prestera family net: marvell: prestera: Avoid unnecessary DT lookups net: mvpp2: Consider NVMEM cells as possible MAC address source .../bindings/net/marvell,dfx-server.yaml | 60 +++++++++++++ .../bindings/net/marvell,prestera.txt | 81 ----------------- .../bindings/net/marvell,prestera.yaml | 86 +++++++++++++++++++ .../net/ethernet/marvell/mvpp2/mvpp2_main.c | 6 ++ .../ethernet/marvell/prestera/prestera_main.c | 15 +--- 5 files changed, 156 insertions(+), 92 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/marvell,dfx-server.yaml delete mode 100644 Documentation/devicetree/bindings/net/marvell,prestera.txt create mode 100644 Documentation/devicetree/bindings/net/marvell,prestera.yaml -- 2.34.1