Skip to content

Commit 19a3b21

Browse files
maass-hamburgdkalowsk
authored andcommitted
drivers: ethernet: nxp: don't fail with -EALREADY
don't fail with -EALREADY being returned from phy_configure_link. Fixes: #92281 Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
1 parent 9a9ae6f commit 19a3b21

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/ethernet/eth_nxp_enet.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,8 +473,9 @@ static int nxp_enet_phy_configure(const struct device *phy, uint8_t phy_mode)
473473

474474
/* Configure the PHY */
475475
ret = phy_configure_link(phy, speeds, 0);
476-
477-
if (ret == -ENOTSUP || ret == -ENOSYS) {
476+
if (ret == -EALREADY) {
477+
return 0;
478+
} else if (ret == -ENOTSUP || ret == -ENOSYS) {
478479
phy_get_link_state(phy, &state);
479480

480481
if (state.is_up) {

0 commit comments

Comments
 (0)