Thread (20 messages) 20 messages, 2 authors, 2025-02-28

Re: [PATCH net-next v3 09/13] net: phylink: Use phy_caps_lookup for fixed-link configuration

From: "Russell King (Oracle)" <linux@armlinux.org.uk>
Date: 2025-02-28 16:21:02
Also in: linux-arm-kernel, lkml

On Fri, Feb 28, 2025 at 03:55:34PM +0100, Maxime Chevallier wrote:
 	adv = pl->link_config.advertising;
 	linkmode_zero(adv);
-	linkmode_set_bit(s->bit, adv);
+	linkmode_and(adv, pl->supported, c->linkmodes);
There is no need for linkmode_zero() with linkmode_and() immediately
after. linkmode_and() writes to its entire destination.

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help