]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: make global2 code optional
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Fri, 2 Sep 2016 18:45:34 +0000 (14:45 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Sep 2016 19:58:14 +0000 (12:58 -0700)
commit3702b8f110175c06e8eee3dcd8bc8d5db17adc31
tree5898c37778b7d7075c9c84d194d9b30478d4ce3c
parent08c2400367235bbb78387709d32d039089ac6903
net: dsa: mv88e6xxx: make global2 code optional

Since not every chip has a Global2 set of registers, make its support
optional, in which case the related functions will return -EOPNOTSUPP.

This also allows to reduce the size of the mv88e6xxx driver for devices
such as home routers embedding Ethernet chips without Global2 support.

It is present on most recent chips, thus enable its support by default.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/Kconfig
drivers/net/dsa/mv88e6xxx/Makefile
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/global2.h