Message ID | 20220513114613.762810-2-festevam@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 8e6004dfecb7bab0d8945989917fbcae5d3b50bd |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net-next,1/2] net: phy: micrel: Allow probing without .driver_data | expand |
On Fri, May 13, 2022 at 08:46:13AM -0300, Fabio Estevam wrote: > From: Fabio Estevam <festevam@denx.de> > > Now that it is possible to use .probe without having .driver_data, let > KSZ8061 use the kszphy specific hooks for probe,suspend and resume, > which is preferred. > > Switch to using the dedicated kszphy probe/suspend/resume functions. > > Signed-off-by: Fabio Estevam <festevam@denx.de> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Andrew
diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c index 5e356e23c1b7..22139901f01c 100644 --- a/drivers/net/phy/micrel.c +++ b/drivers/net/phy/micrel.c @@ -3019,11 +3019,12 @@ static struct phy_driver ksphy_driver[] = { .name = "Micrel KSZ8061", .phy_id_mask = MICREL_PHY_ID_MASK, /* PHY_BASIC_FEATURES */ + .probe = kszphy_probe, .config_init = ksz8061_config_init, .config_intr = kszphy_config_intr, .handle_interrupt = kszphy_handle_interrupt, - .suspend = genphy_suspend, - .resume = genphy_resume, + .suspend = kszphy_suspend, + .resume = kszphy_resume, }, { .phy_id = PHY_ID_KSZ9021, .phy_id_mask = 0x000ffffe,