Commit bd048f8c authored by Heiner Kallweit's avatar Heiner Kallweit Committed by Jakub Kicinski
Browse files

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 @status is also passed to __fixed_phy_add(),
where it is saved. Make sure that copy also has link set to 1.

Fixes: 9f07af1d ("net: phy: fixed_phy: initialize the link status as up")
Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Link: https://patch.msgid.link/dab6c10e-725e-4648-9662-39cc821723d0@gmail.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 58673d10
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -124,6 +124,7 @@ static int __fixed_phy_add(int phy_addr,

	fp->addr = phy_addr;
	fp->status = *status;
	fp->status.link = true;

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