]> git.baikalelectronics.ru Git - kernel.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)
commit645d9a156005e9cc36f563ccaa4253a7dc7cad00
treee39b55e335e3eaa4ec292bd4874e3c8a2d4cbac0
parent4391727b2bb3b38691014534a7cc49e0b5ed575a
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