[openwrt/openwrt] realtek: 6.6: refresh patch net-phy-add-an-MDIO-SMBus-library
LEDE Commits
lede-commits at lists.infradead.org
Sat Sep 14 12:30:19 PDT 2024
svanheule pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/b13c0b57b22be34229a1c77d94747d02ea0c3d92
commit b13c0b57b22be34229a1c77d94747d02ea0c3d92
Author: Markus Stockhausen <markus.stockhausen at gmx.de>
AuthorDate: Mon Sep 9 04:24:24 2024 -0400
realtek: 6.6: refresh patch net-phy-add-an-MDIO-SMBus-library
No content changes. Two hooks had to be adapted to take over the
new patch locations.
Signed-off-by: Markus Stockhausen <markus.stockhausen at gmx.de>
---
.../712-net-phy-add-an-MDIO-SMBus-library.patch | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/target/linux/realtek/patches-6.6/712-net-phy-add-an-MDIO-SMBus-library.patch b/target/linux/realtek/patches-6.6/712-net-phy-add-an-MDIO-SMBus-library.patch
index 767a5d8ec5..03c62b505d 100644
--- a/target/linux/realtek/patches-6.6/712-net-phy-add-an-MDIO-SMBus-library.patch
+++ b/target/linux/realtek/patches-6.6/712-net-phy-add-an-MDIO-SMBus-library.patch
@@ -35,10 +35,10 @@ Signed-off-by: Antoine Tenart <antoine.tenart at bootlin.com>
depends on ARCH_XGENE || COMPILE_TEST
--- a/drivers/net/mdio/Makefile
+++ b/drivers/net/mdio/Makefile
-@@ -19,6 +19,7 @@ obj-$(CONFIG_MDIO_MOXART) += mdio-moxar
- obj-$(CONFIG_MDIO_MSCC_MIIM) += mdio-mscc-miim.o
+@@ -20,6 +20,7 @@ obj-$(CONFIG_MDIO_MSCC_MIIM) += mdio-ms
obj-$(CONFIG_MDIO_MVUSB) += mdio-mvusb.o
obj-$(CONFIG_MDIO_OCTEON) += mdio-octeon.o
+ obj-$(CONFIG_MDIO_REGMAP) += mdio-regmap.o
+obj-$(CONFIG_MDIO_SMBUS) += mdio-smbus.o
obj-$(CONFIG_MDIO_SUN4I) += mdio-sun4i.o
obj-$(CONFIG_MDIO_THUNDER) += mdio-thunder.o
@@ -110,7 +110,7 @@ Signed-off-by: Antoine Tenart <antoine.tenart at bootlin.com>
+MODULE_LICENSE("GPL");
--- a/drivers/net/phy/Kconfig
+++ b/drivers/net/phy/Kconfig
-@@ -61,6 +61,7 @@ config SFP
+@@ -65,6 +65,7 @@ config SFP
depends on I2C && PHYLINK
depends on HWMON || HWMON=n
select MDIO_I2C
@@ -120,10 +120,10 @@ Signed-off-by: Antoine Tenart <antoine.tenart at bootlin.com>
--- a/include/linux/mdio/mdio-i2c.h
+++ b/include/linux/mdio/mdio-i2c.h
-@@ -12,5 +12,8 @@ struct i2c_adapter;
- struct mii_bus;
+@@ -20,5 +20,8 @@ enum mdio_i2c_proto {
- struct mii_bus *mdio_i2c_alloc(struct device *parent, struct i2c_adapter *i2c);
+ struct mii_bus *mdio_i2c_alloc(struct device *parent, struct i2c_adapter *i2c,
+ enum mdio_i2c_proto protocol);
+struct mii_bus *mdio_smbus_alloc(struct device *parent, struct i2c_adapter *i2c);
+bool i2c_mii_valid_phy_id(int phy_id);
+unsigned int i2c_mii_phy_addr(int phy_id);
@@ -131,7 +131,7 @@ Signed-off-by: Antoine Tenart <antoine.tenart at bootlin.com>
#endif
--- a/drivers/net/mdio/mdio-i2c.c
+++ b/drivers/net/mdio/mdio-i2c.c
-@@ -18,12 +18,12 @@
+@@ -20,12 +20,12 @@
* specified to be present in SFP modules. These correspond with PHY
* addresses 16 and 17. Disallow access to these "phy" addresses.
*/
More information about the lede-commits
mailing list