phy: mvebu-cp110-comphy: Allow non-Ethernet modes to be configured
authorMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 31 Jul 2019 12:21:14 +0000 (14:21 +0200)
committerKishon Vijay Abraham I <kishon@ti.com>
Tue, 27 Aug 2019 06:07:09 +0000 (11:37 +0530)
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>
drivers/phy/marvell/phy-mvebu-cp110-comphy.c

index bf7ea3cd4f9ff5f117a0b99250cfba5a854be8fd..78c309571943dc46545f81d46e8f787d0a8ca10c 100644 (file)
@@ -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;