]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: sja1105: Check for PHY mode mismatches with what PHYLINK reports
authorVladimir Oltean <olteanv@gmail.com>
Thu, 27 Jun 2019 21:46:36 +0000 (00:46 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Jun 2019 16:31:31 +0000 (09:31 -0700)
commit03852a553780373f5f8d7b01183a47728507d93d
tree31e1d3db577ee1b1a1336696ce1d410506d491db
parent17fa66f15be01edca99d8cc74482398f9f8f029d
net: dsa: sja1105: Check for PHY mode mismatches with what PHYLINK reports

PHYLINK being designed with PHYs in mind that can change MII protocol,
for correct operation it is necessary to ensure that the PHY interface
mode stays the same (otherwise clear the supported bit mask, as
required).

Because this is just a hypothetical situation for now, we don't bother
to check whether we could actually support the new PHY interface mode.
Actually we could modify the xMII table, reset the switch and send an
updated static configuration, but adding that would just be dead code.

Cc: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/sja1105/sja1105_main.c