netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Regression: supported_interfaces filling enforcement
@ 2023-07-04 14:28 Sergei Antonov
  2023-07-08 14:01 ` Linux regression tracking (Thorsten Leemhuis)
  2023-07-10 12:35 ` Vladimir Oltean
  0 siblings, 2 replies; 14+ messages in thread
From: Sergei Antonov @ 2023-07-04 14:28 UTC (permalink / raw)
  To: netdev, Vladimir Oltean, rmk+kernel

Hello!
This commit seems to break the mv88e6060 dsa driver:
de5c9bf40c4582729f64f66d9cf4920d50beb897    "net: phylink: require
supported_interfaces to be filled"

The driver does not fill 'supported_interfaces'. What is the proper
way to fix it? I managed to fix it by the following quick code.
Comments? Recommendations?

+static void mv88e6060_get_caps(struct dsa_switch *ds, int port,
+                              struct phylink_config *config)
+{
+       __set_bit(PHY_INTERFACE_MODE_INTERNAL, config->supported_interfaces);
+       __set_bit(PHY_INTERFACE_MODE_GMII, config->supported_interfaces);
+}
+
 static const struct dsa_switch_ops mv88e6060_switch_ops = {
        .get_tag_protocol = mv88e6060_get_tag_protocol,
        .setup          = mv88e6060_setup,
        .phy_read       = mv88e6060_phy_read,
        .phy_write      = mv88e6060_phy_write,
+       .phylink_get_caps = mv88e6060_get_caps
 };

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

end of thread, other threads:[~2023-08-09 12:11 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-04 14:28 Regression: supported_interfaces filling enforcement Sergei Antonov
2023-07-08 14:01 ` Linux regression tracking (Thorsten Leemhuis)
2023-07-30 16:16   ` Linux regression tracking #update (Thorsten Leemhuis)
2023-07-10 12:35 ` Vladimir Oltean
2023-07-10 14:35   ` Sergei Antonov
2023-07-10 15:38     ` Vladimir Oltean
2023-07-10 18:09       ` Sergei Antonov
2023-07-11 21:58         ` Vladimir Oltean
2023-07-12  0:58           ` Andrew Lunn
2023-08-09 12:11     ` Russell King (Oracle)
2023-07-13 15:08   ` Russell King (Oracle)
2023-07-25 10:58     ` Linux regression tracking (Thorsten Leemhuis)
2023-07-25 11:26       ` Russell King (Oracle)
2023-07-26 13:45         ` Vladimir Oltean

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).