From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=220.197.31.6 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796007028; b=WEvxXhgxPkb5/a5MuQzBu0DckRq4sSPoed3YnUFy8zgvkJUiVIJMeLd60rLQIZAfk+Cb RY6/39uxgCjaFTKAKEnTEUcECHOh+YNobOvr9F9GqRqV/MNMDU0tvWMr6Qg87HDOvH3KI COHvB/mnojwYf80jSBWWGFLwpRxgq/pgt2U5glUt1XPYF5OGV0V2zZ4uNwVNVhXoQN6uJ etcm5NMydaUbsVhpXWo8anbSammwbuWtx0pF48Dpe6NU/hIn/s6z8eUXDYYoeir4BY7wx AlwEVmDzLzp+7tgkJKgjYrOtBbLmy4SoOh+t8b+AcL29L12ynyloia8zVEOTWAHbSqw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796007028; h=DMARC-Filter:DKIM-Signature:Message-ID:Date:MIME-Version:User-Agent: Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding:X-CM-TRANSID: X-Coremail-Antispam:X-CM-SenderInfo; bh=Jl8b6jdyIiBjmc5ttHV7XPJnYvSj229NrUluadDmVHs=; b=gGYTMsBoX7cTru6C/MGda8HDz469XD5MYrJEssRreFmouAYP+BHoFtRQV6L1jusYOu1g e7SmfMrEIKImWscV2ASUlWTTFgzcJnFfbIWQRK31fwKKZL8mD4W3FjFUYka2p7d0+4Dep peRuXvehRobhwajOKo49Wcqi9g2ljlb2Fm0Pz3+ieQNUWSMHoPuN83KUAcQLckHlDEvAN TeBmHdJsVg1wAxIumFoj2XYIBHsfXvwpQUlsThjZ/fvMqczqp0PMbMAlqwmKCl/u17q3Z ml08BBHLNToruA8fl9JCTkNk0w/vXVixYFDJC/Xh3KPMx71wkd8nSZ0vrYW7+iIc0hg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=126.com; spf=pass smtp.mailfrom=126.com; dkim=pass header.d=126.com header.i=@126.com header.a=rsa-sha256 header.s=s110527 header.b=KMJ57wlD; arc=none smtp.remote-ip=220.197.31.6 Received: from m16.mail.126.com (m16.mail.126.com [220.197.31.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A1D71606A333; Mon, 30 Nov 2026 02:50:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A1D71606A333 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=126.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=126.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=126.com header.i=@126.com header.a=rsa-sha256 header.s=s110527 header.b=KMJ57wlD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=Message-ID:Date:MIME-Version:Subject:To:From: Content-Type; bh=Jl8b6jdyIiBjmc5ttHV7XPJnYvSj229NrUluadDmVHs=; b=KMJ57wlDXEgbenG/OZgNNQ9mK+cPpHdGPOw0cQzVpn4fSXf1aQhAT/OZRS/8IU +SxODdtTomHWywYpY2F4wMsQo4H4+v2Y0NBY+4bRSo1++mcnfXA9aG2t8kkHf+PT 8IKgjBLJJYnGduYcTyBUmC7JfgLSCDPQNjKi/AK6bx2lk= Message-ID: <27e11e9a-bff3-4f66-bac1-4cc3e10bca5a@126.com> Date: Mon, 30 Nov 2026 10:49:22 +0800 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net v4] net: ibm: emac: attach and start the fixed-link PHY To: Andrew Lunn Cc: Andrew Lunn , netdev@vger.kernel.org, "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rosen Penev , Christian Lamparter , Jacob Keller , Kees Cook , Daniel Machon , Heiner Kallweit , linux-kernel@vger.kernel.org, Linkui Xiao References: <20261127014748.2908781-1-xiaolinkui@126.com> Content-Language: en-US From: Linkui Xiao In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-CM-TRANSID:_____wD3728z5Axr+2hnDg--.7973S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7CrW3XrW3Zr1fGFWrtrW3trb_yoW8XF15pa yY9Fs2krWqgrWft3srur4DX3yvv3Z8t3y3KFyFkF4rWrZ8WrnxGF40grWvga43CrySvrWY va1kWas5uF1qvFJanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07UZZ2-UUUUU= X-CM-SenderInfo: p0ld0z5lqn3xa6rslhhfrp/xtbBlBQk+msM5DQ+ZQAA3y On 2026/11/29 00:03, Andrew Lunn wrote: > On Fri, Nov 27, 2026 at 09:47:48AM +0800, Linkui Xiao wrote: >> From: Linkui Xiao >> >> emac_init_phy() sets ndev->phydev by hand for a fixed link, so >> phy_attach_direct() never runs. The PHY is missing from the netdev's PHY >> link topology and ETHTOOL_MSG_PHY_GET dereferences the NULL link_topo in >> phy_prepare_data(). > > The size and complexity of this change is snowballing. Without having > hardware to test on, i'm wondering if it is better to just leave it > broken. I don't think any user has reported it, so it does not bother > anybody. > > What really needs to happen is a complete rewrite, and that definitely > needs hardware. Agreed. Each round has moved more of the PHY lifecycle around (start, stop, disconnect, the probe unwind and the remove ordering), and I have no 4xx hardware to check any of it, so I will not respin this one. The rewrite is not something I can take on without access to a board. [OPTIONAL, see notes: delete this paragraph if you do not want to offer the alternative] One much smaller option, in case it is of any use: the oops itself is phy_prepare_data() in net/ethtool/phy.c doing xa_load() on a NULL dev->link_topo. A two-line "if (!topo) return -EOPNOTSUPP;" there would turn `ethtool --show-phys` on such a netdev into a clean error instead of an oops, without touching emac at all. I will only send that if you want it; otherwise I will leave the whole thing alone. pw-bot: rejected