Thread (7 messages) flat view 7 messages, 2 authors, 2016-08-14

[PATCH 2/2 (linux-stable-4.5.y)] stmmac: fix MDIO settings

From: Greg KH <hidden>
Date: 2016-08-14 15:44:31
Also in: netdev, stable

On Mon, May 23, 2016 at 03:17:43PM +0200, Giuseppe Cavallaro wrote:
Initially the phy_bus_name was added to manipulate the
driver name but it was recently just used to manage the
fixed-link and then to take some decision at run-time.
So the patch uses the is_pseudo_fixed_link and removes
the phy_bus_name variable not necessary anymore.

The driver can manage the mdio registration by using phy-handle,
dwmac-mdio and own parameter e.g. snps,phy-addr.
This patch takes care about all these possible configurations
and fixes the mdio registration in case of there is a real
transceiver or a switch (that needs to be managed by using
fixed-link).

Signed-off-by: Giuseppe Cavallaro <redacted>
Reviewed-by: Andreas F?rber <afaerber@suse.de>
Tested-by: Frank Sch?fer <redacted>
Cc: Gabriel Fernandez <redacted>
Cc: Dinh Nguyen <redacted>
Cc: David S. Miller <davem@davemloft.net>
Cc: Phil Reid <redacted>
---
 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c  | 11 +--
 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c  | 19 +----
 .../net/ethernet/stmicro/stmmac/stmmac_platform.c  | 84 +++++++++++++++++-----
 3 files changed, 70 insertions(+), 44 deletions(-)
<formletter>

This is not the correct way to submit patches for inclusion in the
stable kernel tree.  Please read Documentation/stable_kernel_rules.txt
for how to do this properly.

</formletter>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help