Messages in this thread Patch in this message |  | | From | Philippe Schenker <> | Subject | [PATCH net-next 2/3] net: phy: micrel: add reset-after-power-on flag to ksz9x31 phys | Date | Tue, 14 Dec 2021 13:16:37 +0100 |
| |
KSZ9031 and KSZ9131 do need a reset after power-on, set the PHY_RST_AFTER_POWER_ON flag to enable the phylib to do it in case the reset signal is controlled by software.
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> ---
drivers/net/phy/micrel.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c index 44a24b99c894..85ee3a61017b 100644 --- a/drivers/net/phy/micrel.c +++ b/drivers/net/phy/micrel.c @@ -1777,6 +1777,7 @@ static struct phy_driver ksphy_driver[] = { .phy_id_mask = MICREL_PHY_ID_MASK, .name = "Micrel KSZ9031 Gigabit PHY", .driver_data = &ksz9021_type, + .flags = PHY_RST_AFTER_POWER_ON, .probe = kszphy_probe, .get_features = ksz9031_get_features, .config_init = ksz9031_config_init, @@ -1822,6 +1823,7 @@ static struct phy_driver ksphy_driver[] = { .name = "Microchip KSZ9131 Gigabit PHY", /* PHY_GBIT_FEATURES */ .driver_data = &ksz9021_type, + .flags = PHY_RST_AFTER_POWER_ON, .probe = kszphy_probe, .config_init = ksz9131_config_init, .config_intr = kszphy_config_intr, -- 2.34.1
|  |