summaryrefslogtreecommitdiffstats
path: root/drivers/phy/marvell/phy-mvebu-cp110-comphy.c
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2019-07-31 14:21:09 +0200
committerKishon Vijay Abraham I <kishon@ti.com>2019-08-27 08:07:09 +0200
commitd4eda9d847ac3c32012bd28ac15ed68802c14b63 (patch)
tree21119bcc023e1c641050bf49a29ef4cfb99a7c17 /drivers/phy/marvell/phy-mvebu-cp110-comphy.c
parentphy: mvebu-cp110-comphy: Add clocks support (diff)
downloadlinux-d4eda9d847ac3c32012bd28ac15ed68802c14b63.tar.xz
linux-d4eda9d847ac3c32012bd28ac15ed68802c14b63.zip
phy: mvebu-cp110-comphy: Explicitly initialize the lane submode
Explicitly set the lane submode (enum) to a known invalid value. 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/phy-mvebu-cp110-comphy.c')
-rw-r--r--drivers/phy/marvell/phy-mvebu-cp110-comphy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/phy/marvell/phy-mvebu-cp110-comphy.c b/drivers/phy/marvell/phy-mvebu-cp110-comphy.c
index 5a643e4d9b8e..ffadb75c78e9 100644
--- a/drivers/phy/marvell/phy-mvebu-cp110-comphy.c
+++ b/drivers/phy/marvell/phy-mvebu-cp110-comphy.c
@@ -715,6 +715,7 @@ static int mvebu_comphy_probe(struct platform_device *pdev)
lane->priv = priv;
lane->mode = PHY_MODE_INVALID;
+ lane->submode = PHY_INTERFACE_MODE_NA;
lane->id = val;
lane->port = -1;
phy_set_drvdata(phy, lane);