]> asedeno.scripts.mit.edu Git - linux.git/commit
net: stmmac: Make MDIO bus reset optional
authorThierry Reding <treding@nvidia.com>
Fri, 26 Jul 2019 10:27:40 +0000 (12:27 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 27 Jul 2019 20:52:26 +0000 (13:52 -0700)
commit1a981c0586c038710227eb740350f291e77ce365
treee39b55e335e3eaa4ec292bd4874e3c8a2d4cbac0
parentf530eed65bcaf9f74c312bbea09a36a27c48e06c
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>
drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c
drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
include/linux/stmmac.h