-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drivers: ethernet: stm32: add get_phy() support #85448
base: main
Are you sure you want to change the base?
Conversation
Hello @ramram885, and thank you very much for your first pull request to the Zephyr project! |
implementation of get_phy() added. Signed-off-by: Ram Mahesh <rammaheshram1234@gmail.com>
b2d1f0e
to
cbac85b
Compare
static const struct device *eth_stm32_hal_get_phy(const struct device *dev) | ||
{ | ||
ARG_UNUSED(dev); | ||
return eth_stm32_phy_dev; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
static const struct device *eth_stm32_hal_get_phy(const struct device *dev) | |
{ | |
ARG_UNUSED(dev); | |
return eth_stm32_phy_dev; | |
} | |
#if DT_HAS_COMPAT_STATUS_OKAY(st_stm32_mdio) | |
static const struct device *eth_stm32_hal_get_phy(const struct device *dev) | |
{ | |
ARG_UNUSED(dev); | |
return eth_stm32_phy_dev; | |
} | |
#endif /* DT_HAS_COMPAT_STATUS_OKAY(st_stm32_mdio) */ | |
@@ -1277,6 +1283,7 @@ static const struct ethernet_api eth_api = { | |||
#endif /* CONFIG_PTP_CLOCK_STM32_HAL */ | |||
.get_capabilities = eth_stm32_hal_get_capabilities, | |||
.set_config = eth_stm32_hal_set_config, | |||
.get_phy = eth_stm32_hal_get_phy, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.get_phy = eth_stm32_hal_get_phy, | |
#if DT_HAS_COMPAT_STATUS_OKAY(st_stm32_mdio) | |
.get_phy = eth_stm32_hal_get_phy, | |
#endif |
this PR was first: #80258 |
implementation of get_phy() added.