From 7829ae4a2f9d37fa66b683d5824e0e3e93bb6c50 Mon Sep 17 00:00:00 2001 From: Ansuel Smith Date: Fri, 7 Jan 2022 23:32:59 +0100 Subject: generic: 5.15: qca8k: refresh backport patches Refresh qca8k backport patches for 5.15 kernel. Vlan_prepare is now dropped and there were some changes to vlan add/remove functions. Signed-off-by: Ansuel Smith --- ...t-dsa-qca8k-initial-conversion-to-regmap-heper.patch | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'target/linux/generic/backport-5.15/757-net-next-net-dsa-qca8k-initial-conversion-to-regmap-heper.patch') diff --git a/target/linux/generic/backport-5.15/757-net-next-net-dsa-qca8k-initial-conversion-to-regmap-heper.patch b/target/linux/generic/backport-5.15/757-net-next-net-dsa-qca8k-initial-conversion-to-regmap-heper.patch index 4ca9c8ba41..e0a9c809d8 100644 --- a/target/linux/generic/backport-5.15/757-net-next-net-dsa-qca8k-initial-conversion-to-regmap-heper.patch +++ b/target/linux/generic/backport-5.15/757-net-next-net-dsa-qca8k-initial-conversion-to-regmap-heper.patch @@ -23,6 +23,8 @@ Signed-off-by: David S. Miller drivers/net/dsa/qca8k.c | 107 +++++++++++++++++++++--------------------------- 1 file changed, 47 insertions(+), 60 deletions(-) +diff --git a/drivers/net/dsa/qca8k.c b/drivers/net/dsa/qca8k.c +index f63a432916360..d64a9af186beb 100644 --- a/drivers/net/dsa/qca8k.c +++ b/drivers/net/dsa/qca8k.c @@ -10,6 +10,7 @@ @@ -33,7 +35,7 @@ Signed-off-by: David S. Miller #include #include #include -@@ -152,6 +153,25 @@ qca8k_set_page(struct mii_bus *bus, u16 +@@ -152,6 +153,25 @@ qca8k_set_page(struct mii_bus *bus, u16 page) static int qca8k_read(struct qca8k_priv *priv, u32 reg, u32 *val) { @@ -116,7 +118,7 @@ Signed-off-by: David S. Miller static const struct regmap_range qca8k_readable_ranges[] = { regmap_reg_range(0x0000, 0x00e4), /* Global control */ regmap_reg_range(0x0100, 0x0168), /* EEE control */ -@@ -282,26 +276,19 @@ static struct regmap_config qca8k_regmap +@@ -282,26 +276,19 @@ static struct regmap_config qca8k_regmap_config = { .max_register = 0x16ac, /* end MIB - Port6 range */ .reg_read = qca8k_regmap_read, .reg_write = qca8k_regmap_write, @@ -166,7 +168,7 @@ Signed-off-by: David S. Miller if (ret) goto exit; -@@ -597,9 +584,9 @@ qca8k_port_set_status(struct qca8k_priv +@@ -597,9 +584,9 @@ qca8k_port_set_status(struct qca8k_priv *priv, int port, int enable) mask |= QCA8K_PORT_STATUS_LINK_AUTO; if (enable) @@ -178,7 +180,7 @@ Signed-off-by: David S. Miller } static u32 -@@ -861,8 +848,8 @@ qca8k_setup_mdio_bus(struct qca8k_priv * +@@ -861,8 +848,8 @@ qca8k_setup_mdio_bus(struct qca8k_priv *priv) * a dt-overlay and driver reload changed the configuration */ @@ -221,7 +223,7 @@ Signed-off-by: David S. Miller if (ret) return ret; -@@ -1745,9 +1732,9 @@ qca8k_port_bridge_join(struct dsa_switch +@@ -1741,9 +1728,9 @@ qca8k_port_bridge_join(struct dsa_switch *ds, int port, struct net_device *br) /* Add this port to the portvlan mask of the other ports * in the bridge */ @@ -234,7 +236,7 @@ Signed-off-by: David S. Miller if (ret) return ret; if (i != port) -@@ -1777,9 +1764,9 @@ qca8k_port_bridge_leave(struct dsa_switc +@@ -1773,9 +1760,9 @@ qca8k_port_bridge_leave(struct dsa_switch *ds, int port, struct net_device *br) /* Remove this port to the portvlan mask of the other ports * in the bridge */ @@ -247,3 +249,6 @@ Signed-off-by: David S. Miller } /* Set the cpu port to be the only one in the portvlan mask of +-- +cgit 1.2.3-1.el7 + -- cgit v1.2.3