net: dsa: mv88e6xxx: update 88e6185 PCS driver to use neg_mode
Update the Marvell 88e6185 PCS driver to use neg_mode rather than the mode argument to match the other updated PCS drivers. Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com> Link: https://lore.kernel.org/r/E1rhosE-003yuc-FM@rmk-PC.armlinux.org.uk Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
dd9a730011
commit
84c49aac0e
@ -95,7 +95,7 @@ static void mv88e6185_pcs_get_state(struct phylink_pcs *pcs,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int mv88e6185_pcs_config(struct phylink_pcs *pcs, unsigned int mode,
|
static int mv88e6185_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode,
|
||||||
phy_interface_t interface,
|
phy_interface_t interface,
|
||||||
const unsigned long *advertising,
|
const unsigned long *advertising,
|
||||||
bool permit_pause_to_mac)
|
bool permit_pause_to_mac)
|
||||||
@ -137,6 +137,7 @@ static int mv88e6185_pcs_init(struct mv88e6xxx_chip *chip, int port)
|
|||||||
mpcs->chip = chip;
|
mpcs->chip = chip;
|
||||||
mpcs->port = port;
|
mpcs->port = port;
|
||||||
mpcs->phylink_pcs.ops = &mv88e6185_phylink_pcs_ops;
|
mpcs->phylink_pcs.ops = &mv88e6185_phylink_pcs_ops;
|
||||||
|
mpcs->phylink_pcs.neg_mode = true;
|
||||||
|
|
||||||
irq = mv88e6xxx_serdes_irq_mapping(chip, port);
|
irq = mv88e6xxx_serdes_irq_mapping(chip, port);
|
||||||
if (irq) {
|
if (irq) {
|
||||||
|
Reference in New Issue
Block a user