Thread (19 messages) 19 messages, 3 authors, 2d ago

Re: [PATCH net-next v2 3/6] net: ftgmac100: Enable AST2700 RMII support

flat view

From: Andrew Lunn <andrew@lunn.ch>
Date: 2026-10-06 16:31:52
Also in: linux-devicetree, lkml

quoted hunk ↗ jump to hunk
 static void ftgmac100_start_hw(struct ftgmac100 *priv)
 {
 	u32 maccr = ioread32(priv->base + FTGMAC100_OFFSET_MACCR);
+	struct phy_device *phydev = priv->netdev->phydev;
Is it safe to assume there is a phydev? The AI is better at this sort
of logic, but looking at ftgmac100_probe_dt() is think it is possible
to not have a phydev. And ftgmac100_phy_disconnect() does guard
against not having one.

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