summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2023-10-20 13:50:46 +0300
committerDavid S. Miller <davem@davemloft.net>2023-10-20 13:50:46 +0300
commit095c3ea6fd5bcb4fd3641146570bdf4ee3b57c75 (patch)
treecfe83a13ddeb46e11996548d06dd372a457b025e /include/linux
parentc0518571545d2befdd978a39c490575f3e3dd15a (diff)
parent510f02febb10259919a41926ab6bf9ec5c72ee48 (diff)
downloadlinux-095c3ea6fd5bcb4fd3641146570bdf4ee3b57c75.tar.xz
Merge branch 'ksz886x-forced-link-modes'
Oleksij Rempel says: ==================== fix forced link mode for KSZ886X switches changes v3: - squash patch 1 and 2 - use genphy_config_aneg() instead of genphy_setup_forced() changes v2: - address kernel test robot warning - change comment explaining clearing of KSZ886X_CTRL_FORCE_LINK bit - s/PHY we create/PHY will create/ ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/micrel_phy.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/micrel_phy.h b/include/linux/micrel_phy.h
index 4e27ca7c49de..591bf5b5e8dc 100644
--- a/include/linux/micrel_phy.h
+++ b/include/linux/micrel_phy.h
@@ -64,6 +64,10 @@
#define KSZ886X_BMCR_DISABLE_TRANSMIT BIT(1)
#define KSZ886X_BMCR_DISABLE_LED BIT(0)
+/* PHY Special Control/Status Register (Reg 31) */
#define KSZ886X_CTRL_MDIX_STAT BIT(4)
+#define KSZ886X_CTRL_FORCE_LINK BIT(3)
+#define KSZ886X_CTRL_PWRSAVE BIT(2)
+#define KSZ886X_CTRL_REMOTE_LOOPBACK BIT(1)
#endif /* _MICREL_PHY_H */