Thread (2 messages) 2 messages, 2 authors, 10d ago

Re: [PATCH] net: phy: air_en8811h: add dedicated suspend callback for AN8811HB

From: Andrew Lunn <andrew@lunn.ch>
Date: 2026-09-17 01:56:45
Also in: lkml

On Thu, Sep 17, 2026 at 09:21:02AM +0800, Weiting Lee wrote:
The AN8811HB hardware requires a re-negotiation sequence before
entering power-down to correctly restore the link upon resume.
Add an8811hb_suspend() to handle this.
Is there an errata for this? Please mention it in the commit message.
+static int an8811hb_suspend(struct phy_device *phydev)
+{
+	int ret;
+
+	clk_save_context();
+
+	ret = phy_modify(phydev, MII_BMCR, 0, BMCR_ANRESTART);
Why use phy_modify() if you are going to pass a mask of 0?

	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