net: dsa: mv88e6xxx: Make global2 support mandatory
authorAndrew Lunn <andrew@lunn.ch>
Wed, 27 Jan 2021 00:32:10 +0000 (01:32 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 28 Jan 2021 03:28:16 +0000 (19:28 -0800)
commit63368a7416df144b713ef1a887dba11796907e05
treef2733c7e861db2debca636c669d74ec64000d9ba
parent5998dd0217dfdd37bf2bf4d6554005e8de2ecd19
net: dsa: mv88e6xxx: Make global2 support mandatory

Early generations of the mv88e6xxx did not have the global 2
registers. In order to keep the driver slim, it was decided to make
the code for these registers optional. Over time, more generations of
switches have been added, always supporting global 2 and adding more
and more registers. No effort has been made to keep these additional
registers also optional to slim the driver down when used for older
generations. Optional global 2 now just gives additional development
and maintenance burden for no real gain.

Make global 2 support always compiled in.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Tested-by: Vladimir Oltean <olteanv@gmail.com>
Link: https://lore.kernel.org/r/20210127003210.663173-1-andrew@lunn.ch
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/mv88e6xxx/Kconfig
drivers/net/dsa/mv88e6xxx/Makefile
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/global2.h