]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: sja1105: fix sja1105_parse_rgmii_delays()
authorOleksij Rempel <o.rempel@pengutronix.de>
Mon, 25 Nov 2019 11:43:51 +0000 (12:43 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Nov 2019 18:56:12 +0000 (10:56 -0800)
commitde4b138ae04cf3dd61f40736eb2926e84490bbde
tree13aaf4cc6a3377ae777da0d5923184e9e2efd24f
parent5854a7c9aea309d5f4094ed9dcd8aac1cb187ec4
net: dsa: sja1105: fix sja1105_parse_rgmii_delays()

This function was using configuration of port 0 in devicetree for all ports.
In case CPU port was not 0, the delay settings was ignored. This resulted not
working communication between CPU and the switch.

Fixes: c64c454acaae ("net: dsa: sja1105: Error out if RGMII delays are requested in DT")
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/sja1105/sja1105_main.c