projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f58148
)
net: dsa: microchip: make phylink_mac_link_up() not optional
author
Oleksij Rempel
<o.rempel@pengutronix.de>
Mon, 27 Nov 2023 14:51:01 +0000
(15:51 +0100)
committer
Jakub Kicinski
<kuba@kernel.org>
Wed, 29 Nov 2023 16:38:34 +0000
(08:38 -0800)
Last part of the driver do now support phylink_mac_link_up(). So, make it
not optional.
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link:
https://lore.kernel.org/r/20231127145101.3039399-4-o.rempel@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/microchip/ksz_common.c
patch
|
blob
|
history
diff --git
a/drivers/net/dsa/microchip/ksz_common.c
b/drivers/net/dsa/microchip/ksz_common.c
index 3b1fe9aff6a81e8c741df98776f9094e01bef509..9545aed905f50cf2d76c696332c1a059bb2aae27 100644
(file)
--- a/
drivers/net/dsa/microchip/ksz_common.c
+++ b/
drivers/net/dsa/microchip/ksz_common.c
@@
-3113,10
+3113,8
@@
static void ksz_phylink_mac_link_up(struct dsa_switch *ds, int port,
{
struct ksz_device *dev = ds->priv;
- if (dev->dev_ops->phylink_mac_link_up)
- dev->dev_ops->phylink_mac_link_up(dev, port, mode, interface,
- phydev, speed, duplex,
- tx_pause, rx_pause);
+ dev->dev_ops->phylink_mac_link_up(dev, port, mode, interface, phydev,
+ speed, duplex, tx_pause, rx_pause);
}
static int ksz_switch_detect(struct ksz_device *dev)