Commit 19a3b217 authored by Fin Maaß's avatar Fin Maaß Committed by Dan Kalowsky
Browse files

drivers: ethernet: nxp: don't fail with -EALREADY



don't fail with -EALREADY being returned from
phy_configure_link.

Fixes: #92281
Signed-off-by: default avatarFin Maaß <f.maass@vogl-electronic.com>
parent 9a9ae6ff
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -473,8 +473,9 @@ static int nxp_enet_phy_configure(const struct device *phy, uint8_t phy_mode)

	/* Configure the PHY */
	ret = phy_configure_link(phy, speeds, 0);

	if (ret == -ENOTSUP || ret == -ENOSYS) {
	if (ret == -EALREADY) {
		return 0;
	} else if (ret == -ENOTSUP || ret == -ENOSYS) {
		phy_get_link_state(phy, &state);

		if (state.is_up) {