From: Heiner Kallweit Date: Wed, 19 Nov 2025 07:05:45 +0000 (+0100) Subject: net: phy: fixed_phy: fix missing initialization of fixed phy link X-Git-Tag: v6.19-rc1~170^2~105 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bd048f8ce6ce8d5e16415fd6f7506e916cb3d418;p=thirdparty%2Fkernel%2Flinux.git 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: 9f07af1d2742 ("net: phy: fixed_phy: initialize the link status as up") Signed-off-by: Heiner Kallweit Link: https://patch.msgid.link/dab6c10e-725e-4648-9662-39cc821723d0@gmail.com Signed-off-by: Jakub Kicinski --- diff --git a/drivers/net/phy/fixed_phy.c b/drivers/net/phy/fixed_phy.c index 1ad77f542c1fa..1ea67119f08f9 100644 --- a/drivers/net/phy/fixed_phy.c +++ b/drivers/net/phy/fixed_phy.c @@ -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);