Commit 8e6004df authored by Fabio Estevam's avatar Fabio Estevam Committed by Jakub Kicinski

net: phy: micrel: Use the kszphy probe/suspend/resume

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: default avatarFabio Estevam <festevam@denx.de>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20220513114613.762810-2-festevam@gmail.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent f2ef6f75
...@@ -3019,11 +3019,12 @@ static struct phy_driver ksphy_driver[] = { ...@@ -3019,11 +3019,12 @@ static struct phy_driver ksphy_driver[] = {
.name = "Micrel KSZ8061", .name = "Micrel KSZ8061",
.phy_id_mask = MICREL_PHY_ID_MASK, .phy_id_mask = MICREL_PHY_ID_MASK,
/* PHY_BASIC_FEATURES */ /* PHY_BASIC_FEATURES */
.probe = kszphy_probe,
.config_init = ksz8061_config_init, .config_init = ksz8061_config_init,
.config_intr = kszphy_config_intr, .config_intr = kszphy_config_intr,
.handle_interrupt = kszphy_handle_interrupt, .handle_interrupt = kszphy_handle_interrupt,
.suspend = genphy_suspend, .suspend = kszphy_suspend,
.resume = genphy_resume, .resume = kszphy_resume,
}, { }, {
.phy_id = PHY_ID_KSZ9021, .phy_id = PHY_ID_KSZ9021,
.phy_id_mask = 0x000ffffe, .phy_id_mask = 0x000ffffe,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment