netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Redundant changes in "net: dsa: mt7530: add support for in-band link status"
@ 2022-12-12 10:15 Russell King (Oracle)
  2022-12-13  4:07 ` [PATCH net-next] net: dsa: mt7530: remove reduntant assignment Daniel Golle
  0 siblings, 1 reply; 4+ messages in thread
From: Russell King (Oracle) @ 2022-12-12 10:15 UTC (permalink / raw)
  To: Daniel Golle, netdev

Hi Daniel,

While updating my tree, I notice that the above referenced commit
contains a redundant change, namely in mt753x_phylink_get_caps():

        config->mac_capabilities = MAC_ASYM_PAUSE | MAC_SYM_PAUSE |
                                   MAC_10 | MAC_100 | MAC_1000FD;

+       if ((priv->id == ID_MT7531) && mt753x_is_mac_port(port))
+               config->mac_capabilities |= MAC_2500FD;
+

This shouldn't be necessary. mt753x_phylink_get_caps() goes on to
call the obviously named mt753x "mac_port_get_caps" method, which
for a MT7531 is mt7531_mac_port_get_caps().

mt7531_mac_port_get_caps() will already set MAC_2500FD for ports
5 and 6 where appropriate.

Please submit a patch to remove the above change if you agree that
it is already covered.

Thanks.

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-12-14  1:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-12 10:15 Redundant changes in "net: dsa: mt7530: add support for in-band link status" Russell King (Oracle)
2022-12-13  4:07 ` [PATCH net-next] net: dsa: mt7530: remove reduntant assignment Daniel Golle
2022-12-13 11:30   ` Russell King (Oracle)
2022-12-14  1:17   ` Jakub Kicinski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).