net: dsa: mv88e6xxx: remove Global 2 setup
The remaining values written to the Switch Management Register in the mv88e6xxx_g2_setup function are specific to 88E6352 and older, and are the default values anyway. Thus remove completely this function. The mv88e6xxx driver no more contains setup code to access arbitrary Global 2 registers. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
c7f047b6c7
commit
5d49d60307
@@ -2228,13 +2228,6 @@ static int mv88e6xxx_setup(struct dsa_switch *ds)
|
||||
if (err)
|
||||
goto unlock;
|
||||
|
||||
/* Setup Switch Global 2 Registers */
|
||||
if (chip->info->global2_addr) {
|
||||
err = mv88e6xxx_g2_setup(chip);
|
||||
if (err)
|
||||
goto unlock;
|
||||
}
|
||||
|
||||
err = mv88e6xxx_irl_setup(chip);
|
||||
if (err)
|
||||
goto unlock;
|
||||
|
Reference in New Issue
Block a user