From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 13 Apr 2022 10:24:12 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1neYIP-000W0h-Vm for lore@lore.pengutronix.de; Wed, 13 Apr 2022 10:24:12 +0200 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1neYIM-0002Hv-LB for lore@pengutronix.de; Wed, 13 Apr 2022 10:24:11 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Ei92idqk3Zrx6H+fjh5VJYLRr3kjL7ABKoe4I4idDxQ=; b=rciEg8RT1SmZRK vIuOFFeC7yxGAUTtKrOBsDzu0Lo8gqcY30NbyDE7OKURH2pTPetwvqbJGPeEDdkzl6rOWQeUjKKl6 tlAYfvT9W/PII1Cag4/q+6/eGdEz6yRQkldcRAuWAb2Cue40r2XPPF6nIxZTStdF35TNPM9fvXPd9 CQQq/pBxzqO/Png3SK4QSyj6I7Nh5auhoQ6I3cix/nGiYieDBSgzVBaXz0DWN9z493X9nHm7c85wT 8DYEJ+6q9Oo6M6amPKpXgijCSQDpQA5Jm5Wb0KbMb9W8yQ7jIeZRRM3o+J+hLRbnofX23J/vP0ki9 a4fqlrolDqfhU74U17jQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1neYGd-0000ZF-H4; Wed, 13 Apr 2022 08:22:23 +0000 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1neYGS-0000Tg-I7 for barebox@lists.infradead.org; Wed, 13 Apr 2022 08:22:14 +0000 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1neYGP-0001aS-Dh; Wed, 13 Apr 2022 10:22:09 +0200 Received: from [2a0a:edc0:0:1101:1d::ac] (helo=dude04.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1neYGQ-002kD8-3t; Wed, 13 Apr 2022 10:22:08 +0200 Received: from ore by dude04.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1neYGM-001nke-CK; Wed, 13 Apr 2022 10:22:06 +0200 From: Oleksij Rempel To: barebox@lists.infradead.org Cc: Oleksij Rempel Date: Wed, 13 Apr 2022 10:21:51 +0200 Message-Id: <20220413082205.429509-1-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220413_012212_632966_D2AD51C4 X-CRM114-Status: GOOD ( 13.90 ) X-BeenThere: barebox@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" X-SA-Exim-Connect-IP: 2607:7c80:54:e::133 X-SA-Exim-Mail-From: barebox-bounces+lore=pengutronix.de@lists.infradead.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-5.0 required=4.0 tests=AWL,BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.2 Subject: [PATCH v5 00/14] provide DSA support X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on metis.ext.pengutronix.de) changes v5: - add dev_print_hex_dump() support - drop rx_preprocessored packed on error - dsa: drop of_device_ensure_probed - dsa: rework Kconfig - sja1105: link device config to the of_matching data. - KSZ9477: add code origin comment - ethlog: do not check on already registered monitor changes v4: - ethlog: add patch description - dsa: fix spelling - dsa: make sure cpu port count incremented on every port - dsa: rework error handling - dsa: make sure port_enable/port_disable are optional - dsa: make use of of_phy_register_fixed_link() - sja1105: use dev_err instead of printf - sja1105: do sanity check on dsa_register - ksz9477: rework spi_write function - ksz9477: do not clean PORT_TX/RX_ENABLE flags changes v3: - remove no needed work artifact ksz9477_old.c changes v2: - mane sure optional functions are called conditionally - add support for ksz9477 and ksz9893 - add ethlog, kind of replacement for tshark or tcpdump Oleksij Rempel (14): net: add RX preprocessor support net: add of_find_eth_device_by_node() function net: phy: export of_phy_register_fixed_link() function net: add DSA framework to support basic switch functionality driver: add dev_get_priv() helper net: port part of if_vlan header from kernel v5.17 spi: port spi_sync_transfer() function from kernel v5.17 net: mdio: add MDIO_DEVAD_NONE define net: phy: make sure MDIO bus is probed if we search for the PHY of_net: add rev-rmii support net: dsa: add support for SJA11xx switches net: dsa: add KSZ9477 switch SPI driver hexdump: provide support for dev_print_hex_dump() add ethlog command commands/Kconfig | 8 + commands/Makefile | 1 + commands/ethlog.c | 80 + drivers/net/Kconfig | 31 + drivers/net/Makefile | 3 + drivers/net/dsa.c | 444 ++++ drivers/net/ksz9477.c | 566 +++++ drivers/net/phy/phy.c | 5 +- drivers/net/sja1105.c | 2987 +++++++++++++++++++++++++++ drivers/of/of_net.c | 1 + include/driver.h | 5 + include/dsa.h | 90 + include/linux/if_vlan.h | 56 + include/linux/mdio.h | 2 + include/linux/phy.h | 3 + include/net.h | 15 + include/platform_data/ksz9477_reg.h | 1665 +++++++++++++++ include/printk.h | 14 +- include/spi/spi.h | 24 + lib/hexdump.c | 22 +- net/eth.c | 20 +- net/net.c | 14 + 22 files changed, 6042 insertions(+), 14 deletions(-) create mode 100644 commands/ethlog.c create mode 100644 drivers/net/dsa.c create mode 100644 drivers/net/ksz9477.c create mode 100644 drivers/net/sja1105.c create mode 100644 include/dsa.h create mode 100644 include/linux/if_vlan.h create mode 100644 include/platform_data/ksz9477_reg.h -- 2.30.2 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox