mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 23:12:32 +00:00
8f8d5decc9
Removed because they are upstream:
generic/backport-5.15/704-15-v5.19-net-mtk_eth_soc-move-MAC_MCR-setting-to-mac_finish.patch
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.15.y&id=c5c0760adc260d55265c086b9efb350ea6dda38b
generic/pending-5.15/735-net-mediatek-mtk_eth_soc-release-MAC_MCR_FORCE_LINK-.patch
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.15.y&id=448cc8b5f743985f6d1d98aa4efb386fef4c3bf2
generic/pending-5.15/736-net-ethernet-mtk_eth_soc-fix-PPE-hanging-issue.patch
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.15.y&id=9fcadd125044007351905d40c405fadc2d3bb6d6
Add new configuration symbols for tegra target.
Tested-by: Stijn Segers <foss@volatilesystems.org>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit fb2c6e9d4d
)
76 lines
2.1 KiB
Diff
76 lines
2.1 KiB
Diff
From 25d15dee34a1a40d5fd71636a205e3211f09fd1d Mon Sep 17 00:00:00 2001
|
|
From: Daniel Golle <daniel@makrotopia.org>
|
|
Date: Mon, 3 Apr 2023 02:18:28 +0100
|
|
Subject: [PATCH 10/16] net: dsa: mt7530: move p5_intf_modes() function to
|
|
mt7530.c
|
|
|
|
In preparation of splitting mt7530.c into a driver for MDIO-connected
|
|
as well as MDIO-accessed built-in switches on one hand and MMIO-accessed
|
|
built-in switches move the p5_inft_modes() function from mt7530.h to
|
|
mt7530.c. The function is only needed there and will trigger a compiler
|
|
warning about a defined but unused function otherwise when including
|
|
mt7530.h in the to-be-introduced bus-specific drivers.
|
|
|
|
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
|
|
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
|
|
Signed-off-by: David S. Miller <davem@davemloft.net>
|
|
---
|
|
drivers/net/dsa/mt7530.c | 18 ++++++++++++++++++
|
|
drivers/net/dsa/mt7530.h | 18 ------------------
|
|
2 files changed, 18 insertions(+), 18 deletions(-)
|
|
|
|
--- a/drivers/net/dsa/mt7530.c
|
|
+++ b/drivers/net/dsa/mt7530.c
|
|
@@ -951,6 +951,24 @@ mt7530_set_ageing_time(struct dsa_switch
|
|
return 0;
|
|
}
|
|
|
|
+static const char *p5_intf_modes(unsigned int p5_interface)
|
|
+{
|
|
+ switch (p5_interface) {
|
|
+ case P5_DISABLED:
|
|
+ return "DISABLED";
|
|
+ case P5_INTF_SEL_PHY_P0:
|
|
+ return "PHY P0";
|
|
+ case P5_INTF_SEL_PHY_P4:
|
|
+ return "PHY P4";
|
|
+ case P5_INTF_SEL_GMAC5:
|
|
+ return "GMAC5";
|
|
+ case P5_INTF_SEL_GMAC5_SGMII:
|
|
+ return "GMAC5_SGMII";
|
|
+ default:
|
|
+ return "unknown";
|
|
+ }
|
|
+}
|
|
+
|
|
static void mt7530_setup_port5(struct dsa_switch *ds, phy_interface_t interface)
|
|
{
|
|
struct mt7530_priv *priv = ds->priv;
|
|
--- a/drivers/net/dsa/mt7530.h
|
|
+++ b/drivers/net/dsa/mt7530.h
|
|
@@ -709,24 +709,6 @@ enum p5_interface_select {
|
|
P5_INTF_SEL_GMAC5_SGMII,
|
|
};
|
|
|
|
-static const char *p5_intf_modes(unsigned int p5_interface)
|
|
-{
|
|
- switch (p5_interface) {
|
|
- case P5_DISABLED:
|
|
- return "DISABLED";
|
|
- case P5_INTF_SEL_PHY_P0:
|
|
- return "PHY P0";
|
|
- case P5_INTF_SEL_PHY_P4:
|
|
- return "PHY P4";
|
|
- case P5_INTF_SEL_GMAC5:
|
|
- return "GMAC5";
|
|
- case P5_INTF_SEL_GMAC5_SGMII:
|
|
- return "GMAC5_SGMII";
|
|
- default:
|
|
- return "unknown";
|
|
- }
|
|
-}
|
|
-
|
|
struct mt7530_priv;
|
|
|
|
struct mt753x_pcs {
|