diff options
author | Oleksij Rempel <o.rempel@pengutronix.de> | 2022-05-06 06:23:53 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-05-09 12:09:29 +0100 |
commit | a04dd88f77a4036ceedd42ed1fbefa68008e1850 (patch) | |
tree | 741c0d272351d1a2386dfa887f80fd7380b22f8d /drivers/net/phy | |
parent | 90532850eb210dff70423eaf20e323a91ef542d8 (diff) | |
download | linux-a04dd88f77a4036ceedd42ed1fbefa68008e1850.tar.bz2 |
net: phy: genphy_c45_pma_baset1_setup_master_slave: do no set unknown configuration
Do not change default master/slave forced configuration if no changes was
requested.
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy')
-rw-r--r-- | drivers/net/phy/phy-c45.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/phy/phy-c45.c b/drivers/net/phy/phy-c45.c index ffa2d5cd09fc..b1f7c63f66cd 100644 --- a/drivers/net/phy/phy-c45.c +++ b/drivers/net/phy/phy-c45.c @@ -86,9 +86,10 @@ int genphy_c45_pma_baset1_setup_master_slave(struct phy_device *phydev) break; case MASTER_SLAVE_CFG_SLAVE_FORCE: case MASTER_SLAVE_CFG_SLAVE_PREFERRED: + break; case MASTER_SLAVE_CFG_UNKNOWN: case MASTER_SLAVE_CFG_UNSUPPORTED: - break; + return 0; default: phydev_warn(phydev, "Unsupported Master/Slave mode\n"); return -EOPNOTSUPP; |