From patchwork Thu Nov 17 21:55:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 1857 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp641053wrr; Thu, 17 Nov 2022 13:57:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf7jBIWqjKQLIw5+oAAwUVofvNdSmqUfiur+ez9vYkSht5XqkY4n5UP2vZucb5n01x5DR8t2 X-Received: by 2002:a63:f962:0:b0:477:1bb8:bbf4 with SMTP id q34-20020a63f962000000b004771bb8bbf4mr1657940pgk.19.1668722225916; Thu, 17 Nov 2022 13:57:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668722225; cv=none; d=google.com; s=arc-20160816; b=gU2Bye2hDeHR/ctjSLVzzqtoHUsbgvmdwZiLXV5s63jFftVX3CqQND+fMMEVK0NpGL e1BgO4ChRxq3zVgbMn8zwqpHdGnHaraJI5yRQeFLACmvhDcdvY6aLTRrwyHW2ph1lsLk 2v15owh9aiDmui6H4LTiJBGjgs9cz0/vi7/BFnl2M6Oq8YTWrKNM0rrBj0TvRGGAj9Ej SLaNTcf5lUX1/d2O+jhqRIovh/fIStrzrZ+5tqXUXGThQo9JMHUiFbAkwvo7KZyZAMKY iKUgt4HtuW3D9/2WXusUHXIsrShpX/icJ8EMquQm7zXZaTvQkjY3R6rYRmsP/AZffFyH eIxg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r10-20020a63d90a000000b0047715878df9si1392988pgg.628.2022.11.17.13.56.52; Thu, 17 Nov 2022 13:57:05 -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 + 99 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749782076586811052?= X-GMAIL-MSGID: =?utf-8?q?1749782076586811052?= 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