projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f863ce
)
net: txgbe: rename txgbe_get_phy_link()
author
Jiawen Wu
<jiawenwu@trustnetic.com>
Tue, 14 Oct 2025 06:17:26 +0000
(14:17 +0800)
committer
Paolo Abeni
<pabeni@redhat.com>
Thu, 16 Oct 2025 13:41:34 +0000
(15:41 +0200)
The function txgbe_get_phy_link() is more appropriately named
txgbe_get_mac_link(), since it reads the link status from the MAC
register.
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
Link:
https://patch.msgid.link/20251014061726.36660-4-jiawenwu@trustnetic.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/wangxun/txgbe/txgbe_aml.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/wangxun/txgbe/txgbe_aml.c
b/drivers/net/ethernet/wangxun/txgbe/txgbe_aml.c
index
1da9243
..
35eebdb
100644
(file)
--- a/
drivers/net/ethernet/wangxun/txgbe/txgbe_aml.c
+++ b/
drivers/net/ethernet/wangxun/txgbe/txgbe_aml.c
@@
-118,7
+118,7
@@
static void txgbe_get_link_capabilities(struct wx *wx, int *speed, int *duplex)
*duplex = *speed == SPEED_UNKNOWN ? DUPLEX_HALF : DUPLEX_FULL;
}
-static void txgbe_get_
phy
_link(struct wx *wx, int *speed)
+static void txgbe_get_
mac
_link(struct wx *wx, int *speed)
{
u32 status;
@@
-234,7
+234,7
@@
static void txgbe_get_link_state(struct phylink_config *config,
struct wx *wx = phylink_to_wx(config);
int speed;
- txgbe_get_
phy
_link(wx, &speed);
+ txgbe_get_
mac
_link(wx, &speed);
state->link = speed != SPEED_UNKNOWN;
state->speed = speed;
state->duplex = state->link ? DUPLEX_FULL : DUPLEX_UNKNOWN;