diff options
author | Horatiu Vultur <horatiu.vultur@microchip.com> | 2022-04-01 13:05:22 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-04-04 13:40:42 +0200 |
commit | 76e9ccd6894377bc3cf7fbdea90b0af2cb4eb12a (patch) | |
tree | f7eb5fa5b467dc6b745125bf48d23ad99e78d057 /drivers/net/phy | |
parent | net: phy: micrel: Remove latency from driver (diff) | |
download | linux-76e9ccd6894377bc3cf7fbdea90b0af2cb4eb12a.tar.xz linux-76e9ccd6894377bc3cf7fbdea90b0af2cb4eb12a.zip |
net: phy: micrel: Remove DT option lan8814,ignore-ts
When the PHY and the MAC are capable of doing timestamping, the PHY has
priority. Therefore the DT option lan8814,ignore-ts was added such that
the PHY will not expose a PHC so then the timestamping was done in the
MAC. This is not the correct approach of doing it, therefore remove
this.
Fixes: ece19502834d84 ("net: phy: micrel: 1588 support for LAN8814 phy")
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy')
-rw-r--r-- | drivers/net/phy/micrel.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c index a873df07ad24..fc53b71dc872 100644 --- a/drivers/net/phy/micrel.c +++ b/drivers/net/phy/micrel.c @@ -2616,7 +2616,6 @@ static int lan8814_config_init(struct phy_device *phydev) static int lan8814_probe(struct phy_device *phydev) { - const struct device_node *np = phydev->mdio.dev.of_node; struct kszphy_priv *priv; u16 addr; int err; @@ -2630,8 +2629,7 @@ static int lan8814_probe(struct phy_device *phydev) phydev->priv = priv; if (!IS_ENABLED(CONFIG_PTP_1588_CLOCK) || - !IS_ENABLED(CONFIG_NETWORK_PHY_TIMESTAMPING) || - of_property_read_bool(np, "lan8814,ignore-ts")) + !IS_ENABLED(CONFIG_NETWORK_PHY_TIMESTAMPING)) return 0; /* Strap-in value for PHY address, below register read gives starting |