Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a08df0f0 authored by Vivien Didelot's avatar Vivien Didelot Committed by David S. Miller
Browse files

net: dsa: mv88e6xxx: define GLOBAL_ATU_FID



Define register GLOBAL_ATU_FID instead of the raw value 0x01.

Signed-off-by: default avatarVivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cdf09697
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -964,7 +964,7 @@ static int _mv88e6xxx_atu_cmd(struct dsa_switch *ds, int fid, u16 cmd)
{
{
	int ret;
	int ret;


	ret = _mv88e6xxx_reg_write(ds, REG_GLOBAL, 0x01, fid);
	ret = _mv88e6xxx_reg_write(ds, REG_GLOBAL, GLOBAL_ATU_FID, fid);
	if (ret < 0)
	if (ret < 0)
		return ret;
		return ret;


+1 −0
Original line number Original line Diff line number Diff line
@@ -169,6 +169,7 @@
#define GLOBAL_MAC_01		0x01
#define GLOBAL_MAC_01		0x01
#define GLOBAL_MAC_23		0x02
#define GLOBAL_MAC_23		0x02
#define GLOBAL_MAC_45		0x03
#define GLOBAL_MAC_45		0x03
#define GLOBAL_ATU_FID		0x01	/* 6097 6165 6351 6352 */
#define GLOBAL_CONTROL		0x04
#define GLOBAL_CONTROL		0x04
#define GLOBAL_CONTROL_SW_RESET		BIT(15)
#define GLOBAL_CONTROL_SW_RESET		BIT(15)
#define GLOBAL_CONTROL_PPU_ENABLE	BIT(14)
#define GLOBAL_CONTROL_PPU_ENABLE	BIT(14)