net: dsa: sja1105: apply RGMII delays based on the fixed-link property
authorVladimir Oltean <vladimir.oltean@nxp.com>
Fri, 4 Jun 2021 14:01:49 +0000 (17:01 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Jun 2021 19:20:18 +0000 (12:20 -0700)
commit29afb83ac98e1c1cd9c9bb6e82e7d15354b3ae0b
treed2298619d338afdd4e9e27293993b5a9ca7070ca
parentc858d436be8b949c368de0e079084acaff3d4aaf
net: dsa: sja1105: apply RGMII delays based on the fixed-link property

The sja1105 driver has an intermediate way of determining whether the
RGMII delays should be applied by the PHY or by itself: by looking at
the port role (PHY or MAC). The port can be put in the PHY role either
explicitly (sja1105,role-phy) or implicitly (fixed-link).

We want to deprecate the sja1105,role-phy property, so all that remains
is the fixed-link property. Introduce a "fixed_link" array of booleans
in the driver, and use that to determine whether RGMII delays must be
applied or not.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/sja1105/sja1105.h
drivers/net/dsa/sja1105/sja1105_main.c