aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/microchip/ksz_priv.h
diff options
context:
space:
mode:
authorRobert Hancock <hancock@sedsystems.ca>2019-06-12 14:49:05 -0600
committerDavid S. Miller <davem@davemloft.net>2019-06-14 19:11:53 -0700
commit1fc33199185ddb2296270a7ae8114c40ab28b17b (patch)
treeab6df3d8ca9db9b932b100c5b5a27b5b65c2d783 /drivers/net/dsa/microchip/ksz_priv.h
parentnet: stmmac: use GPIO descriptors in stmmac_mdio_reset (diff)
downloadlinux-dev-1fc33199185ddb2296270a7ae8114c40ab28b17b.tar.xz
linux-dev-1fc33199185ddb2296270a7ae8114c40ab28b17b.zip
net: dsa: microchip: Add PHY errata workarounds
The Silicon Errata and Data Sheet Clarification documents for the KSZ9477 series of chips describe a number of otherwise undocumented PHY register settings which are required to work around various chip errata. Apply these settings when initializing the PHY ports on these chips. Signed-off-by: Robert Hancock <hancock@sedsystems.ca> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/net/dsa/microchip/ksz_priv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/dsa/microchip/ksz_priv.h b/drivers/net/dsa/microchip/ksz_priv.h
index b52e5ca17ab4..724301df91db 100644
--- a/drivers/net/dsa/microchip/ksz_priv.h
+++ b/drivers/net/dsa/microchip/ksz_priv.h
@@ -77,6 +77,7 @@ struct ksz_device {
int last_port; /* ports after that not used */
phy_interface_t interface;
u32 regs_size;
+ bool phy_errata_9477;
struct vlan_table *vlan_cache;