diff options
author | Thierry Reding <treding@nvidia.com> | 2019-07-26 12:27:40 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-07-27 13:52:26 -0700 |
commit | 1a981c0586c038710227eb740350f291e77ce365 (patch) | |
tree | e39b55e335e3eaa4ec292bd4874e3c8a2d4cbac0 /include/linux/stmmac.h | |
parent | f530eed65bcaf9f74c312bbea09a36a27c48e06c (diff) |
net: stmmac: Make MDIO bus reset optional
The Tegra EQOS driver already resets the MDIO bus at probe time via the
reset GPIO specified in the phy-reset-gpios device tree property. There
is no need to reset the bus again later on.
This avoids the need to query the device tree for the snps,reset GPIO,
which is not part of the Tegra EQOS device tree bindings. This quiesces
an error message from the generic bus reset code if it doesn't find the
snps,reset related delays.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/stmmac.h')
-rw-r--r-- | include/linux/stmmac.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/stmmac.h b/include/linux/stmmac.h index 7d06241582dd..7b3e354bcd3c 100644 --- a/include/linux/stmmac.h +++ b/include/linux/stmmac.h @@ -81,6 +81,7 @@ struct stmmac_mdio_bus_data { unsigned int phy_mask; int *irqs; int probed_phy_irq; + bool needs_reset; }; struct stmmac_dma_cfg { |