From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4023C548EE; Thu, 2 Jul 2026 09:07:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.84.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782983261; cv=none; b=Qs1P5ZMQmilyDc+5m3pcFRRnRhqeRMoHMH5WXDPhoXzDayu0J+BaG3jP9Bk1YwDtS51w2XBgv73/cquoq1l6z/aT9EQ6LXrrM/F+UZgOtMCzADCzCCBljSXwJlCajvbbMXcijzvz1VB1xJgs7Nf+9k2UzQgWCyC/nXpo7eE7Uw8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782983261; c=relaxed/simple; bh=oScd7japEOC1idJH44EGaJHkPP1XthX0ei3V7q31hFA=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=CeVb+KXawiuX9XSmb+4wNnB2arCdA029nTebRqRVptDPkrtBTf+YH/IeZFLUrCnTUv83tBiB+aZb8BA+1+ZkRlwfhehsCrAv2XFp7Q/pOlXVdgPtCN8emMyGpu3sOJ6tv9wG/G34bpFEApMe/eJFwA49UC1cF3Ix/2cDVWh8UXg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=EBX44Ub2; arc=none smtp.client-ip=185.246.84.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="EBX44Ub2" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id 46B211A0DD4; Thu, 2 Jul 2026 09:07:36 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 120F25FF03; Thu, 2 Jul 2026 09:07:36 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id DD2DA104C960F; Thu, 2 Jul 2026 11:07:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1782983254; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding; bh=RRvU3NLk/4mpVHffnMQIvXjqWxDkr7EvtkKewizk1/4=; b=EBX44Ub2oGWA4o66nt8hPWbJ/Bijm+M39Vn8fT9/KjzYlDIzhlpM32Tmi/XNSlXU1UZ/l3 bxM+aelg3kQ/fPgRJnWV4YHaLLz5zFmJHSORAsq5uC1CBK+iaOKWamWpCeVHE/FFtzt4FT HsvRo7mqYX/GEmi/6cvz9yB3BGXsS0sFl8WlY9I35wPpbEAs+iL9uH2/jDkgRHOum3UgcW 5kHOyhvCU8+wt+QIOhvcCJ4CSewccxAn1j3asu8MEc1YLYRJHENqKkjTa6WFOBsMoD+Idz w55I1WlmAO/FCgHcMNfnmxkN5ucfd1ok8dGhPgF7zaOC9N+Hm9bBWICuJysRfw== From: Bastien Curutchet Subject: [PATCH net-next 00/10] net: dsa: microchip: move non-common function out of ksz_common.c Date: Thu, 02 Jul 2026 11:07:22 +0200 Message-Id: <20260702-clean-ksz-4th-v1-0-93441e695fa4@bootlin.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAAAAAAAC/x3MQQqDMBBG4avIrB0wUVP1KuJC7N86tIySBBHFu xtcfov3TgrwgkBddpLHJkEWTTB5RtM86hcs72SyhXWFMzVPf4zKv3BwFWc2rraNe6GtSlBqVo+ P7M+vJ0VkxR5puK4beDXEQmkAAAA= X-Change-ID: 20260615-clean-ksz-4th-1652867e943e To: Woojung Huh , UNGLinuxDriver@microchip.com, Andrew Lunn , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Russell King Cc: Pascal Eberhard , =?utf-8?q?Miqu=C3=A8l_Raynal?= , Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "Bastien Curutchet (Schneider Electric)" , Vladimir Oltean X-Mailer: b4 0.14.3 X-Last-TLS-Session-Version: TLSv1.3 Hi all, This series continues the rework of the KSZ driver initiated by three previous series (see [1], [2] & [3]). The KSZ driver handles more than 20 switches split in several families. This was previously handled through a common set of dsa_switch_ops operations that used device-specific ksz_dev_ops callbacks. The three previous series have split this common struct dsa_switch_ops into 5 to connect the ksz_dev_ops's implentations directly to the new dsa_swicth ops. This series continues in the same vein and moves out of ksz_common.c all the functions that aren't truly common to all the families. On top of this on-going rework I added PTP and periodic output support for the KSZ8463 (which was my first goal). There are still more than 13 patches left for all this so this series will be followed by two others and if you want to see the full picture we can check my github ([4]). FYI, I only have a KSZ8463 so, unfortunately, I can't test other switches. The next series is going to add PTP support for the KSZ8463. The final one will add periodic output support for the KSZ8463. [1]: https://lore.kernel.org/r/20260505-clean-ksz-driver-v1-0-05d70fa42461@bootlin.com [2]: https://lore.kernel.org/r/20260521-clean-ksz-2nd-series-v3-0-75c38971c19a@bootlin.com [3]: https://lore.kernel.org/r/20260608-clean-ksz-3rd-v2-0-6e61b7be23c4@bootlin.com [4]: https://github.com/bastien-curutchet/linux/tree/ksz_rework Signed-off-by: Bastien Curutchet (Schneider Electric) --- Bastien Curutchet (Schneider Electric) (8): net: dsa: microchip: make ksz_is_port_mac_global_usable() static net: dsa: microchip: move ksz88xx stats handling in ksz8.c net: dsa: microchip: move ksz_get_gbit() and ksz_get_xmii() to ksz9477.c net: dsa: microchip: move KSZ9477 errata handling to ksz9477.c net: dsa: microchip: handle KSZ8-specific tc setup in ksz8.c net: dsa: microchip: move ksz9477_set_default_prio_queue_mapping() to ksz9477.c net: dsa: microchip: rename ksz9477_drive_strength_write() net: dsa: microchip: move the drive strength config out of the common section Vladimir Oltean (2): net: dsa: microchip: split ksz8_change_mtu() net: dsa: microchip: split port_max_mtu() implementation drivers/net/dsa/microchip/ksz8.c | 429 ++++++++++++++++++++-- drivers/net/dsa/microchip/ksz9477.c | 164 ++++++++- drivers/net/dsa/microchip/ksz9477.h | 4 +- drivers/net/dsa/microchip/ksz_common.c | 594 +++---------------------------- drivers/net/dsa/microchip/ksz_common.h | 85 ++++- drivers/net/dsa/microchip/lan937x_main.c | 6 +- 6 files changed, 679 insertions(+), 603 deletions(-) --- base-commit: 1c664ec4b9ea827b609d296921ed5bad8a40a158 change-id: 20260615-clean-ksz-4th-1652867e943e Best regards, -- Bastien Curutchet (Schneider Electric)