ipq40xx: ipqess: remove explicit phylink_generic_validate() references
The phylink_generic_validate() can be automatically called if phylink_validate method was not given in the switch operations. Link: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.6.y&id=5938bce4b6e2146d5194badd7ecf0acc6bf877fc Signed-off-by: Shiji Yang <yangshiji66@outlook.com> Link: https://github.com/openwrt/openwrt/pull/18725 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
parent
1f7514bb92
commit
2a31e006d6
3 changed files with 3 additions and 4 deletions
|
@ -88,7 +88,7 @@ Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
|
||||||
+ipq_ess-objs := ipqess.o ipqess_ethtool.o
|
+ipq_ess-objs := ipqess.o ipqess_ethtool.o
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/drivers/net/ethernet/qualcomm/ipqess/ipqess.c
|
+++ b/drivers/net/ethernet/qualcomm/ipqess/ipqess.c
|
||||||
@@ -0,0 +1,1249 @@
|
@@ -0,0 +1,1248 @@
|
||||||
+// SPDX-License-Identifier: GPL-2.0 OR ISC
|
+// SPDX-License-Identifier: GPL-2.0 OR ISC
|
||||||
+/* Copyright (c) 2014 - 2017, The Linux Foundation. All rights reserved.
|
+/* Copyright (c) 2014 - 2017, The Linux Foundation. All rights reserved.
|
||||||
+ * Copyright (c) 2017 - 2018, John Crispin <john@phrozen.org>
|
+ * Copyright (c) 2017 - 2018, John Crispin <john@phrozen.org>
|
||||||
|
@ -1154,7 +1154,6 @@ Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
+static struct phylink_mac_ops ipqess_phylink_mac_ops = {
|
+static struct phylink_mac_ops ipqess_phylink_mac_ops = {
|
||||||
+ .validate = phylink_generic_validate,
|
|
||||||
+ .mac_config = ipqess_mac_config,
|
+ .mac_config = ipqess_mac_config,
|
||||||
+ .mac_link_up = ipqess_mac_link_up,
|
+ .mac_link_up = ipqess_mac_link_up,
|
||||||
+ .mac_link_down = ipqess_mac_link_down,
|
+ .mac_link_down = ipqess_mac_link_down,
|
||||||
|
|
|
@ -142,7 +142,7 @@ Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
|
||||||
static void ipqess_hw_stop(struct ipqess *ess)
|
static void ipqess_hw_stop(struct ipqess *ess)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
@@ -1189,12 +1247,19 @@ static int ipqess_axi_probe(struct platf
|
@@ -1188,12 +1246,19 @@ static int ipqess_axi_probe(struct platf
|
||||||
netif_napi_add(netdev, &ess->rx_ring[i].napi_rx, ipqess_rx_napi);
|
netif_napi_add(netdev, &ess->rx_ring[i].napi_rx, ipqess_rx_napi);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ Signed-off-by: Robert Marko <robimarko@gmail.com>
|
||||||
}
|
}
|
||||||
|
|
||||||
return IRQ_HANDLED;
|
return IRQ_HANDLED;
|
||||||
@@ -1269,6 +1269,8 @@ static int ipqess_axi_probe(struct platf
|
@@ -1268,6 +1268,8 @@ static int ipqess_axi_probe(struct platf
|
||||||
if (err)
|
if (err)
|
||||||
goto err_notifier_unregister;
|
goto err_notifier_unregister;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue