net: phy: Check phy_mask in get_phy_device()
Do not try to probe PHY devices if they are masked in phy_mask. This
way we won't try adding devices that are unlikely to be proper PHYs by
default. With this change it still remains possible to add such a
device explicitly either using "miitool" or calling
phy_device_create() explicilty.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 1412ea2 commit 01c926daf58ebd18728ddcd989c5e8f20751ecae
@Andrey Smirnov Andrey Smirnov authored on 16 Oct 2018
Sascha Hauer committed on 18 Oct 2018
Showing 1 changed file
View
drivers/net/phy/phy.c