]> 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)
commit2ef474431fca6e25e6cec55b4bb4bd0eb4749609
tree5898c37778b7d7075c9c84d194d9b30478d4ce3c
parent765d6e542d5c55833843fd5cdc38be8a370343f8
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