Commit d38001d3 authored by Tobias Waldekranz's avatar Tobias Waldekranz Committed by Jakub Kicinski
Browse files

net: dsa: mv88e6xxx: Provide dummy implementations for trunk setters



Support for Global 2 registers is build-time optional. In the case
where it was not enabled the build would fail as no "dummy"
implementation of these functions was available.

Fixes: 57e661aa ("net: dsa: mv88e6xxx: Link aggregation support")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Reviewed-by: default avatarVladimir Oltean <olteanv@gmail.com>
Tested-by: default avatarVladimir Oltean <olteanv@gmail.com>
Signed-off-by: default avatarTobias Waldekranz <tobias@waldekranz.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 8a39bee1
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -525,6 +525,18 @@ static inline int mv88e6xxx_g2_trunk_clear(struct mv88e6xxx_chip *chip)
	return -EOPNOTSUPP;
}

static inline int mv88e6xxx_g2_trunk_mask_write(struct mv88e6xxx_chip *chip,
						int num, bool hash, u16 mask)
{
	return -EOPNOTSUPP;
}

static inline int mv88e6xxx_g2_trunk_mapping_write(struct mv88e6xxx_chip *chip,
						   int id, u16 map)
{
	return -EOPNOTSUPP;
}

static inline int mv88e6xxx_g2_device_mapping_write(struct mv88e6xxx_chip *chip,
						    int target, int port)
{