diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2019-07-31 14:21:14 +0200 |
---|---|---|
committer | Kishon Vijay Abraham I <kishon@ti.com> | 2019-08-27 08:07:09 +0200 |
commit | 96888aed3d09862c1d80b3ccb405b4bcf6d827c5 (patch) | |
tree | 2d77b3cb4de95b91c2ab001928eda4a0867908c2 /drivers/phy/marvell | |
parent | phy: mvebu-cp110-comphy: Rename the macro handling only Ethernet modes (diff) | |
download | linux-96888aed3d09862c1d80b3ccb405b4bcf6d827c5.tar.xz linux-96888aed3d09862c1d80b3ccb405b4bcf6d827c5.zip |
phy: mvebu-cp110-comphy: Allow non-Ethernet modes to be configured
The COMPHY can configure the SERDES lanes in several non-Ethernet
modes: SATA, USB3, PCIe. Drop the condition limiting the driver to
Ethernet modes only before adding support for more.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'drivers/phy/marvell')
-rw-r--r-- | drivers/phy/marvell/phy-mvebu-cp110-comphy.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/phy/marvell/phy-mvebu-cp110-comphy.c b/drivers/phy/marvell/phy-mvebu-cp110-comphy.c index bf7ea3cd4f9f..78c309571943 100644 --- a/drivers/phy/marvell/phy-mvebu-cp110-comphy.c +++ b/drivers/phy/marvell/phy-mvebu-cp110-comphy.c @@ -671,9 +671,6 @@ static int mvebu_comphy_set_mode(struct phy *phy, { struct mvebu_comphy_lane *lane = phy_get_drvdata(phy); - if (mode != PHY_MODE_ETHERNET) - return -EINVAL; - if (submode == PHY_INTERFACE_MODE_1000BASEX) submode = PHY_INTERFACE_MODE_SGMII; |