summaryrefslogtreecommitdiff
path: root/include/linux/micrel_phy.h
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2023-01-18 11:01:37 +0100
committerPaolo Abeni <pabeni@redhat.com>2023-01-19 16:23:19 +0100
commit3486593374858b41ae6ef7720cb28ff39ad822f3 (patch)
treea5cec58ec15b40bf569004d222d0423f0b5eb556 /include/linux/micrel_phy.h
parentd41e127757f37d0d47ccda4af2fe74c32533f798 (diff)
net: mdio: Add workaround for Micrel PHYs which are not C45 compatible
After scanning the bus for C22 devices, check if any Micrel PHYs have been found. They are known to do bad things if there are C45 transactions on the bus. Prevent the scanning of the bus using C45 if such a PHY has been detected. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Michael Walle <michael@walle.cc> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include/linux/micrel_phy.h')
-rw-r--r--include/linux/micrel_phy.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/micrel_phy.h b/include/linux/micrel_phy.h
index 1f7c33b2f5a3..771e050883db 100644
--- a/include/linux/micrel_phy.h
+++ b/include/linux/micrel_phy.h
@@ -8,6 +8,8 @@
#ifndef _MICREL_PHY_H
#define _MICREL_PHY_H
+#define MICREL_OUI 0x0885
+
#define MICREL_PHY_ID_MASK 0x00fffff0
#define PHY_ID_KSZ8873MLL 0x000e7237