diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2021-06-04 16:01:49 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-07 21:20:18 +0200 |
commit | 29afb83ac98e1c1cd9c9bb6e82e7d15354b3ae0b (patch) | |
tree | d2298619d338afdd4e9e27293993b5a9ca7070ca /drivers/net/dsa/sja1105/sja1105.h | |
parent | net: phy: introduce PHY_INTERFACE_MODE_REVRMII (diff) | |
download | linux-29afb83ac98e1c1cd9c9bb6e82e7d15354b3ae0b.tar.xz linux-29afb83ac98e1c1cd9c9bb6e82e7d15354b3ae0b.zip |
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>
Diffstat (limited to 'drivers/net/dsa/sja1105/sja1105.h')
-rw-r--r-- | drivers/net/dsa/sja1105/sja1105.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/dsa/sja1105/sja1105.h b/drivers/net/dsa/sja1105/sja1105.h index 867cda832e77..3c66e5945cca 100644 --- a/drivers/net/dsa/sja1105/sja1105.h +++ b/drivers/net/dsa/sja1105/sja1105.h @@ -226,6 +226,7 @@ struct sja1105_private { bool rgmii_rx_delay[SJA1105_MAX_NUM_PORTS]; bool rgmii_tx_delay[SJA1105_MAX_NUM_PORTS]; phy_interface_t phy_mode[SJA1105_MAX_NUM_PORTS]; + bool fixed_link[SJA1105_MAX_NUM_PORTS]; bool best_effort_vlan_filtering; unsigned long learn_ena; unsigned long ucast_egress_floods; |