diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2017-12-04 07:27:17 -0800 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-12-06 15:49:15 +0100 |
commit | 9b1a209c8c3a60531e9a4308acf5288c755cef1b (patch) | |
tree | 00968b12f5dd14131c0bfd9f05e5c5b9c9a7edab /include | |
parent | ed6e3a1fb0940b68c1f5f19f8e2bc4721211fb4e (diff) | |
download | barebox-9b1a209c8c3a60531e9a4308acf5288c755cef1b.tar.gz barebox-9b1a209c8c3a60531e9a4308acf5288c755cef1b.tar.xz |
net: mdio-mux: Avoid probing multiplexed busses
Calling mdiobus_detect() for a bus that serves as a parent for a MDIO
bus multiplexer would result in parent bus being populated with
devices that are present on downstream bus that multiplexer happens to
be "pointing" at that moment. To avoid that introduce 'is_multiplexed'
flag to struct mii_bus and change mdiobus_detect to ignore busses for
which that flag is set.
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/phy.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h index 809f06fb1b..ac750f5c3a 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -100,6 +100,8 @@ struct mii_bus { u32 phy_mask; struct list_head list; + + bool is_multiplexed; }; #define to_mii_bus(d) container_of(d, struct mii_bus, dev) |