Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: phy: fixed_phy: initialize the link status as up

All callers initialize the link status as up. This change is in line
with how of_phy_register_fixed_link() behaves.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://patch.msgid.link/45f644e8-2292-4787-a27a-f69084c93218@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

authored by

Heiner Kallweit and committed by
Paolo Abeni
9f07af1d b63945b0

+5 -8
+5 -8
drivers/net/phy/fixed_phy.c
··· 174 174 } 175 175 176 176 /* propagate the fixed link values to struct phy_device */ 177 - phy->link = status->link; 178 - if (status->link) { 179 - phy->speed = status->speed; 180 - phy->duplex = status->duplex; 181 - phy->pause = status->pause; 182 - phy->asym_pause = status->asym_pause; 183 - } 177 + phy->link = 1; 178 + phy->speed = status->speed; 179 + phy->duplex = status->duplex; 180 + phy->pause = status->pause; 181 + phy->asym_pause = status->asym_pause; 184 182 185 183 of_node_get(np); 186 184 phy->mdio.dev.of_node = np; ··· 222 224 struct phy_device *fixed_phy_register_100fd(void) 223 225 { 224 226 static const struct fixed_phy_status status = { 225 - .link = true, 226 227 .speed = SPEED_100, 227 228 .duplex = DUPLEX_FULL, 228 229 };