Message ID | 20240222175843.26919-4-fancer.lancer@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | f5151005d379d9ce42e327fd3b2d2aaef61cda81 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | net: pcs: xpcs: Cleanups before adding MMIO dev support | expand |
diff --git a/drivers/net/pcs/pcs-xpcs.c b/drivers/net/pcs/pcs-xpcs.c index 7f8c63922a4b..92c47da61db4 100644 --- a/drivers/net/pcs/pcs-xpcs.c +++ b/drivers/net/pcs/pcs-xpcs.c @@ -292,7 +292,7 @@ static int xpcs_soft_reset(struct dw_xpcs *xpcs, dev = MDIO_MMD_VEND2; break; default: - return -1; + return -EINVAL; } ret = xpcs_write(xpcs, dev, MDIO_CTRL1, MDIO_CTRL1_RESET); @@ -889,7 +889,7 @@ int xpcs_do_config(struct dw_xpcs *xpcs, phy_interface_t interface, return ret; break; default: - return -1; + return -EINVAL; } if (compat->pma_config) {