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: Maxime Chevallier <maxime.chevallier@bootlin.com>
Date: 2025-02-28 16:49:55
Also in: linux-arm-kernel, lkml

On Fri, 28 Feb 2025 16:20:54 +0000
"Russell King (Oracle)" [off-list ref] wrote:
On Fri, Feb 28, 2025 at 03:55:34PM +0100, Maxime Chevallier wrote:
quoted
 	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.
Ah true indeed, I'll address that.

Thanks Russell,

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