Thread (8 messages) flat view 8 messages, 2 authors, 2021-02-15

Re: [PATCH net-next 2/2] net: phy: at803x: use proper locking in at803x_aneg_done()

From: Michael Walle <hidden>
Date: 2021-02-14 02:20:02
Also in: lkml

Am 14. Februar 2021 02:57:33 MEZ schrieb Vladimir Oltean [off-list ref]:
Hi Michael,

On Sun, Feb 14, 2021 at 02:04:05AM +0100, Michael Walle wrote:
quoted
at803x_aneg_done() checks if auto-negotiation is completed on the
SGMII
quoted
side. This doesn't take the mdio bus lock and the page switching is
open-coded. Now that we have proper page support, just use
phy_read_paged(). Also use phydev->interface to check if we have an
SGMII link instead of reading the mode register and be a bit more
precise on the warning message.

Signed-off-by: Michael Walle <redacted>
---
How did you test this patch?
I'm afraid it's just compile time tested.

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