Skip to content

Commit 30ac686

Browse files
hkallweitNipaLocal
authored andcommitted
net: phy: fixed_phy: fix missing initialization of fixed phy link
Original change remove the link initialization from the passed struct fixed_phy_status, but missed to add it in all places in the code. Fixes: 9f07af1 ("net: phy: fixed_phy: initialize the link status as up") Signed-off-by: Heiner Kallweit <[email protected]> Signed-off-by: NipaLocal <nipa@local>
1 parent 8c40012 commit 30ac686

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/phy/fixed_phy.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ static int __fixed_phy_add(int phy_addr,
124124

125125
fp->addr = phy_addr;
126126
fp->status = *status;
127+
fp->status.link = true;
127128

128129
list_add_tail(&fp->node, &fmb_phys);
129130

0 commit comments

Comments
 (0)