net: dsa: mv88e6xxx: add POT operation
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Mon, 17 Jul 2017 17:03:43 +0000 (13:03 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Jul 2017 18:10:58 +0000 (11:10 -0700)
commit9e907d739cc3caf3afa0af45835cb82ff929207c
treea813815384521c6ff258b210f4490050e386953a
parenta2a05db8a5ed5f97d269155508da801646683ad6
net: dsa: mv88e6xxx: add POT operation

Add a pot_clear operation to clear the Priority Override Table and wrap
its call into a mv88e6xxx_pot_setup helper.

This allows us to get rid of the MV88E6XXX_FLAG_G2_POT flag.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/chip.h
drivers/net/dsa/mv88e6xxx/global2.c
drivers/net/dsa/mv88e6xxx/global2.h