On Thu, Feb 24, 2022 at 04:15:36PM +0000, Russell King (Oracle) wrote:
Populate the MAC capabilities for the SJA1105 DSA switch using the same
decision making which sja1105_phylink_validate() uses. Remove the now
obsolete sja1105_phylink_validate() implementation to allow DSA to use
phylink_generic_validate() for this switch driver.
As noted by Vladimir, this fixes an inconsequential bug which allowed
gigabit and lower interface modes to be indicated when operating in
2500base-X mode.
Signed-off-by: Russell King (Oracle) <redacted>
---
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>