🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #17656

Re: [PATCH net-next v8 02/19] net: ethernet: cortina: Keep ports bound for shared IRQ

#17656
From: Linus Walleij
Date: Tue, 17 Nov 2026 07:53
44 lines
10368 bytes
On Mon, Nov 16, 2026 at 3:45 PM <netdev-bot+sashiko@kernel.org> wrote:

> > +     } else {
> > +             phy_np = of_parse_phandle(dev->of_node, "phy-handle", 0);
> > +             if (!phy_np)
> > +                     return -ENODEV;
> > +     }
> > +
> > +     phy = of_phy_find_device(phy_np);
> > +     of_node_put(phy_np);
> >       if (!phy)
> > -             return -ENODEV;
> > +             return -EPROBE_DEFER;
>
> [Severity: High]
> Can a NULL return from of_phy_find_device() here be permanent instead
> of transient?

I guess yes? Then things never probe, such things happen.

> Doesn't this mean a PHY that is described but absent on one port still
> disables the working sibling? The commit message says this should no
> longer happen ("so an unusable interface does not disable its
> sibling").
>
> gemini-ssi1328.dts and gemini-wbd222.dts both use phy-handle on
> ethernet-port@1. On those boards, an unpopulated or unresponsive PHY1
> would leave no working Ethernet, and the port would stay on the deferred
> probe list for good. fw_devlink does not parse phy-handle, so nothing
> puts a limit on the deferral.
>
> Could the code tell a not-yet-probed MDIO bus apart from a missing PHY,
> for example by checking whether the PHY node's parent bus has
> registered?

So this is essentially trying to safeguard from hw failure which
is overzealous. If the PHY does the driver doesn't probe eventually
deferred probe gives up, thats OK.

Yours,
Linus Walleij
Technical Details
Message-ID: <CAD++jLmKyr8DsVDAZxTvO9KuUhjq3JZDLyQ=ZKbYWvE_his_WA@mail.gmail.com>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365014-linux-kernel-netdev=dewy.ru
References: <20261112-gemini-ethernet-fixes-3-v8-2-f55bd43e02d3@kernel.org> <179484034429.3136.3425183655553071974@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365014-linux-kernel-netdev=dewy.ru
From: linusw@kernel.org (Linus Walleij)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v8 02/19] net: ethernet: cortina: Keep ports
 bound for shared IRQ
Date: Tue, 17 Nov 2026 08:53:18 +0100
Organization: Usenet Network
Message-ID: <CAD++jLmKyr8DsVDAZxTvO9KuUhjq3JZDLyQ=ZKbYWvE_his_WA@mail.gmail.com>
References: <20261112-gemini-ethernet-fixes-3-v8-2-f55bd43e02d3@kernel.org> <179484034429.3136.3425183655553071974@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
	logging-data="2270983"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:NV3nIC1QSQH/IJ31rOEzdXtNkBY= sha256:Z7Cq9f0oRfwfi7rR/e5E4S9LRI/vS4z76G1sI0DyCv4=
	sha1:vdESCRdbkvQhm31k6EGReURjO68= sha256:bzvOfuwCx2RkMRx7pCyaNqLNgwN4vNkI4ZD+TL036LI=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id BD54F114E6E; Tue, 17 Nov 2026 10:53:57 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 6egR2ly_nBS5;
	Tue, 17 Nov 2026 10:53:49 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-365014-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 4D0D1114E2A; Tue, 17 Nov 2026 10:53:40 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 1F8C32E23A; Tue, 17 Nov 2026 07:53:34 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1794902014;
	b=uYyy5lj6RlUo2GJ8Syc0S9WVwWhXGQHiWD4f1kNUlecyx7pTdw6I084sXFW/iqxNJdti
	 xkLeSySpbH3dfViS2T48wa4Gp8Z5nAFRnDhruqAkwqNSS2NfaQAjLdqjfPa++loYXfhv4
	 DTIRvIe3qcrDZxnLxg2z1cbk8ljyF87a5QrZGCYyeBozwufC7ggGFG5w1eRInfZNxeDU3
	 42tOVgPlksqkh8mOGqEN0x88MIEtcATNyX5w9V6O3GNOr0oQb8NtsVgz3pes6B8zc069X
	 5TVieoRSaEYhYPLPMdhrExF+mo8Sa6NmGTVME9qgY9Y+ZVGt+T0cp+NfDd1ea5Mthxw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794902014;
	h=X-Original-To:Received:Received:DKIM-Signature:Received:
	 X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:X-Mailing-List:
	 List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe:
	 List-Owner:Precedence:MIME-Version:References:In-Reply-To:From:Date:
	 X-Gmail-Original-Message-ID:X-Gm-Features:Message-ID:Subject:To:Cc:
	 Content-Type:Content-Transfer-Encoding;
	bh=0PwMgoLCuoMJhIuYDvRS//1Y44f0sWEWfJY3HpnQIQ0=;
	b=UynZ+9QTSWocZc5r1163P7JEf0MH9jwFuD957GY4eUs5nGVMPRCfmQzjbm0AALbzDl+V
	 XRww2NWb+D6nkN0prXnHsKNsCoVfp6SKkMFsNiQbFbyz/UlKV8HnmDB5vbYeeXlAspGbs
	 yWTd3Y3w3vJAk4PdvLTRDvHCug6qLtutEmafPoM+13ao/sZciKCBKb9UmOYWsHqxJSZg+
	 yiTZxyV54Rbw0K2G+qCqAVDOYFy8hTdbmekxO30LseLdIWXTWA9ZJLFuK9OWBh5tymo+8
	 Y5A82KVmfWXuMBih54vgxDeTcAZDuwdFJvsVWDcxkKQSpzKh3f0c/O3W3DmG2qwXSYQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=SOQOFO9X;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id E9B04606A32F;
	Tue, 17 Nov 2026 07:53:33 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=SOQOFO9X
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794902013;
	b=NuXphFkzLoO4OMSQv2qaM2N6uAzAhYqEqn7flqo2HFi5rt2kjd/BzsjaS+gBiA92NQvY
	 Y24zzOTi+C8da1MXdPMIav5IF0QEz3iyt8ZRYO3syihMspRRucsnNJZuR9K4+LhT53QBn
	 jhj1BG7pTWlo4LEwX3fj+kSBWuFzInyvqkbyomGMGRIwJ5aBRZ31LxZwKxens6GBCo81/
	 QVTTKKPLSxaFGdZTYhzrQEH1xWs79YGhumNpoen5nZfspM4emkwrJS3G4thAP7b8a2KLT
	 QZ1EcI4GBwJEwjh2v0gmuT7G0DqZlRAR5S8S7VxSM5eIsMuIsuglyIzjiYL8pSfndOg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794902013;
	h=Received:DKIM-Signature:Received:X-Forwarded-Encrypted:
	 X-Gm-Message-State:X-Received:MIME-Version:References:In-Reply-To:
	 From:Date:X-Gmail-Original-Message-ID:X-Gm-Features:Message-ID:
	 Subject:To:Cc:Content-Type:Content-Transfer-Encoding;
	bh=0PwMgoLCuoMJhIuYDvRS//1Y44f0sWEWfJY3HpnQIQ0=;
	b=1nJEIyMe/4JFjdN8Xb+SesPASo4gsQVLxlsh9lx0lHBA/7COfLuGqe3tfH7s+SF4XFCm
	 Rw/pxBk5uNteK0WFoEQpghbJfOOvhnvwe0tWdg5XMwriiwlKM3xuNG1PUHsKAq1RlG4MD
	 TMc5jOGPzrUuUgotO3vSct8hgn0HtX8Jrirg0SWdG20vQwKQEsNjz0i42kgmObZxZVqdP
	 BN0ibf5RtoNTBujBKr74HYmSlqGRruP6lHNDI8+1Wm3A+ba6Cnij62hCWbRVhxBX4UhMs
	 xc3IFfJKPeFlsAQTzB7JS6wkzsOq7wcf/PoD9MuDsJ88Gyhwx6JUW7mhml3e8ITFFLQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=SOQOFO9X;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0FEC4606A31C
	for <netdev@vger.kernel.org>; Tue, 17 Nov 2026 07:53:33 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id E0DD01F000D1
	for <netdev@vger.kernel.org>; Tue, 17 Nov 2026 07:53:32 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1794902012;
	bh=0PwMgoLCuoMJhIuYDvRS//1Y44f0sWEWfJY3HpnQIQ0=;
	h=References:In-Reply-To:From:Date:Subject:To:Cc;
	b=SOQOFO9XKC7vJlpo+qHy6vxvLxuGMzDKXWQ41JWeHMAiwFkZqbf5pVpb3U5yTVUxg
	 LzIthaE2B3nnFbhPba4GuX/MMQ+FCGppFi7aCS+3QAt8RBuFb1A1ebDE8J3FB7aSK8
	 uRnM22Heg4amuy0GuJJpR+1KAeapZRRUoAwjLpMv4WpUgHVaJxW8kR5kYtv7u7RonG
	 L+CfYACb0DggiY2Cpx0Ezf/wbaY+5Do7Xnh7aOh3qr0QUpOXsFAAX0M05z3kSxeHLT
	 VcYBneR5pVwWQDL/KVwNrVaWp+fPFXWtjCqWuxsJuLijYOzPHLr5CnEyMhGSXKA3dF
	 iYqcisk5dOS7A==
X-Received: by mail-lf1-f44.google.com with SMTP id 2adb3069b0e04-5c126fa1e3aso3394632e87.2
        for <netdev@vger.kernel.org>; Mon, 16 Nov 2026 23:53:32 -0800 (PST)
X-Forwarded-Encrypted: i=1; AL+hErHuSEiIdOPmx1pert+QafyI8qOBzgr1DQXVcK8EGjDU1hmZnKtZ8gn56rGxC2yzrg8lOZOL/Ao=@vger.kernel.org
X-Gm-Message-State: APuU4Z8usqF/VvAYidziJX8eKvMTcIzI1647rYtF7Kgd8HLWh1IBX2lN
	+3auCvdCNDN5imyFxyRvdqOsndZBGCCY2dHuUE7NOPMy21ZHOUyypnqcqVuwwo0ngcV0agtANjU
	/qhT3QoxLdmmCLmMeZRQpLmLlLlB/nDM=
X-Received: by 2002:a05:6512:1304:b0:5c1:5974:8a54 with SMTP id
 2adb3069b0e04-5c1705faa6emr5336793e87.5.1794902011428; Mon, 16 Nov 2026
 23:53:31 -0800 (PST)
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <179484034429.3136.3425183655553071974@kernel.org>
X-Gmail-Original-Message-ID: <CAD++jLmKyr8DsVDAZxTvO9KuUhjq3JZDLyQ=ZKbYWvE_his_WA@mail.gmail.com>
X-Gm-Features: Aa3M54rCVPjORVrSDgqIOUZ3DiC07EGVI44GyNXyHqpgZGlMKn_Z3BWKS-qQinI
X-Cc: ulli.kroll@googlemail.com, andrew+netdev@lunn.ch, davem@davemloft.net, 
	kuba@kernel.org, pabeni@redhat.com, mirq-linux@rere.qmqm.pl, 
	mhun512@gmail.com, edumazet@kernel.org, netdev@vger.kernel.org