Skip to content

Commit a058de9

Browse files
Jiawen WuPaolo Abeni
authored andcommitted
net: txgbe: rename txgbe_get_phy_link()
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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
1 parent 1f863ce commit a058de9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/ethernet/wangxun/txgbe/txgbe_aml.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ static void txgbe_get_link_capabilities(struct wx *wx, int *speed, int *duplex)
118118
*duplex = *speed == SPEED_UNKNOWN ? DUPLEX_HALF : DUPLEX_FULL;
119119
}
120120

121-
static void txgbe_get_phy_link(struct wx *wx, int *speed)
121+
static void txgbe_get_mac_link(struct wx *wx, int *speed)
122122
{
123123
u32 status;
124124

@@ -234,7 +234,7 @@ static void txgbe_get_link_state(struct phylink_config *config,
234234
struct wx *wx = phylink_to_wx(config);
235235
int speed;
236236

237-
txgbe_get_phy_link(wx, &speed);
237+
txgbe_get_mac_link(wx, &speed);
238238
state->link = speed != SPEED_UNKNOWN;
239239
state->speed = speed;
240240
state->duplex = state->link ? DUPLEX_FULL : DUPLEX_UNKNOWN;

0 commit comments

Comments
 (0)