Thread (25 messages) flat view 25 messages, 2 authors, 2026-02-09

Re: [PATCH net-next v3 05/11] net: phy: Create SFP phy_port before registering usptream

From: Maxime Chevallier <maxime.chevallier@bootlin.com>
Date: 2026-02-03 18:09:36
Also in: lkml

Hi Simon,

On 03/02/2026 18:52, Simon Horman wrote:
quoted
-	if (!ret && phydev->sfp_bus)
-		ret = phy_setup_sfp_port(phydev);
+	ret = sfp_bus_add_upstream(bus, phydev, &sfp_phydev_ops);
+	sfp_bus_put(bus);
+
+	if (ret && port) {
Hi Maxime,

If bus is NULL then port will not be set here.
Arg... I though smatch was running in the NIPA ingst-mdir script, but I
was wrong :(

I'll address that in V5 as the problme is still in V4, thank you for the
report

Maxime


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help