diff options
| author | Serge Semin <fancer.lancer@gmail.com> | 2024-04-12 14:26:59 +0300 |
|---|---|---|
| committer | Serge Semin <fancer.lancer@gmail.com> | 2026-08-13 20:38:18 +0300 |
| commit | e3f915625aab28d9a7370f127d1733161b40b4dd (patch) | |
| tree | ce20c1d0b0f07561c633aec2d46e4cb07a18b481 | |
| parent | d1b6bd4ebc20a022b26d7e88c47449f3de31385d (diff) | |
| download | linux-e3f915625aab28d9a7370f127d1733161b40b4dd.tar.gz linux-e3f915625aab28d9a7370f127d1733161b40b4dd.zip | |
net: phy: marvell-88x2222: Fill in possible_interfaces
Marvell 88x2222 provides 10GBase-X4/XAUI, 10GBase-R, 1000Base-X and SGMII
host interfaces. Fill in the phy_device::possible_interfaces field with
the currently supported by the driver modes: XAUI and 10GBase-R.
Signed-off-by: Serge Semin <fancer.lancer@gmail.com>
| -rw-r--r-- | drivers/net/phy/marvell-88x2222.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/phy/marvell-88x2222.c b/drivers/net/phy/marvell-88x2222.c index 95cad5327325..561a001f8697 100644 --- a/drivers/net/phy/marvell-88x2222.c +++ b/drivers/net/phy/marvell-88x2222.c @@ -627,6 +627,10 @@ static int mv2222_probe(struct phy_device *phydev) linkmode_copy(phydev->supported, supported); + /* In perspective the list can be extended with 1000BASE-X and SGMII */ + __set_bit(PHY_INTERFACE_MODE_XAUI, phydev->possible_interfaces); + __set_bit(PHY_INTERFACE_MODE_10GBASER, phydev->possible_interfaces); + priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); if (!priv) return -ENOMEM; |
